Skip to main content

Class: NavDataBarFieldClgModelFactory

Creates data models for Climb Gradient navigation data bar fields.

Hierarchy

Constructors

constructor

new NavDataBarFieldClgModelFactory(bus): NavDataBarFieldClgModelFactory

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

NavDataBarFieldClgModelFactory

Inherited from

EventBusNavDataBarFieldTypeModelFactory.constructor

Defined in

src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:18

Properties

sub

Protected Readonly sub: EventSubscriber<AdcEvents & GNSSEvents>

Inherited from

EventBusNavDataBarFieldTypeModelFactory.sub

Defined in

src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12

Methods

create

create(gpsValidity): NavDataBarFieldModel<number>

Creates a navigation data bar field data model for this factory's data field type.

Parameters

NameTypeDescription
gpsValiditySubscribable<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.

Overrides

EventBusNavDataBarFieldTypeModelFactory.create

Defined in

src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:182