CallbackHandlerRegistry
class 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 types |
|---|
interface CallbackHandlerRegistry.CallbackHandler<T : CallbackReceiver?>The interface used to trigger a callback when the pending intent is fired. |
Public constructors |
|---|
Public functions |
|
|---|---|
Unit |
<T : CallbackReceiver?> Trigger a call to a callback using arguments that were generated with |
Unit |
<T : CallbackReceiver?> Trigger a call to a callback using arguments that were generated with |
java-static Unit |
<T : CallbackReceiver?> Registers a callback handler to be executed when a given PendingIntent is fired for a |
java-static RemoteCallback? |
Turns a callback receiver stub into a remote callback. |
Public constructors
CallbackHandlerRegistry
CallbackHandlerRegistry()Public functions
invokeCallback
fun <T : CallbackReceiver?>invokeCallback(
context: Context,
receiver: T!,
intent: Intent
): Unit
Trigger a call to a callback using arguments that were generated with getArgumentBundle.
invokeCallback
fun <T : CallbackReceiver?>invokeCallback(
context: Context,
receiver: T!,
bundle: Bundle
): Unit
Trigger a call to a callback using arguments that were generated with getArgumentBundle.
registerCallbackHandler
java-static fun <T : CallbackReceiver?>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
java-static funstubToRemoteCallback(
receiver: CallbackReceiver,
cls: Class<CallbackReceiver!>,
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.