Class: NavDataBarFieldLdgModelFactory
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:815
Creates data models for Estimated Time of Arrival at Destination navigation data bar fields.
Extends
EventBusNavDataBarFieldTypeModelFactory
<TimeOfDestinationArrival
,GNSSEvents
&LNavEvents
&LNavDataEvents
&ClockEvents
>
Constructors
Constructor
new NavDataBarFieldLdgModelFactory(
bus
,lnavIndex
):NavDataBarFieldLdgModelFactory
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:823
Creates a new instance of NavDataBarFieldLdgModelFactory.
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
NavDataBarFieldLdgModelFactory
Overrides
EventBusNavDataBarFieldTypeModelFactory
.constructor
Properties
lnavIndex
protected
readonly
lnavIndex:number
|Subscribable
<number
> =0
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:823
The index of the LNAV from which to source data. Defaults to 0
.
sub
protected
readonly
sub:EventSubscriber
<GNSSEvents
&LNavEvents
&LNavDataEvents
&ClockEvents
>
Defined in: src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Inherited from
EventBusNavDataBarFieldTypeModelFactory
.sub
Methods
create()
create(
gpsValidity
):NavDataBarFieldModel
<number
>
Defined in: src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:828
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
<number
>
A navigation data bar field data model for this factory's data field type.