public interface

IBinder

mindroid.os.IBinder
Known Indirect Subclasses

Class Overview

Base interface for a remotable object, the core part of a lightweight remote procedure call mechanism designed for high performance when performing in-process and cross-process calls. This interface describes the abstract protocol for interacting with a remotable object. Do not implement this interface directly, instead extend from Binder.

See Also

Summary

Constants
int FLAG_ONEWAY Flag to transact(int, int): this is a one-way call, meaning that the caller returns immediately, without waiting for a result from the callee.
Public Methods
abstract String getInterfaceDescriptor()
Get the canonical name of the interface supported by this binder.
abstract IInterface queryLocalInterface(String descriptor)
Attempt to retrieve a local implementation of an interface for this Binder object.
abstract boolean runsOnSameThread()
abstract Object transact(int what, int arg1, int arg2, Object obj, int flags)
abstract Object transact(int what, Object obj, int flags)
abstract Object transact(int what, int flags)
Perform a generic operation with the object.
abstract Object transact(int what, int arg1, int arg2, int flags)
abstract Object transact(int what, int arg1, int arg2, Bundle data, int flags)
abstract Object transact(int what, Bundle data, int flags)

Constants

public static final int FLAG_ONEWAY

Flag to transact(int, int): this is a one-way call, meaning that the caller returns immediately, without waiting for a result from the callee. Applies only if the caller and callee are in different processes.

Constant Value: 1 (0x00000001)

Public Methods

public abstract String getInterfaceDescriptor ()

Get the canonical name of the interface supported by this binder.

public abstract IInterface queryLocalInterface (String descriptor)

Attempt to retrieve a local implementation of an interface for this Binder object. If null is returned, you will need to instantiate a proxy class to marshall calls through the transact() method.

public abstract boolean runsOnSameThread ()

public abstract Object transact (int what, int arg1, int arg2, Object obj, int flags)

public abstract Object transact (int what, Object obj, int flags)

public abstract Object transact (int what, int flags)

Perform a generic operation with the object.

Parameters
what The action to perform.
flags Additional operation flags. Either 0 for a normal RPC, or FLAG_ONEWAY for a one-way RPC.
Returns
  • data to be received from the target. May be null if you are not interested in the return value.

public abstract Object transact (int what, int arg1, int arg2, int flags)

public abstract Object transact (int what, int arg1, int arg2, Bundle data, int flags)

public abstract Object transact (int what, Bundle data, int flags)