Skip to main content

Class: NavStatusBoxFieldModelFactory

Defined in: src/garminsdk/components/nextgenpfd/navstatusbox/NavStatusBoxFieldModel.ts:42

A factory for navigation status box field data models.

Implements​

  • NavStatusBoxFieldModelFactory

Constructors​

Constructor​

new NavStatusBoxFieldModelFactory(bus, gpsValidity, lnavIndex?): NavStatusBoxFieldModelFactory

Defined in: src/garminsdk/components/nextgenpfd/navstatusbox/NavStatusBoxFieldModel.ts:51

Constructor.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
gpsValiditySubscribable<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​

NavStatusBoxFieldModelFactory

Methods​

create()​

create<T>(type): NavStatusBoxFieldTypeModelMap[T]

Defined in: src/garminsdk/components/nextgenpfd/navstatusbox/NavStatusBoxFieldModel.ts:67

Creates a navigation status box field data model for a given type of field.

Type Parameters​

Type Parameter
T extends NavStatusBoxFieldType

Parameters​

ParameterTypeDescription
typeTA 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