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 RemoteCallable should return.

const Int

Constant indicating this callback will be triggered on a ContentProvider.

const Int

Constant indicating this callback will be triggered on a BroadcastReceiver.

Public functions

java-static T!
<T : CallbackReceiver?> create(cls: Class<T!>!, context: Context!)

Static version of createRemoteCallback.

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 PendingIntent that will trigger this callback.

Constants

LOCAL

Added in 1.0.0-alpha02
const val LOCALRemoteCallback!

Constant value that actual implementations of RemoteCallable should return.

TYPE_PROVIDER

Added in 1.0.0-alpha02
const val TYPE_PROVIDER = 1: Int

Constant indicating this callback will be triggered on a ContentProvider.

TYPE_RECEIVER

Added in 1.0.0-alpha02
const val TYPE_RECEIVER = 0: Int

Constant indicating this callback will be triggered on a BroadcastReceiver.

Public functions

create

Added in 1.0.0-alpha02
java-static fun <T : CallbackReceiver?> create(cls: Class<T!>!, context: Context!): T!

Static version of createRemoteCallback.

getArgumentBundle

Added in 1.0.0-alpha02
fun getArgumentBundle(): Bundle!

Gets the bundle of arguments that will be used to trigger the method.

getMethodName

Added in 1.0.0-alpha02
fun getMethodName(): String!

Gets the name of the method this callback will call.

getReceiverClass

Added in 1.0.0-alpha02
fun getReceiverClass(): String

Gets the class the callback will be called on.

getType

Added in 1.0.0-alpha02
fun getType(): Int

Get the type of the receiver of this callback.

toPendingIntent

Added in 1.0.0-alpha02
fun toPendingIntent(): PendingIntent!

Create a PendingIntent that will trigger this callback.