The Android Developer Challenge is back! Submit your idea before December 2.

CallbackHandlerRegistry

open class CallbackHandlerRegistry
kotlin.Any
   ↳ androidx.remotecallback.CallbackHandlerRegistry

The holder for callbacks that are tagged with RemoteCallable. Note: This should only be referenced by generated code, there is no reason to reference this otherwise.

Summary

Nested classes

abstract

The interface used to trigger a callback when the pending intent is fired.

Public constructors

The holder for callbacks that are tagged with RemoteCallable.

Public methods

open Unit
invokeCallback(context: Context!, receiver: T, intent: Intent!)

Trigger a call to a callback using arguments that were generated with RemoteCallback#getArgumentBundle().

open Unit
invokeCallback(context: Context!, receiver: T, bundle: Bundle!)

Trigger a call to a callback using arguments that were generated with RemoteCallback#getArgumentBundle().

open static Unit

Registers a callback handler to be executed when a given PendingIntent is fired for a RemoteCallback.

open static RemoteCallback!
stubToRemoteCallback(receiver: CallbackReceiver<Any!>!, cls: Class<out CallbackReceiver<Any!>!>!, args: Bundle!, method: String!)

Turns a callback receiver stub into a remote callback.

Public constructors

<init>

CallbackHandlerRegistry()

The holder for callbacks that are tagged with RemoteCallable. Note: This should only be referenced by generated code, there is no reason to reference this otherwise.

Public methods

invokeCallback

open fun <T : CallbackReceiver<Any!>!> invokeCallback(context: Context!, receiver: T, intent: Intent!): Unit

Trigger a call to a callback using arguments that were generated with RemoteCallback#getArgumentBundle().

invokeCallback

open fun <T : CallbackReceiver<Any!>!> invokeCallback(context: Context!, receiver: T, bundle: Bundle!): Unit

Trigger a call to a callback using arguments that were generated with RemoteCallback#getArgumentBundle().

registerCallbackHandler

open static fun <T : CallbackReceiver<Any!>!> registerCallbackHandler(cls: Class<T>!, method: String!, handler: CallbackHandlerRegistry.CallbackHandler<T>!): Unit

Registers a callback handler to be executed when a given PendingIntent is fired for a RemoteCallback. Note: This should only be called by generated code, there is no reason to reference this otherwise.

stubToRemoteCallback

open static fun stubToRemoteCallback(receiver: CallbackReceiver<Any!>!, cls: Class<out CallbackReceiver<Any!>!>!, args: Bundle!, method: String!): RemoteCallback!

Turns a callback receiver stub into a remote callback. Note: This should only be called by generated code, there is no reason to reference this otherwise.