IBinder.FrozenStateChangeCallback
public
static
interface
IBinder.FrozenStateChangeCallback
android.os.IBinder.FrozenStateChangeCallback |
A callback interface for receiving frozen state change events.
Summary
Constants | |
---|---|
int |
STATE_FROZEN
Represents the frozen state of the remote process. |
int |
STATE_UNFROZEN
Represents the unfrozen state of the remote process. |
Public methods | |
---|---|
abstract
void
|
onFrozenStateChanged(IBinder who, int state)
Interface for receiving a callback when the process hosting an IBinder has changed its frozen state. |
Constants
STATE_FROZEN
public static final int STATE_FROZEN
Represents the frozen state of the remote process. While in this state, the remote process won't be able to receive and handle a transaction. Therefore, any asynchronous transactions will be buffered and delivered when the process is unfrozen, and any synchronous transactions will result in an error. Buffered transactions may be stale by the time that the process is unfrozen and handles them. To avoid overwhelming the remote process with stale events or overflowing their buffers, it's best to avoid sending binder transactions to a frozen process.
Constant Value: 0 (0x00000000)
STATE_UNFROZEN
public static final int STATE_UNFROZEN
Represents the unfrozen state of the remote process. In this state, the process hosting the object can execute and is not restricted by the freezer from using the CPU or responding to binder transactions.
Constant Value: 1 (0x00000001)
Public methods
onFrozenStateChanged
public abstract void onFrozenStateChanged (IBinder who, int state)
Interface for receiving a callback when the process hosting an IBinder has changed its frozen state.
Parameters | |
---|---|
who |
IBinder : The IBinder whose hosting process has changed state.
This value cannot be null . |
state |
int : The latest state.
Value is STATE_FROZEN , or STATE_UNFROZEN |