attachAllActivities

fun attachAllActivities(application: Application): MapboxNavigationApp

Detect when any Activity is in the foreground. Use attach and detach for granular control of which lifecycle is used for creating MapboxNavigation.