Skip to main content

Class: NavDataBarFieldLdgModelFactory

Creates data models for Estimated Time of Arrival at Destination navigation data bar fields.

Hierarchy

Constructors

constructor

new NavDataBarFieldLdgModelFactory(bus, lnavIndex?): NavDataBarFieldLdgModelFactory

Creates a new instance of NavDataBarFieldLdgModelFactory.

Parameters

NameTypeDefault valueDescription
busEventBusundefinedThe event bus.
lnavIndexnumber | Subscribable<number>0The index of the LNAV from which to source data. Defaults to 0.

Returns

NavDataBarFieldLdgModelFactory

Overrides

EventBusNavDataBarFieldTypeModelFactory.constructor

Defined in

src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:823

Properties

Protected Readonly lnavIndex: number | Subscribable<number> = 0

The index of the LNAV from which to source data. Defaults to 0.

Defined in

src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:823


sub

Protected Readonly sub: EventSubscriber<GNSSEvents & LNavEvents & LNavDataEvents & ClockEvents>

Inherited from

EventBusNavDataBarFieldTypeModelFactory.sub

Defined in

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

Methods

create

create(gpsValidity): NavDataBarFieldModel<number>

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

NavDataBarFieldModel<number>

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

Overrides

EventBusNavDataBarFieldTypeModelFactory.create

Defined in

src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:828