Class: NavDataBarFieldFodModelFactory
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:675
Creates data models for Fuel Over Destination navigation data bar fields.
Extends
EventBusNavDataBarFieldTypeModelFactory<FuelOverDestination,GNSSEvents&LNavEvents&LNavDataEvents&EngineEvents>
Constructors
Constructor
new NavDataBarFieldFodModelFactory(
bus,lnavIndex):NavDataBarFieldFodModelFactory
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:683
Creates a new instance of NavDataBarFieldFodModelFactory.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
bus | EventBus | undefined | The event bus. |
lnavIndex | number | Subscribable<number> | 0 | The index of the LNAV from which to source data. Defaults to 0. |
Returns
NavDataBarFieldFodModelFactory
Overrides
EventBusNavDataBarFieldTypeModelFactory.constructor
Properties
lnavIndex
protectedreadonlylnavIndex:number|Subscribable<number> =0
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:683
The index of the LNAV from which to source data. Defaults to 0.
sub
protectedreadonlysub:EventSubscriber<GNSSEvents&LNavEvents&LNavDataEvents&BaseNonIndexedEngineEvents&BaseEngineIndexedEngineEvents&IndexedEngineEvents>
Defined in: src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Methods
create()
create(
gpsValidity):NavDataBarFieldModel<NumberUnitInterface<Weight,Unit<Weight>>>
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:688
Creates a navigation data bar field data model for this factory's data field type.
Parameters
| Parameter | Type | Description |
|---|---|---|
gpsValidity | Subscribable<NavDataFieldGpsValidity> | The subscribable that provides the validity of the GPS data for the models. |
Returns
NavDataBarFieldModel<NumberUnitInterface<Weight, Unit<Weight>>>
A navigation data bar field data model for this factory's data field type.