Proxy

class Proxy(remote: IBinder, binderContext: BinderContext) : OneWayBinderInterface.Proxy, AsyncReplyReceiver

Used by servers to launch a coroutine and asynchronously send a reply back.

Constructors

Link copied to clipboard
fun Proxy(remote: IBinder, binderContext: BinderContext)

Functions

Link copied to clipboard
open override fun asBinder(): IBinder
Link copied to clipboard
open override fun launchAndReply(    requestId: AsyncRequestId,     interfaceDescriptor: String,     transactionName: String,     asyncReplyProvider: AsyncReplyProvider)

Invokes a suspendable asyncReplyProvider and sends the reply asynchronously.