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!

This property is deprecated. Deprecated in Java

const Int

This property is deprecated. Deprecated in Java

const Int

This property is deprecated. Deprecated in Java

Public functions

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

This function is deprecated. Deprecated in Java

Bundle!

This function is deprecated. Deprecated in Java

String!

This function is deprecated. Deprecated in Java

String

This function is deprecated. Deprecated in Java

Int

This function is deprecated. Deprecated in Java

PendingIntent!

This function is deprecated. Deprecated in Java

Constants

LOCAL

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
const val LOCAL: RemoteCallback!

Constant value that actual implementations of RemoteCallable should return.

TYPE_PROVIDER

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
const val TYPE_PROVIDER = 1: Int

Constant indicating this callback will be triggered on a ContentProvider.

TYPE_RECEIVER

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
const val TYPE_RECEIVER = 0: Int

Constant indicating this callback will be triggered on a BroadcastReceiver.

Public functions

create

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

Static version of createRemoteCallback.

getArgumentBundle

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun getArgumentBundle(): Bundle!

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

getMethodName

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun getMethodName(): String!

Gets the name of the method this callback will call.

getReceiverClass

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun getReceiverClass(): String

Gets the class the callback will be called on.

getType

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun getType(): Int

Get the type of the receiver of this callback.

toPendingIntent

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun toPendingIntent(): PendingIntent!

Create a PendingIntent that will trigger this callback.