Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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

Generates the code to handle creating and executing callbacks.

open Unit
addMethod(element: Element!)

Adds a method tagged with @RemoteCallable to this receiver.

Public constructors

<init>

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

Public methods

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.

addMethod

open fun addMethod(element: Element!): Unit

Adds a method tagged with @RemoteCallable to this receiver.