Skip to main content

Class: NavEventsPublisher

Publishes select NavEvents topics in lieu of NavProcessor.

Constructors

constructor

new NavEventsPublisher(bus): NavEventsPublisher

Creates an instance of NavEventPublisher.

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

NavEventsPublisher

Defined in

src/garminsdk/navigation/NavEventsPublisher.ts:15

Methods

onUpdate

onUpdate(): void

A callback called when this publisher receives an update cycle.

Returns

void

Defined in

src/garminsdk/navigation/NavEventsPublisher.ts:49


startPublish

startPublish(): void

Start publishing.

Returns

void

Defined in

src/garminsdk/navigation/NavEventsPublisher.ts:21


stopPublish

stopPublish(): void

Stop publishing.

Returns

void

Defined in

src/garminsdk/navigation/NavEventsPublisher.ts:36