terminated

open override fun terminated(from: Service.State)


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

Sets the callback invoked when the service has terminated.

Parameters

block

the callback to invoke, receiving the Service.State the service was in before termination.