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 | |
---|---|
<init>() The holder for callbacks that are tagged with |
Public methods | |
---|---|
open Unit |
invokeCallback(context: Context!, receiver: T, intent: Intent!) Trigger a call to a callback using arguments that were generated with |
open Unit |
invokeCallback(context: Context!, receiver: T, bundle: Bundle!) Trigger a call to a callback using arguments that were generated with |
open static Unit |
registerCallbackHandler(cls: Class<T>!, method: String!, handler: CallbackHandlerRegistry.CallbackHandler<T>!) Registers a callback handler to be executed when a given PendingIntent is fired for a |
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.