Class: NavDataBarFieldFobModelFactory
Creates data models for Fuel on Board navigation data bar fields.
Hierarchy
EventBusNavDataBarFieldTypeModelFactory
<FuelOnBoard
,EngineEvents
>↳
NavDataBarFieldFobModelFactory
Constructors
constructor
• new NavDataBarFieldFobModelFactory(bus
): NavDataBarFieldFobModelFactory
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
NavDataBarFieldFobModelFactory
Inherited from
EventBusNavDataBarFieldTypeModelFactory.constructor
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:18
Properties
sub
• Protected
Readonly
sub: EventSubscriber
<EngineEvents
>
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Methods
create
▸ create(gpsValidity
): NavDataBarFieldModel
<NumberUnitInterface
<Weight
, Unit
<Weight
>>>
Creates a navigation data bar field data model for this factory's data field type.
Parameters
Name | 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.
Overrides
EventBusNavDataBarFieldTypeModelFactory.create
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:664