IRemoteBroker, IRemoteObjectpublic abstract class OnPermissionChangedCallback extends RemoteObject implements IRemoteBroker
onChanged(int) when the application permission changes.IRemoteObject.DeathRecipientDUMP_TRANSACTION, INTERFACE_TRANSACTION, MAX_TRANSACTION_ID, MIN_TRANSACTION_ID, PING_TRANSACTION| 构造器 | 说明 |
|---|---|
OnPermissionChangedCallback() |
Default constructor used to create an
OnPermissionChangedCallback. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
IRemoteObject |
asObject() |
Obtains the holder of a remote proxy object.
|
abstract void |
onChanged(int uid) |
Called when the permission of an application indicated by the given UID changes.
|
boolean |
onRemoteRequest(int code,
MessageParcel data,
MessageParcel reply,
MessageOption option) |
Sets an entry for receiving requests.
|
public OnPermissionChangedCallback()
OnPermissionChangedCallback.public boolean onRemoteRequest(int code,
MessageParcel data,
MessageParcel reply,
MessageOption option)
throws RemoteException
RemoteObjectThis method is implemented by the remote service provider. You need to override this method with your own service logic when you are using IPC.
onRemoteRequest 在类中 RemoteObjectcode - Indicates the service request code sent from the peer end.data - Indicates the MessageParcel object sent from the peer end.reply - Indicates the response message object sent from the remote service.
The local service writes the response data to the MessageParcel object.option - Indicates whether the operation is synchronous or asynchronous.true if the operation succeeds; returns false otherwise.RemoteException - Throws this exception if a remote service error occurs.RemoteObject.onRemoteRequest(int, MessageParcel, MessageParcel, MessageOption)public IRemoteObject asObject()
IRemoteBrokerasObject 在接口中 IRemoteBrokerRemoteObject if the caller is RemoteObject;
returns IRemoteObject if the caller is RemoteProxy.public abstract void onChanged(int uid)
uid - Indicates the application UID.