ApnSetting
open class ApnSetting : Parcelable
| kotlin.Any | |
| ↳ | android.telephony.data.ApnSetting |
An Access Point Name (APN) configuration for a carrier data connection.
The APN provides configuration to connect a cellular network device to an IP data network. A carrier uses the name, type and other configuration in an APNSetting to decide which IP address to assign, any security methods to apply, and how the device might be connected to private networks.
Use ApnSetting.Builder to create new instances.
Summary
| Nested classes | |
|---|---|
| open |
Provides a convenient way to set the fields of a |
| Constants | |
|---|---|
| static Int |
Authentication type for CHAP. |
| static Int |
Authentication is not required. |
| static Int |
Authentication type for PAP. |
| static Int |
Authentication type for PAP or CHAP. |
| static Int |
MVNO type for group identifier level 1. |
| static Int |
MVNO type for ICCID. |
| static Int |
MVNO type for IMSI. |
| static Int |
MVNO type for service provider name. |
| static Int |
Internet protocol. |
| static Int |
Virtual PDP type introduced to handle dual IP stack UE capability. |
| static Int |
Internet protocol, version 6. |
| static Int |
Transfer of Non-IP data to external packet data network. |
| static Int |
Point to point protocol. |
| static Int |
Transfer of Unstructured data to the Data Network via N6. |
| static Int |
APN type for BIP. |
| static Int |
APN type for CBS. |
| static Int |
APN type for default data traffic. |
| static Int |
APN type for DUN traffic. |
| static Int |
APN type for Emergency PDN. |
| static Int |
APN type for ENTERPRISE. |
| static Int |
APN type for accessing the carrier's FOTA portal, used for over the air updates. |
| static Int |
APN type for HiPri traffic. |
| static Int |
APN type for IA Initial Attach APN. |
| static Int |
APN type for IMS. |
| static Int |
APN type for MCX (Mission Critical Service) where X can be PTT/Video/Data |
| static Int |
APN type for MMS traffic. |
| static Int |
APN type for OEM_PAID networks (Automotive PANS) |
| static Int |
APN type for OEM_PRIVATE networks (Automotive PANS) |
| static Int |
APN type for RCS (Rich Communication Services). |
| static Int |
APN type for SUPL assisted GPS. |
| static Int |
APN type for VSIM. |
| static Int |
APN type for XCAP. |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| open Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| open Boolean |
Indicates whether some other object is "equal to" this one. |
| open String! |
Returns the name of the APN. |
| open Int |
Returns the bitmask of APN types. |
| open Int |
Returns the authentication type of the APN. |
| open Int |
Returns the carrier id for this APN. |
| open String! |
Gets the human-readable name that describes the APN. |
| open Int |
getId()Returns the unique database id for this entry. |
| open InetAddress! |
Gets the MMS proxy address configured for the APN. |
| open String! |
Returns the MMS proxy address of the APN. |
| open Int |
Returns the MMS proxy port of the APN. |
| open Uri! |
getMmsc()Returns the MMSC Uri of the APN. |
| open Int |
getMtuV4()Returns the default MTU (Maximum Transmission Unit) size in bytes of the IPv4 routes brought up by this APN setting. |
| open Int |
getMtuV6()Returns the MTU size of the IPv6 mobile interface to which the APN connected. |
| open Int |
Returns the MVNO match type for this APN. |
| open Int |
Returns a bitmask describing the Radio Technologies (Network Types) which this APN may use. |
| open String! |
Returns the numeric operator ID for the APN. |
| open String! |
Returns the APN password of the APN. |
| open Int |
Returns the profile id to which the APN saved in modem. |
| open Int |
Returns the protocol to use to connect to this APN. |
| open InetAddress! |
Gets the HTTP proxy address configured for the APN. |
| open String! |
Returns the proxy address of the APN. |
| open Int |
Returns the proxy address of the APN. |
| open Int |
Returns the protocol to use to connect to this APN while the device is roaming. |
| open String! |
getUser()Returns the APN username of the APN. |
| open Int |
hashCode()Returns a hash code value for the object. |
| open Boolean |
Returns whether User Plane resources have to be activated during every transition from CM-IDLE mode to CM-CONNECTED state for this APN See 3GPP TS 23. |
| open Boolean |
Returns the current status of APN. |
| open Boolean |
Returns if the APN setting is persistent on the modem. |
| open String |
toString()Returns the string representation of ApnSetting. |
| open Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<ApnSetting!> | |
Constants
AUTH_TYPE_CHAP
static val AUTH_TYPE_CHAP: Int
Authentication type for CHAP.
Value: 2AUTH_TYPE_NONE
static val AUTH_TYPE_NONE: Int
Authentication is not required.
Value: 0AUTH_TYPE_PAP
static val AUTH_TYPE_PAP: Int
Authentication type for PAP.
Value: 1AUTH_TYPE_PAP_OR_CHAP
static val AUTH_TYPE_PAP_OR_CHAP: Int
Authentication type for PAP or CHAP.
Value: 3MVNO_TYPE_GID
static val MVNO_TYPE_GID: Int
MVNO type for group identifier level 1.
Value: 2MVNO_TYPE_SPN
static val MVNO_TYPE_SPN: Int
MVNO type for service provider name.
Value: 0PROTOCOL_IPV4V6
static val PROTOCOL_IPV4V6: Int
Virtual PDP type introduced to handle dual IP stack UE capability.
Value: 2PROTOCOL_IPV6
static val PROTOCOL_IPV6: Int
Internet protocol, version 6.
Value: 1PROTOCOL_NON_IP
static val PROTOCOL_NON_IP: Int
Transfer of Non-IP data to external packet data network.
Value: 4