CarrierConfigManager.Apn


public static final class CarrierConfigManager.Apn
extends Object

java.lang.Object
   ↳ android.telephony.CarrierConfigManager.Apn


Configs used for APN setup.

Summary

Constants

String KEY_PREFIX

This constant was deprecated in API level 31. Since KEY_PREFIX is unnecessary to public, it will modify to private next android generation.

String KEY_SETTINGS_DEFAULT_PROTOCOL_STRING

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

String KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING

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

String PROTOCOL_IPV4

IPv4 internet protocol

String PROTOCOL_IPV4V6

IPv4 or IPv6 internet protocol

String PROTOCOL_IPV6

IPv6 internet protocol

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

KEY_PREFIX

Added in API level 30
Deprecated in API level 31
public static final String KEY_PREFIX

This constant was deprecated in API level 31.
Since KEY_PREFIX is unnecessary to public, it will modify to private next android generation.

Prefix of all Apn.KEY_* constants.

Constant Value: "apn."

KEY_SETTINGS_DEFAULT_PROTOCOL_STRING

Added in API level 30
public static final String KEY_SETTINGS_DEFAULT_PROTOCOL_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

Constant Value: "apn.settings_default_protocol_string"

KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING

Added in API level 30
public static final String KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_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

Constant Value: "apn.settings_default_roaming_protocol_string"

PROTOCOL_IPV4

Added in API level 30
public static final String PROTOCOL_IPV4

IPv4 internet protocol

Constant Value: "IP"

PROTOCOL_IPV4V6

Added in API level 30
public static final String PROTOCOL_IPV4V6

IPv4 or IPv6 internet protocol

Constant Value: "IPV4V6"

PROTOCOL_IPV6

Added in API level 30
public static final String PROTOCOL_IPV6

IPv6 internet protocol

Constant Value: "IPV6"