create

fun create(destinationArrivalDistanceThreshold: Distance = DEFAULT_DESTINATION_ARRIVAL_THRESHOLD): ArrivalDetectionEngine

Creates an instance of ArrivalDetectionEngine.

This engine handles the arrival detection for off-road navigation. Off-road navigation and traditional navigation handle arrival differently. Off-road navigation uses only distance to check if the user has arrived at the destination.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

destinationArrivalDistanceThreshold

The distance threshold that triggers the destination arrival status. If it is not set, the DEFAULT_DESTINATION_ARRIVAL_THRESHOLD value is used.