Stub

class Stub(binderContext: BinderContext) : OneWayBinderInterface.Stub

Used by the clients to send messages over the binder interface and to receive an asynchronous reply back.

Note: This Stub actually does not implement the AsyncReplyReceiver interface. Use sendAndWaitForReply instead.

Constructors

Link copied to clipboard
fun Stub(binderContext: BinderContext)

Types

Link copied to clipboard
class Proxy(remote: IBinder, binderContext: BinderContext) : OneWayBinderInterface.Proxy, AsyncReplyReceiver

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

Functions

Link copied to clipboard
suspend fun <R> sendAndWaitForReply(    descriptor: String,     block: (Parcel, Parcel) -> Unit,     asyncReplyHandler: (Parcel) -> R): R

Utility function allowing clients to send a parcel to a server and wait for asynchronously reply.

Inherited functions

Link copied to clipboard
open override fun asBinder(): IBinder
Link copied to clipboard
open fun attachInterface(p0: IInterface?, p1: String?)
Link copied to clipboard
open override fun dump(p0: FileDescriptor, p1: Array<String>?)
Link copied to clipboard
open override fun dumpAsync(p0: FileDescriptor, p1: Array<String>?)
Link copied to clipboard
open override fun getInterfaceDescriptor(): String?
Link copied to clipboard
open override fun isBinderAlive(): Boolean
Link copied to clipboard
open override fun linkToDeath(p0: IBinder.DeathRecipient, p1: Int)
Link copied to clipboard
open override fun pingBinder(): Boolean
Link copied to clipboard
open override fun queryLocalInterface(p0: String): IInterface?
Link copied to clipboard
override fun transact(    p0: Int,     p1: Parcel,     p2: Parcel?,     p3: Int): Boolean
Link copied to clipboard
open override fun unlinkToDeath(p0: IBinder.DeathRecipient, p1: Int): Boolean