Class: NavDataBarFieldDisModelFactory
Creates data models for Distance to Waypoint navigation data bar fields.
Hierarchy
EventBusNavDataBarFieldTypeModelFactory
<DistanceToWaypoint
,LNavEvents
&LNavDataEvents
>↳
NavDataBarFieldDisModelFactory
Constructors
constructor
• new NavDataBarFieldDisModelFactory(bus
, lnavIndex?
): NavDataBarFieldDisModelFactory
Creates a new instance of NavDataBarFieldDisModelFactory.
Parameters
Name | 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
NavDataBarFieldDisModelFactory
Overrides
EventBusNavDataBarFieldTypeModelFactory.constructor
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:298
Properties
lnavIndex
• 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:298
sub
• Protected
Readonly
sub: EventSubscriber
<LNavEvents
& LNavDataEvents
>
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Methods
create
▸ create(gpsValidity
): NavDataBarFieldModel
<NumberUnitInterface
<Distance
, Unit
<Distance
>>>
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
<Distance
, Unit
<Distance
>>>
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:303