isRunningForegroundService

fun isRunningForegroundService(): Boolean

Query if the MapboxNavigation is running a foreground service

Return

true if the MapboxNavigation is running a foreground service else false