Class: NavDataBarFieldGMeterModelFactory
Creates data models for G-Meter navigation data bar fields.
Hierarchy
EventBusNavDataBarFieldTypeModelFactory
<GMeter
,AccelerometerEvents
>↳
NavDataBarFieldGMeterModelFactory
Constructors
constructor
• new NavDataBarFieldGMeterModelFactory(bus
): NavDataBarFieldGMeterModelFactory
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
NavDataBarFieldGMeterModelFactory
Inherited from
EventBusNavDataBarFieldTypeModelFactory.constructor
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:18
Properties
sub
• Protected
Readonly
sub: EventSubscriber
<AccelerometerEvents
>
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
Name | Type | Description |
---|---|---|
gpsValidity | Subscribable <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:734