RemoteCallback
class RemoteCallback
An instance of a callback to a specific class/method with a specific set of arguments. Can only be obtained from a CallbackReceiver.
Summary
Constants |
|
|---|---|
const RemoteCallback! |
Constant value that actual implementations of |
const Int |
TYPE_PROVIDER = 1Constant indicating this callback will be triggered on a |
const Int |
TYPE_RECEIVER = 0Constant indicating this callback will be triggered on a |
Public functions |
|
|---|---|
java-static T! |
<T : CallbackReceiver?> Static version of |
Bundle! |
Gets the bundle of arguments that will be used to trigger the method. |
String! |
Gets the name of the method this callback will call. |
String |
Gets the class the callback will be called on. |
Int |
Get the type of the receiver of this callback. |
PendingIntent! |
Create a |
Constants
LOCAL
const val LOCAL: RemoteCallback!
Constant value that actual implementations of RemoteCallable should return.
TYPE_PROVIDER
const val TYPE_PROVIDER = 1: Int
Constant indicating this callback will be triggered on a ContentProvider.
TYPE_RECEIVER
const val TYPE_RECEIVER = 0: Int
Constant indicating this callback will be triggered on a BroadcastReceiver.
Public functions
create
java-static fun <T : CallbackReceiver?>create(cls: Class<T!>!, context: Context!): T!
Static version of createRemoteCallback.
getArgumentBundle
fungetArgumentBundle(): Bundle!
Gets the bundle of arguments that will be used to trigger the method.
getMethodName
fungetMethodName(): String!
Gets the name of the method this callback will call.
getReceiverClass
fungetReceiverClass(): String
Gets the class the callback will be called on.
getType
fungetType(): Int
Get the type of the receiver of this callback.
toPendingIntent
funtoPendingIntent(): PendingIntent!
Create a PendingIntent that will trigger this callback.