DriverNotificationProvider

abstract class DriverNotificationProvider @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX]) constructor : MapboxNavigationObserver

Abstract base class for providing driver notifications.

This class serves as a parent for specific notification providers that generate and track notifications for drivers during navigation.

Subclasses of DriverNotificationProvider should implement the logic for generating notifications and provide a Flow of DriverNotification instances through the trackNotifications method.

See also

for the base notification type.

Inheritors

Constructors

Link copied to clipboard
@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX])
constructor()

Functions

Link copied to clipboard
abstract fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
abstract fun onDetached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard

Tracks notifications generated by the provider.