public interface IConnectivityService
extends android.os.IInterface
Modifier and Type | Interface and Description |
---|---|
static class |
IConnectivityService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
activateAPN(java.lang.String name)
Activate a previously created MC PTT APN.
|
void |
blockNonMCCalls(int block)
Control what non-MC calls are allowed.
|
int |
checkCapability(int cap) |
java.lang.String[] |
checkCapabilityList(int cap) |
boolean |
createAPN(java.lang.String name,
java.lang.String type)
Create a MC PTT APN.
|
boolean |
deleteAPN(java.lang.String name)
Delete a previously created MC PTT APN.
|
int |
getErrorCode() |
java.lang.String |
getErrorStr() |
void |
registerNotificationReceiver(McopMessenger m)
Register a messenger instance to receive notifications from the MCOP
service.
|
int getErrorCode() throws android.os.RemoteException
android.os.RemoteException
java.lang.String getErrorStr() throws android.os.RemoteException
android.os.RemoteException
void registerNotificationReceiver(McopMessenger m) throws android.os.RemoteException
This function is platform-specific. On Android, McopMessenger is just a wrapped instance of Messenger. You must do the relevant setup to receive messages yourself.
m
- Messenger instance to receive the notificationsandroid.os.RemoteException
int checkCapability(int cap) throws android.os.RemoteException
android.os.RemoteException
java.lang.String[] checkCapabilityList(int cap) throws android.os.RemoteException
android.os.RemoteException
boolean createAPN(java.lang.String name, java.lang.String type) throws android.os.RemoteException
If your program crashes or for some other reason disconnects from the underlying MCOP service all created APNs will be deleted automatically.
Note that this call may take some time, so do not call from a thread that can not afford to block.
name
- Name of the new APNtype
- Type of the new APN, f.ex. "ims"android.os.RemoteException
boolean deleteAPN(java.lang.String name) throws android.os.RemoteException
name
- Name of APN to deleteandroid.os.RemoteException
boolean activateAPN(java.lang.String name) throws android.os.RemoteException
name
- Name of the APN to activateandroid.os.RemoteException
void blockNonMCCalls(int block) throws android.os.RemoteException
block
- One of the BLOCK_CALLS integer constants.android.os.RemoteException
Constants.Connectivity.CallBlock