Class: NavStatusBoxFieldModelFactory
A factory for navigation status box field data models.
Implements
Implemented by
Constructors
constructor
• new NavStatusBoxFieldModelFactory(bus
, gpsValidity
, lnavIndex?
): NavStatusBoxFieldModelFactory
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
gpsValidity | Subscribable <NavDataFieldGpsValidity > | The subscribable that provides the validity of the GPS data for the models. |
lnavIndex? | number | Subscribable <number > | The index of the LNAV from which to source data. Defaults to 0 . |
Returns
Defined in
src/garminsdk/components/nextgenpfd/navstatusbox/NavStatusBoxFieldModel.ts:51
Methods
create
▸ create<T
>(type
): NavStatusBoxFieldTypeModelMap
[T
]
Creates a navigation status box field data model for a given type of field.
Type parameters
Name | Type |
---|---|
T | extends NavStatusBoxFieldType |
Parameters
Name | Type | Description |
---|---|---|
type | T | A navigation status box field type. |
Returns
NavStatusBoxFieldTypeModelMap
[T
]
A navigation status box field data model for the given field type.
Throws
Error if an unsupported field type is specified.
Implementation of
NavStatusBoxFieldModelFactory.create
Defined in
src/garminsdk/components/nextgenpfd/navstatusbox/NavStatusBoxFieldModel.ts:67