RemoteCallback


public 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

static final RemoteCallback

This field is deprecated. Deprecated in Java

static final int

This field is deprecated. Deprecated in Java

static final int

This field is deprecated. Deprecated in Java

Public methods

static T
<T extends CallbackReceiver> create(Class<T> cls, Context context)

This method is deprecated. Deprecated in Java

Bundle

This method is deprecated. Deprecated in Java

String

This method is deprecated. Deprecated in Java

@NonNull String

This method is deprecated. Deprecated in Java

int

This method is deprecated. Deprecated in Java

PendingIntent

This method is deprecated. Deprecated in Java

Constants

LOCAL

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public static final RemoteCallback LOCAL

Constant value that actual implementations of RemoteCallable should return.

TYPE_PROVIDER

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public static final int TYPE_PROVIDER = 1

Constant indicating this callback will be triggered on a ContentProvider.

TYPE_RECEIVER

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public static final int TYPE_RECEIVER = 0

Constant indicating this callback will be triggered on a BroadcastReceiver.

Public methods

create

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public static T <T extends CallbackReceiver> create(Class<T> cls, Context context)

Static version of createRemoteCallback.

getArgumentBundle

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public Bundle getArgumentBundle()

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
public String getMethodName()

Gets the name of the method this callback will call.

getReceiverClass

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public @NonNull String getReceiverClass()

Gets the class the callback will be called on.

getType

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public int getType()

Get the type of the receiver of this callback.

toPendingIntent

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
public PendingIntent toPendingIntent()

Create a PendingIntent that will trigger this callback.