stopping

open override fun stopping(from: Service.State)


fun stopping(block: (Service.State) -> Unit)

Sets the callback invoked when the service is stopping.

Parameters

block

the callback to invoke, receiving the Service.State the service is transitioning from.