ServiceLifecycleDispatcher
-
android
open class ServiceLifecycleDispatcher
Helper class to dispatch lifecycle events for a Service. Use it only if it is impossible to use LifecycleService.
Summary
Public constructors |
|
|---|---|
ServiceLifecycleDispatcher(provider: LifecycleOwner) |
android
|
Public functions |
||
|---|---|---|
open Unit |
Must be a first call in |
android
|
open Unit |
Must be a first call in |
android
|
open Unit |
Must be a first call in |
android
|
open Unit |
Must be a first call in |
android
|
Public properties |
||
|---|---|---|
open Lifecycle |
|
android
|
Public constructors
ServiceLifecycleDispatcher
ServiceLifecycleDispatcher(provider: LifecycleOwner)
| Parameters | |
|---|---|
provider: LifecycleOwner |
|
Public functions
onServicePreSuperOnBind
open fun onServicePreSuperOnBind(): Unit
Must be a first call in Service.onBind method, even before super.onBind call.
onServicePreSuperOnCreate
open fun onServicePreSuperOnCreate(): Unit
Must be a first call in Service.onCreate method, even before super.onCreate call.
onServicePreSuperOnDestroy
open fun onServicePreSuperOnDestroy(): Unit
Must be a first call in Service.onDestroy method, even before super.OnDestroy call.
onServicePreSuperOnStart
open fun onServicePreSuperOnStart(): Unit
Must be a first call in Service.onStart or Service.onStartCommand methods, even before a corresponding super call.