Added in API level 30

Apn

class Apn
kotlin.Any
   ↳ android.telephony.CarrierConfigManager.Apn

Configs used for APN setup.

Summary

Constants
static String

Prefix of all Apn.

static String

Default value of APN protocol field if not specified by user when adding/modifying an APN.

static String

Default value of APN roaming protocol field if not specified by user when adding/modifying an APN.

static String

IPv4 internet protocol

static String

IPv4 or IPv6 internet protocol

static String

IPv6 internet protocol

Constants

KEY_PREFIX

Added in API level 30
Deprecated in API level 31
static val KEY_PREFIX: String

Deprecated: Since KEY_PREFIX is unnecessary to public, it will modify to private next android generation.

Prefix of all Apn.KEY_* constants.

Value: "apn."

KEY_SETTINGS_DEFAULT_PROTOCOL_STRING

Added in API level 30
static val KEY_SETTINGS_DEFAULT_PROTOCOL_STRING: String

Default value of APN protocol field if not specified by user when adding/modifying an APN. Available options are: PROTOCOL_IPV4, PROTOCOL_IPV6, PROTOCOL_IPV4V6

Value: "apn.settings_default_protocol_string"

KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING

Added in API level 30
static val KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING: String

Default value of APN roaming protocol field if not specified by user when adding/modifying an APN. Available options are: PROTOCOL_IPV4, PROTOCOL_IPV6, PROTOCOL_IPV4V6

Value: "apn.settings_default_roaming_protocol_string"

PROTOCOL_IPV4

Added in API level 30
static val PROTOCOL_IPV4: String

IPv4 internet protocol

Value: "IP"

PROTOCOL_IPV4V6

Added in API level 30
static val PROTOCOL_IPV4V6: String

IPv4 or IPv6 internet protocol

Value: "IPV4V6"

PROTOCOL_IPV6

Added in API level 30
static val PROTOCOL_IPV6: String

IPv6 internet protocol

Value: "IPV6"