ServiceLifecycleObserver

Observer for Service lifecycle events. This is used to track the lifecycle of Services used by the SDK.

Functions

Link copied to clipboard
open fun onForegroundStarted(cls: Class<out Service>)
Called when a Service used by the SDK starts running in the foreground.
Link copied to clipboard
open fun onForegroundStopped(cls: Class<out Service>)
Called when a Service used by the SDK stops running in the foreground.
Link copied to clipboard
open fun onServiceCreated(cls: Class<out Service>)
Called when a Service used by the SDK is created.
Link copied to clipboard
open fun onServiceDestroyed(cls: Class<out Service>)
Called when a Service used by the SDK is destroyed.