attachDriverNotificationProvider

fun attachDriverNotificationProvider(vararg driverNotificationProviders: DriverNotificationProvider)

Attaches one or more DriverNotificationProvider instances to the manager.

Provider attachment is asynchronous – if MapboxNavigation is not yet available, the provider will be registered immediately but its onAttached and notification tracking will start once MapboxNavigation becomes available. If the provider is removed before that happens, the pending attachment is cancelled.

Parameters

driverNotificationProviders

the providers to attach

Throws

if a provider of the same type is already attached