withMessageDispatchFailureListener
inline fun <R> withMessageDispatchFailureListener(interfaceDescriptor: String, transactionName: String, block: () -> R): R
Calls BinderMessageDispatchFailureListener.onFailure when block throws an Exception. Any caught exception is rethrown.
Return
The return value of block.
Parameters
interfaceDescriptor
The binder interface descriptor.
transactionName
The binder transaction name.
block
The block to execute.
R
The return type of block.