Home > @magiclane/maps-sdk > NavigationService > isTripActive

NavigationService.isTripActive() method

Check if there is an active trip (navigation or simulation) in progress.

Signature:

static isTripActive(input?: {
        taskHandler?: TaskHandler;
    }): boolean;

Parameters

Parameter

Type

Description

{ taskHandler }

(not declared)

(Optional)

input

{ taskHandler?: TaskHandler; }

(Optional)

Returns:

boolean

True if there is an active trip in progress, false otherwise.

Exceptions

An exception if it fails.