failed

open override fun failed(from: Service.State, failure: Throwable)


fun failed(block: (Service.State, Throwable) -> Unit)

Sets the callback invoked when the service has failed.

Parameters

block

the callback to invoke, receiving the Service.State the service was in and the Throwable cause.