Skip to main content

Class: NavStatusBoxFieldModelFactory

A factory for navigation status box field data models.

Implements

Implemented by

Constructors

constructor

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

Constructor.

Parameters

NameTypeDescription
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

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

NameType
Textends NavStatusBoxFieldType

Parameters

NameTypeDescription
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

Defined in

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