LifecycleService
open class LifecycleService : Service, LifecycleOwner
A Service that is also a LifecycleOwner
.
Summary
Public constructors
Public methods
getLifecycle
@NonNull open fun getLifecycle(): Lifecycle
onBind
@CallSuper @Nullable open fun onBind(@NonNull intent: Intent): IBinder?
onCreate
@CallSuper open fun onCreate(): Unit
onDestroy
@CallSuper open fun onDestroy(): Unit
onStart
@CallSuper open fun onStart(
@Nullable intent: Intent?,
startId: Int
): Unit
onStartCommand
@CallSuper open fun onStartCommand(
@Nullable intent: Intent?,
flags: Int,
startId: Int
): Int