Skip to main content

Class: EventBusNavDataBarFieldTypeModelFactory<T, E>

An abstract implementation of NavDataBarFieldTypeModelFactory which accesses data from the event bus to use to create its data models.

Type parameters

NameType
Textends NavDataFieldType
EE

Hierarchy

Implements

Constructors

constructor

new EventBusNavDataBarFieldTypeModelFactory<T, E>(bus): EventBusNavDataBarFieldTypeModelFactory<T, E>

Constructor.

Type parameters

NameType
Textends NavDataFieldType
EE

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

EventBusNavDataBarFieldTypeModelFactory<T, E>

Defined in

src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:18

Properties

sub

Protected Readonly sub: EventSubscriber<E>

Defined in

src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12

Methods

create

create(gpsValidity): NavDataBarFieldTypeModelMap[T]

Creates a navigation data bar field data model for this factory's data field type.

Parameters

NameTypeDescription
gpsValiditySubscribable<NavDataFieldGpsValidity>The subscribable that provides the validity of the GPS data for the models.

Returns

NavDataBarFieldTypeModelMap[T]

A navigation data bar field data model for this factory's data field type.

Implementation of

NavDataBarFieldTypeModelFactory.create

Defined in

src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:22