AsyncCapableBinderInterface

interface AsyncCapableBinderInterface : IInterface

Base interface for IBinder interfaces that require async replies.

See AsyncReplyReceiver for details.

The binder Stub class of derived interfaces should use AsyncCapableBinderInterface.Stub as its superclass and the binder Proxy should use AsyncCapableBinderInterface.Proxy as its superclass. These classes provide the binder interface the ability to send async replies through the AsyncReplyReceiver class.

The Stub and Proxy classes of derived interfaces should use FIRST_CALL_TRANSACTION for the first binder transaction code (instead of IBinder.FIRST_CALL_TRANSACTION).

The aidl tool is not used as it doesn't support Kotlin coroutines. The inner classes follow as much as possible the structure of the code generated by the aidl tool.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
abstract class Proxy(remote: IBinder, binderContext: BinderContext) : AsyncCapableBinderInterface
Link copied to clipboard
abstract class Stub(binderContext: BinderContext) : Binder, AsyncCapableBinderInterface
Link copied to clipboard

Result code of binder transactions that expect an async reply.

Functions

Link copied to clipboard
abstract fun removeAsyncReplyReceiver()

Inherited functions

Link copied to clipboard
abstract fun asBinder(): IBinder

Inheritors

Link copied to clipboard
Link copied to clipboard