KillableLifecycleOwner
class KillableLifecycleOwner(parentLifecycleOwner: LifecycleOwner, mainScopeProvider: MainScopeProvider) : LifecycleOwner
LifecycleOwner which is destroyed when it catches a DeadObjectException.
Shadows the parentLifecycleOwner. Use invokeDeathSafe to catch the DeadObjectException and handle it. Use invokeDeathSafeThrow to handle the DeadObjectException and rethrow it.
Parameters
mainScopeProvider
Called to post the given action on the main thread.