addOnLocationStaleListener

Adds the passed listener that gets invoked when user updates have stopped long enough for the last update to be considered stale.

This timeout is set by LocationComponentOptions.staleStateTimeout.

Parameters

listener

invoked when last update is considered stale

fun addOnLocationStaleListener(listener: OnLocationStaleListener)