Class: NavDataBarFieldClmModelFactory
Creates data models for Climb Gradient (height per distance) navigation data bar fields.
Hierarchy
EventBusNavDataBarFieldTypeModelFactory
<ClimbGradientPerDistance
,AdcEvents
&GNSSEvents
>↳
NavDataBarFieldClmModelFactory
Constructors
constructor
• new NavDataBarFieldClmModelFactory(bus
): NavDataBarFieldClmModelFactory
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
NavDataBarFieldClmModelFactory
Inherited from
EventBusNavDataBarFieldTypeModelFactory.constructor
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:18
Properties
sub
• Protected
Readonly
sub: EventSubscriber
<AdcEvents
& GNSSEvents
>
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Methods
create
▸ create(gpsValidity
): NavDataBarFieldModel
<NumberUnitInterface
<DistanceRatio
, Unit
<DistanceRatio
>>>
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
<DistanceRatio
, Unit
<DistanceRatio
>>>
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:209