public interface IApnDevice extends IAdvanceDevice
| Modifier and Type | Method and Description |
|---|---|
String |
add(String name,
String apn)
Add a simple APN configuration with only name and APN address.
|
String |
addByAllArgs(String name,
String apn,
String mcc,
String mnc,
String proxy,
String port,
String MMSProxy,
String MMSPort,
String userName,
String server,
String password,
String MMSC,
String authType,
String protocol,
String roamingProtocol,
String type,
String bearer,
String MVNOType,
String MVNOMatchData)
Add a complete APN configuration with full parameter set.
|
String |
addByMCCAndMNC(String name,
String apn,
String mcc,
String mnc)
Add APN with specified MCC and MNC.
|
boolean |
clear()
Remove all APN configurations.
|
boolean |
clearWithSlot(int slot)
Remove all APN configurations for a specific SIM slot.
|
Map |
getSelected()
Get currently selected APN information.
|
List |
query(String columnName,
String value)
Query APN configurations by column name and value.
|
List |
queryByName(String value)
Query APN configurations by APN name.
|
boolean |
removeByID(int id)
Remove an APN configuration by ID.
|
boolean |
removeByName(String name)
Remove an APN configuration by APN name.
|
boolean |
setSelected(String name)
Set the specified APN as the currently active APN.
|
close, isOpened, openString add(String name, String apn) throws DeviceException
name - APN display name. Must not be null.apn - APN address. Must not be null.DeviceException - if operation fails.String addByAllArgs(String name, String apn, String mcc, String mnc, String proxy, String port, String MMSProxy, String MMSPort, String userName, String server, String password, String MMSC, String authType, String protocol, String roamingProtocol, String type, String bearer, String MVNOType, String MVNOMatchData) throws DeviceException
name: - @NonNullapn: - @NonNullmcc: - @NonNullmnc: - @NonNullproxy: - @Nullable, default: nullport: - @Nullable, default: nullMMSProxy: - @Nullable, default: nullMMSPort: - @Nullable, default: nulluserName - @Nullable, default: nullserver - @Nullable, default: nullpassword - @Nullable, default: nullMMSC - @Nullable, default: nullauthType: - 0,PAP,CHAP,PAP/CHAP @Nullable, default: 0protocol: - IPV4,IPV6,IPV4/IPV6 @Nullable, default: IPV4roamingProtocol: - IPV4,IPV6,IPV4/IPV6 @Nullable, default: IPV4type: - @Nullable, default: nullbearer: - @Nullable, default: 0MVNOType: - @Nullable, default: ""MVNOMatchData - @Nullable, default: nullDeviceExceptionString addByMCCAndMNC(String name, String apn, String mcc, String mnc) throws DeviceException
name - APN display name.apn - APN address.mcc - Mobile Country Code.mnc - Mobile Network Code.DeviceException - if operation fails.boolean clear()
throws DeviceException
DeviceException - if operation fails.boolean clearWithSlot(int slot)
throws DeviceException
slot - SIM slot index.DeviceException - if operation fails.Map getSelected() throws DeviceException
DeviceException - if operation fails.List query(String columnName, String value) throws DeviceException
columnName - Column name to query.value - Column value to match.DeviceException - if operation fails.List queryByName(String value) throws DeviceException
value - APN name to match.DeviceException - if operation fails.boolean removeByID(int id)
throws DeviceException
id - APN record ID.DeviceException - if operation fails.boolean removeByName(String name) throws DeviceException
name - APN display name.DeviceException - if operation fails.boolean setSelected(String name) throws DeviceException
name - APN display name to be selected.DeviceException - if operation fails.