CallbackReceiver

open class CallbackReceiver
kotlin.Any
   ↳ androidx.remotecallback.compiler.CallbackReceiver

Holder class that is created for each class instance that is a CallbackReceiver and has methods tagged with @RemoteCallable.

Summary

Public constructors

<init>(c: Element!, env: ProcessingEnvironment!, messager: Messager!)

Public methods

open Unit
addMethod(element: Element!)

Adds a method tagged with @RemoteCallable to this receiver.

open Unit
finish(env: ProcessingEnvironment!, messager: Messager!)

Generates the code to handle creating and executing callbacks.

Public constructors

<init>

CallbackReceiver(c: Element!, env: ProcessingEnvironment!, messager: Messager!)

Public methods

addMethod

open fun addMethod(element: Element!): Unit

Adds a method tagged with @RemoteCallable to this receiver.

finish

open fun finish(env: ProcessingEnvironment!, messager: Messager!): Unit

Generates the code to handle creating and executing callbacks. The code is assembled in one class that implements runnable that when run, registers all of the CallbackHandlers.