Added in API level 30

PreciseDataConnectionState


class PreciseDataConnectionState : Parcelable
kotlin.Any
   ↳ android.telephony.PreciseDataConnectionState

Contains precise data connection state. The following data connection information is included in returned PreciseDataConnectionState:

  • Data connection state.
  • Network type of the connection.
  • APN types.
  • APN.
  • The properties of the network link.
  • Data connection fail cause.

Summary

Constants
static Int

Failure.

static Int

In progress.

static Int

Not Requested.

static Int

Success.

static Int

Unsupported.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

ApnSetting?

Return the APN Settings for this data connection.

Int

Int

Returns the cause code generated by the most recent state change.

LinkProperties?

Get the properties of the network link LinkProperties.

Int

Get the network type associated with this data connection.

Int

Returns the network validation state.

Int

Int

Int

String

Returns a string representation of the object.

Unit
writeToParcel(out: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<PreciseDataConnectionState!>

Constants

NETWORK_VALIDATION_FAILURE

Added in API level 35
static val NETWORK_VALIDATION_FAILURE: Int

Failure. The Failure status is used when network validation has been completed for the data network and the result is failure.

Value: 4

NETWORK_VALIDATION_IN_PROGRESS

Added in API level 35
static val NETWORK_VALIDATION_IN_PROGRESS: Int

In progress. The in progress state is used when the network validation process for the data network is in progress. This state is followed by either success or failure.

Value: 2

NETWORK_VALIDATION_NOT_REQUESTED

Added in API level 35
static val NETWORK_VALIDATION_NOT_REQUESTED: Int

Not Requested. The not requested status is used when the data network supports the network validation function, but no network validation is being performed yet.

Value: 1

NETWORK_VALIDATION_SUCCESS

Added in API level 35
static val NETWORK_VALIDATION_SUCCESS: Int

Success. The Success status is used when network validation has been completed for the data network and the result is successful.

Value: 3

NETWORK_VALIDATION_UNSUPPORTED

Added in API level 35
static val NETWORK_VALIDATION_UNSUPPORTED: Int

Unsupported. The unsupported state is used when the data network cannot support the network validation function for the current data connection state.

Value: 0

Public methods

describeContents

Added in API level 30
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 30
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getApnSetting

Added in API level 30
fun getApnSetting(): ApnSetting?

Return the APN Settings for this data connection.

Return
ApnSetting? the ApnSetting that was used to configure this data connection. Note that a data connection cannot be established without a valid ApnSetting. The return value would never be null even though it has Nullable annotation.

getId

Added in API level 31
fun getId(): Int
Return
Int The unique id of the data connection Note this is the id assigned by the data service. The id remains the same for data connection handover between AccessNetworkConstants#TRANSPORT_TYPE_WLAN and AccessNetworkConstants#TRANSPORT_TYPE_WWAN

getLastCauseCode

Added in API level 30
fun getLastCauseCode(): Int

Returns the cause code generated by the most recent state change. Return the cause code for the most recent change in getState. In the event of an error, this cause code will be non-zero.

Return
Int Value is android.telephony.DataFailCause#NONE, android.telephony.DataFailCause#OPERATOR_BARRED, android.telephony.DataFailCause#NAS_SIGNALLING, android.telephony.DataFailCause#LLC_SNDCP, android.telephony.DataFailCause#INSUFFICIENT_RESOURCES, android.telephony.DataFailCause#MISSING_UNKNOWN_APN, android.telephony.DataFailCause#UNKNOWN_PDP_ADDRESS_TYPE, android.telephony.DataFailCause#USER_AUTHENTICATION, android.telephony.DataFailCause#ACTIVATION_REJECT_GGSN, android.telephony.DataFailCause#ACTIVATION_REJECT_UNSPECIFIED, android.telephony.DataFailCause#SERVICE_OPTION_NOT_SUPPORTED, android.telephony.DataFailCause#SERVICE_OPTION_NOT_SUBSCRIBED, android.telephony.DataFailCause#SERVICE_OPTION_OUT_OF_ORDER, android.telephony.DataFailCause#NSAPI_IN_USE, android.telephony.DataFailCause#REGULAR_DEACTIVATION, android.telephony.DataFailCause#QOS_NOT_ACCEPTED, android.telephony.DataFailCause#NETWORK_FAILURE, android.telephony.DataFailCause#UMTS_REACTIVATION_REQ, android.telephony.DataFailCause#FEATURE_NOT_SUPP, android.telephony.DataFailCause#TFT_SEMANTIC_ERROR, android.telephony.DataFailCause#TFT_SYTAX_ERROR, android.telephony.DataFailCause#UNKNOWN_PDP_CONTEXT, android.telephony.DataFailCause#FILTER_SEMANTIC_ERROR, android.telephony.DataFailCause#FILTER_SYTAX_ERROR, android.telephony.DataFailCause#PDP_WITHOUT_ACTIVE_TFT, android.telephony.DataFailCause#ACTIVATION_REJECTED_BCM_VIOLATION, android.telephony.DataFailCause#ONLY_IPV4_ALLOWED, android.telephony.DataFailCause#ONLY_IPV6_ALLOWED, android.telephony.DataFailCause#ONLY_SINGLE_BEARER_ALLOWED, android.telephony.DataFailCause#ESM_INFO_NOT_RECEIVED, android.telephony.DataFailCause#PDN_CONN_DOES_NOT_EXIST, android.telephony.DataFailCause#MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED, android.telephony.DataFailCause#COLLISION_WITH_NETWORK_INITIATED_REQUEST, android.telephony.DataFailCause#ONLY_IPV4V6_ALLOWED, android.telephony.DataFailCause#ONLY_NON_IP_ALLOWED, android.telephony.DataFailCause#UNSUPPORTED_QCI_VALUE, android.telephony.DataFailCause#BEARER_HANDLING_NOT_SUPPORTED, android.telephony.DataFailCause#ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED, android.telephony.DataFailCause#UNSUPPORTED_APN_IN_CURRENT_PLMN, android.telephony.DataFailCause#INVALID_TRANSACTION_ID, android.telephony.DataFailCause#MESSAGE_INCORRECT_SEMANTIC, android.telephony.DataFailCause#INVALID_MANDATORY_INFO, android.telephony.DataFailCause#MESSAGE_TYPE_UNSUPPORTED, android.telephony.DataFailCause#MSG_TYPE_NONCOMPATIBLE_STATE, android.telephony.DataFailCause#UNKNOWN_INFO_ELEMENT, android.telephony.DataFailCause#CONDITIONAL_IE_ERROR, android.telephony.DataFailCause#MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE, android.telephony.DataFailCause#PROTOCOL_ERRORS, android.telephony.DataFailCause#APN_TYPE_CONFLICT, android.telephony.DataFailCause#INVALID_PCSCF_ADDR, android.telephony.DataFailCause#INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN, android.telephony.DataFailCause#EMM_ACCESS_BARRED, android.telephony.DataFailCause#EMERGENCY_IFACE_ONLY, android.telephony.DataFailCause#IFACE_MISMATCH, android.telephony.DataFailCause#COMPANION_IFACE_IN_USE, android.telephony.DataFailCause#IP_ADDRESS_MISMATCH, android.telephony.DataFailCause#IFACE_AND_POL_FAMILY_MISMATCH, android.telephony.DataFailCause#EMM_ACCESS_BARRED_INFINITE_RETRY, android.telephony.DataFailCause#AUTH_FAILURE_ON_EMERGENCY_CALL, android.telephony.DataFailCause#INVALID_DNS_ADDR, android.telephony.DataFailCause#INVALID_PCSCF_OR_DNS_ADDRESS, android.telephony.DataFailCause#CALL_PREEMPT_BY_EMERGENCY_APN, android.telephony.DataFailCause#UE_INITIATED_DETACH_OR_DISCONNECT, android.telephony.DataFailCause#MIP_FA_REASON_UNSPECIFIED, android.telephony.DataFailCause#MIP_FA_ADMIN_PROHIBITED, android.telephony.DataFailCause#MIP_FA_INSUFFICIENT_RESOURCES, android.telephony.DataFailCause#MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE, android.telephony.DataFailCause#MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE, android.telephony.DataFailCause#MIP_FA_REQUESTED_LIFETIME_TOO_LONG, android.telephony.DataFailCause#MIP_FA_MALFORMED_REQUEST, android.telephony.DataFailCause#MIP_FA_MALFORMED_REPLY, android.telephony.DataFailCause#MIP_FA_ENCAPSULATION_UNAVAILABLE, android.telephony.DataFailCause#MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE, android.telephony.DataFailCause#MIP_FA_REVERSE_TUNNEL_UNAVAILABLE, android.telephony.DataFailCause#MIP_FA_REVERSE_TUNNEL_IS_MANDATORY, android.telephony.DataFailCause#MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED, android.telephony.DataFailCause#MIP_FA_MISSING_NAI, android.telephony.DataFailCause#MIP_FA_MISSING_HOME_AGENT, android.telephony.DataFailCause#MIP_FA_MISSING_HOME_ADDRESS, android.telephony.DataFailCause#MIP_FA_UNKNOWN_CHALLENGE, android.telephony.DataFailCause#MIP_FA_MISSING_CHALLENGE, android.telephony.DataFailCause#MIP_FA_STALE_CHALLENGE, android.telephony.DataFailCause#MIP_HA_REASON_UNSPECIFIED, android.telephony.DataFailCause#MIP_HA_ADMIN_PROHIBITED, android.telephony.DataFailCause#MIP_HA_INSUFFICIENT_RESOURCES, android.telephony.DataFailCause#MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE, android.telephony.DataFailCause#MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE, android.telephony.DataFailCause#MIP_HA_REGISTRATION_ID_MISMATCH, android.telephony.DataFailCause#MIP_HA_MALFORMED_REQUEST, android.telephony.DataFailCause#MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS, android.telephony.DataFailCause#MIP_HA_REVERSE_TUNNEL_UNAVAILABLE, android.telephony.DataFailCause#MIP_HA_REVERSE_TUNNEL_IS_MANDATORY, android.telephony.DataFailCause#MIP_HA_ENCAPSULATION_UNAVAILABLE, android.telephony.DataFailCause#CLOSE_IN_PROGRESS, android.telephony.DataFailCause#NETWORK_INITIATED_TERMINATION, android.telephony.DataFailCause#MODEM_APP_PREEMPTED, android.telephony.DataFailCause#PDN_IPV4_CALL_DISALLOWED, android.telephony.DataFailCause#PDN_IPV4_CALL_THROTTLED, android.telephony.DataFailCause#PDN_IPV6_CALL_DISALLOWED, android.telephony.DataFailCause#PDN_IPV6_CALL_THROTTLED, android.telephony.DataFailCause#MODEM_RESTART, android.telephony.DataFailCause#PDP_PPP_NOT_SUPPORTED, android.telephony.DataFailCause#UNPREFERRED_RAT, android.telephony.DataFailCause#PHYSICAL_LINK_CLOSE_IN_PROGRESS, android.telephony.DataFailCause#APN_PENDING_HANDOVER, android.telephony.DataFailCause#PROFILE_BEARER_INCOMPATIBLE, android.telephony.DataFailCause#SIM_CARD_CHANGED, android.telephony.DataFailCause#LOW_POWER_MODE_OR_POWERING_DOWN, android.telephony.DataFailCause#APN_DISABLED, android.telephony.DataFailCause#MAX_PPP_INACTIVITY_TIMER_EXPIRED, android.telephony.DataFailCause#IPV6_ADDRESS_TRANSFER_FAILED, android.telephony.DataFailCause#TRAT_SWAP_FAILED, android.telephony.DataFailCause#EHRPD_TO_HRPD_FALLBACK, android.telephony.DataFailCause#MIP_CONFIG_FAILURE, android.telephony.DataFailCause#PDN_INACTIVITY_TIMER_EXPIRED, android.telephony.DataFailCause#MAX_IPV4_CONNECTIONS, android.telephony.DataFailCause#MAX_IPV6_CONNECTIONS, android.telephony.DataFailCause#APN_MISMATCH, android.telephony.DataFailCause#IP_VERSION_MISMATCH, android.telephony.DataFailCause#DUN_CALL_DISALLOWED, android.telephony.DataFailCause#INTERNAL_EPC_NONEPC_TRANSITION, android.telephony.DataFailCause#INTERFACE_IN_USE, android.telephony.DataFailCause#APN_DISALLOWED_ON_ROAMING, android.telephony.DataFailCause#APN_PARAMETERS_CHANGED, android.telephony.DataFailCause#NULL_APN_DISALLOWED, android.telephony.DataFailCause#THERMAL_MITIGATION, android.telephony.DataFailCause#DATA_SETTINGS_DISABLED, android.telephony.DataFailCause#DATA_ROAMING_SETTINGS_DISABLED, android.telephony.DataFailCause#DDS_SWITCHED, android.telephony.DataFailCause#FORBIDDEN_APN_NAME, android.telephony.DataFailCause#DDS_SWITCH_IN_PROGRESS, android.telephony.DataFailCause#CALL_DISALLOWED_IN_ROAMING, android.telephony.DataFailCause#NON_IP_NOT_SUPPORTED, android.telephony.DataFailCause#PDN_NON_IP_CALL_THROTTLED, android.telephony.DataFailCause#PDN_NON_IP_CALL_DISALLOWED, android.telephony.DataFailCause#CDMA_LOCK, android.telephony.DataFailCause#CDMA_INTERCEPT, android.telephony.DataFailCause#CDMA_REORDER, android.telephony.DataFailCause#CDMA_RELEASE_DUE_TO_SO_REJECTION, android.telephony.DataFailCause#CDMA_INCOMING_CALL, android.telephony.DataFailCause#CDMA_ALERT_STOP, android.telephony.DataFailCause#CHANNEL_ACQUISITION_FAILURE, android.telephony.DataFailCause#MAX_ACCESS_PROBE, android.telephony.DataFailCause#CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION, android.telephony.DataFailCause#NO_RESPONSE_FROM_BASE_STATION, android.telephony.DataFailCause#REJECTED_BY_BASE_STATION, android.telephony.DataFailCause#CONCURRENT_SERVICES_INCOMPATIBLE, android.telephony.DataFailCause#NO_CDMA_SERVICE, android.telephony.DataFailCause#RUIM_NOT_PRESENT, android.telephony.DataFailCause#CDMA_RETRY_ORDER, android.telephony.DataFailCause#ACCESS_BLOCK, android.telephony.DataFailCause#ACCESS_BLOCK_ALL, android.telephony.DataFailCause#IS707B_MAX_ACCESS_PROBES, android.telephony.DataFailCause#THERMAL_EMERGENCY, android.telephony.DataFailCause#CONCURRENT_SERVICES_NOT_ALLOWED, android.telephony.DataFailCause#INCOMING_CALL_REJECTED, android.telephony.DataFailCause#NO_SERVICE_ON_GATEWAY, android.telephony.DataFailCause#NO_GPRS_CONTEXT, android.telephony.DataFailCause#ILLEGAL_MS, android.telephony.DataFailCause#ILLEGAL_ME, android.telephony.DataFailCause#GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED, android.telephony.DataFailCause#GPRS_SERVICES_NOT_ALLOWED, android.telephony.DataFailCause#MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK, android.telephony.DataFailCause#IMPLICITLY_DETACHED, android.telephony.DataFailCause#PLMN_NOT_ALLOWED, android.telephony.DataFailCause#LOCATION_AREA_NOT_ALLOWED, android.telephony.DataFailCause#GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN, android.telephony.DataFailCause#PDP_DUPLICATE, android.telephony.DataFailCause#UE_RAT_CHANGE, android.telephony.DataFailCause#CONGESTION, android.telephony.DataFailCause#NO_PDP_CONTEXT_ACTIVATED, android.telephony.DataFailCause#ACCESS_CLASS_DSAC_REJECTION, android.telephony.DataFailCause#PDP_ACTIVATE_MAX_RETRY_FAILED, android.telephony.DataFailCause#RADIO_ACCESS_BEARER_FAILURE, android.telephony.DataFailCause#ESM_UNKNOWN_EPS_BEARER_CONTEXT, android.telephony.DataFailCause#DRB_RELEASED_BY_RRC, android.telephony.DataFailCause#CONNECTION_RELEASED, android.telephony.DataFailCause#EMM_DETACHED, android.telephony.DataFailCause#EMM_ATTACH_FAILED, android.telephony.DataFailCause#EMM_ATTACH_STARTED, android.telephony.DataFailCause#LTE_NAS_SERVICE_REQUEST_FAILED, android.telephony.DataFailCause#DUPLICATE_BEARER_ID, android.telephony.DataFailCause#ESM_COLLISION_SCENARIOS, android.telephony.DataFailCause#ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK, android.telephony.DataFailCause#ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER, android.telephony.DataFailCause#ESM_BAD_OTA_MESSAGE, android.telephony.DataFailCause#ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL, android.telephony.DataFailCause#ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT, android.telephony.DataFailCause#DS_EXPLICIT_DEACTIVATION, android.telephony.DataFailCause#ESM_LOCAL_CAUSE_NONE, android.telephony.DataFailCause#LTE_THROTTLING_NOT_REQUIRED, android.telephony.DataFailCause#ACCESS_CONTROL_LIST_CHECK_FAILURE, android.telephony.DataFailCause#SERVICE_NOT_ALLOWED_ON_PLMN, android.telephony.DataFailCause#EMM_T3417_EXPIRED, android.telephony.DataFailCause#EMM_T3417_EXT_EXPIRED, android.telephony.DataFailCause#RRC_UPLINK_DATA_TRANSMISSION_FAILURE, android.telephony.DataFailCause#RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER, android.telephony.DataFailCause#RRC_UPLINK_CONNECTION_RELEASE, android.telephony.DataFailCause#RRC_UPLINK_RADIO_LINK_FAILURE, android.telephony.DataFailCause#RRC_UPLINK_ERROR_REQUEST_FROM_NAS, android.telephony.DataFailCause#RRC_CONNECTION_ACCESS_STRATUM_FAILURE, android.telephony.DataFailCause#RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS, android.telephony.DataFailCause#RRC_CONNECTION_ACCESS_BARRED, android.telephony.DataFailCause#RRC_CONNECTION_CELL_RESELECTION, android.telephony.DataFailCause#RRC_CONNECTION_CONFIG_FAILURE, android.telephony.DataFailCause#RRC_CONNECTION_TIMER_EXPIRED, android.telephony.DataFailCause#RRC_CONNECTION_LINK_FAILURE, android.telephony.DataFailCause#RRC_CONNECTION_CELL_NOT_CAMPED, android.telephony.DataFailCause#RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE, android.telephony.DataFailCause#RRC_CONNECTION_REJECT_BY_NETWORK, android.telephony.DataFailCause#RRC_CONNECTION_NORMAL_RELEASE, android.telephony.DataFailCause#RRC_CONNECTION_RADIO_LINK_FAILURE, android.telephony.DataFailCause#RRC_CONNECTION_REESTABLISHMENT_FAILURE, android.telephony.DataFailCause#RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER, android.telephony.DataFailCause#RRC_CONNECTION_ABORT_REQUEST, android.telephony.DataFailCause#RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR, android.telephony.DataFailCause#NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH, android.telephony.DataFailCause#NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH, android.telephony.DataFailCause#ESM_PROCEDURE_TIME_OUT, android.telephony.DataFailCause#INVALID_CONNECTION_ID, android.telephony.DataFailCause#MAXIMIUM_NSAPIS_EXCEEDED, android.telephony.DataFailCause#INVALID_PRIMARY_NSAPI, android.telephony.DataFailCause#CANNOT_ENCODE_OTA_MESSAGE, android.telephony.DataFailCause#RADIO_ACCESS_BEARER_SETUP_FAILURE, android.telephony.DataFailCause#PDP_ESTABLISH_TIMEOUT_EXPIRED, android.telephony.DataFailCause#PDP_MODIFY_TIMEOUT_EXPIRED, android.telephony.DataFailCause#PDP_INACTIVE_TIMEOUT_EXPIRED, android.telephony.DataFailCause#PDP_LOWERLAYER_ERROR, android.telephony.DataFailCause#PDP_MODIFY_COLLISION, android.telephony.DataFailCause#MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED, android.telephony.DataFailCause#NAS_REQUEST_REJECTED_BY_NETWORK, android.telephony.DataFailCause#RRC_CONNECTION_INVALID_REQUEST, android.telephony.DataFailCause#RRC_CONNECTION_TRACKING_AREA_ID_CHANGED, android.telephony.DataFailCause#RRC_CONNECTION_RF_UNAVAILABLE, android.telephony.DataFailCause#RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE, android.telephony.DataFailCause#RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE, android.telephony.DataFailCause#RRC_CONNECTION_ABORTED_AFTER_HANDOVER, android.telephony.DataFailCause#RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE, android.telephony.DataFailCause#RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE, android.telephony.DataFailCause#IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER, android.telephony.DataFailCause#IMEI_NOT_ACCEPTED, android.telephony.DataFailCause#EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED, android.telephony.DataFailCause#EPS_SERVICES_NOT_ALLOWED_IN_PLMN, android.telephony.DataFailCause#MSC_TEMPORARILY_NOT_REACHABLE, android.telephony.DataFailCause#CS_DOMAIN_NOT_AVAILABLE, android.telephony.DataFailCause#ESM_FAILURE, android.telephony.DataFailCause#MAC_FAILURE, android.telephony.DataFailCause#SYNCHRONIZATION_FAILURE, android.telephony.DataFailCause#UE_SECURITY_CAPABILITIES_MISMATCH, android.telephony.DataFailCause#SECURITY_MODE_REJECTED, android.telephony.DataFailCause#UNACCEPTABLE_NON_EPS_AUTHENTICATION, android.telephony.DataFailCause#CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED, android.telephony.DataFailCause#NO_EPS_BEARER_CONTEXT_ACTIVATED, android.telephony.DataFailCause#INVALID_EMM_STATE, android.telephony.DataFailCause#NAS_LAYER_FAILURE, android.telephony.DataFailCause#MULTIPLE_PDP_CALL_NOT_ALLOWED, android.telephony.DataFailCause#EMBMS_NOT_ENABLED, android.telephony.DataFailCause#IRAT_HANDOVER_FAILED, android.telephony.DataFailCause#EMBMS_REGULAR_DEACTIVATION, android.telephony.DataFailCause#TEST_LOOPBACK_REGULAR_DEACTIVATION, android.telephony.DataFailCause#LOWER_LAYER_REGISTRATION_FAILURE, android.telephony.DataFailCause#DATA_PLAN_EXPIRED, android.telephony.DataFailCause#UMTS_HANDOVER_TO_IWLAN, android.telephony.DataFailCause#EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY, android.telephony.DataFailCause#EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE, android.telephony.DataFailCause#EVDO_HDR_CHANGED, android.telephony.DataFailCause#EVDO_HDR_EXITED, android.telephony.DataFailCause#EVDO_HDR_NO_SESSION, android.telephony.DataFailCause#EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL, android.telephony.DataFailCause#EVDO_HDR_CONNECTION_SETUP_TIMEOUT, android.telephony.DataFailCause#FAILED_TO_ACQUIRE_COLOCATED_HDR, android.telephony.DataFailCause#OTASP_COMMIT_IN_PROGRESS, android.telephony.DataFailCause#NO_HYBRID_HDR_SERVICE, android.telephony.DataFailCause#HDR_NO_LOCK_GRANTED, android.telephony.DataFailCause#DBM_OR_SMS_IN_PROGRESS, android.telephony.DataFailCause#HDR_FADE, android.telephony.DataFailCause#HDR_ACCESS_FAILURE, android.telephony.DataFailCause#UNSUPPORTED_1X_PREV, android.telephony.DataFailCause#LOCAL_END, android.telephony.DataFailCause#NO_SERVICE, android.telephony.DataFailCause#FADE, android.telephony.DataFailCause#NORMAL_RELEASE, android.telephony.DataFailCause#ACCESS_ATTEMPT_ALREADY_IN_PROGRESS, android.telephony.DataFailCause#REDIRECTION_OR_HANDOFF_IN_PROGRESS, android.telephony.DataFailCause#EMERGENCY_MODE, android.telephony.DataFailCause#PHONE_IN_USE, android.telephony.DataFailCause#INVALID_MODE, android.telephony.DataFailCause#INVALID_SIM_STATE, android.telephony.DataFailCause#NO_COLLOCATED_HDR, android.telephony.DataFailCause#UE_IS_ENTERING_POWERSAVE_MODE, android.telephony.DataFailCause#DUAL_SWITCH, android.telephony.DataFailCause#PPP_TIMEOUT, android.telephony.DataFailCause#PPP_AUTH_FAILURE, android.telephony.DataFailCause#PPP_OPTION_MISMATCH, android.telephony.DataFailCause#PPP_PAP_FAILURE, android.telephony.DataFailCause#PPP_CHAP_FAILURE, android.telephony.DataFailCause#PPP_CLOSE_IN_PROGRESS, android.telephony.DataFailCause#LIMITED_TO_IPV4, android.telephony.DataFailCause#LIMITED_TO_IPV6, android.telephony.DataFailCause#VSNCP_TIMEOUT, android.telephony.DataFailCause#VSNCP_GEN_ERROR, android.telephony.DataFailCause#VSNCP_APN_UNAUTHORIZED, android.telephony.DataFailCause#VSNCP_PDN_LIMIT_EXCEEDED, android.telephony.DataFailCause#VSNCP_NO_PDN_GATEWAY_ADDRESS, android.telephony.DataFailCause#VSNCP_PDN_GATEWAY_UNREACHABLE, android.telephony.DataFailCause#VSNCP_PDN_GATEWAY_REJECT, android.telephony.DataFailCause#VSNCP_INSUFFICIENT_PARAMETERS, android.telephony.DataFailCause#VSNCP_RESOURCE_UNAVAILABLE, android.telephony.DataFailCause#VSNCP_ADMINISTRATIVELY_PROHIBITED, android.telephony.DataFailCause#VSNCP_PDN_ID_IN_USE, android.telephony.DataFailCause#VSNCP_SUBSCRIBER_LIMITATION, android.telephony.DataFailCause#VSNCP_PDN_EXISTS_FOR_THIS_APN, android.telephony.DataFailCause#VSNCP_RECONNECT_NOT_ALLOWED, android.telephony.DataFailCause#IPV6_PREFIX_UNAVAILABLE, android.telephony.DataFailCause#HANDOFF_PREFERENCE_CHANGED, android.telephony.DataFailCause#SLICE_REJECTED, android.telephony.DataFailCause#MATCH_ALL_RULE_NOT_ALLOWED, android.telephony.DataFailCause#ALL_MATCHING_RULES_FAILED, android.telephony.DataFailCause#OEM_DCFAILCAUSE_1, android.telephony.DataFailCause#OEM_DCFAILCAUSE_2, android.telephony.DataFailCause#OEM_DCFAILCAUSE_3, android.telephony.DataFailCause#OEM_DCFAILCAUSE_4, android.telephony.DataFailCause#OEM_DCFAILCAUSE_5, android.telephony.DataFailCause#OEM_DCFAILCAUSE_6, android.telephony.DataFailCause#OEM_DCFAILCAUSE_7, android.telephony.DataFailCause#OEM_DCFAILCAUSE_8, android.telephony.DataFailCause#OEM_DCFAILCAUSE_9, android.telephony.DataFailCause#OEM_DCFAILCAUSE_10, android.telephony.DataFailCause#OEM_DCFAILCAUSE_11, android.telephony.DataFailCause#OEM_DCFAILCAUSE_12, android.telephony.DataFailCause#OEM_DCFAILCAUSE_13, android.telephony.DataFailCause#OEM_DCFAILCAUSE_14, android.telephony.DataFailCause#OEM_DCFAILCAUSE_15, android.telephony.DataFailCause#REGISTRATION_FAIL, android.telephony.DataFailCause#GPRS_REGISTRATION_FAIL, android.telephony.DataFailCause#SIGNAL_LOST, android.telephony.DataFailCause#PREF_RADIO_TECH_CHANGED, android.telephony.DataFailCause#RADIO_POWER_OFF, android.telephony.DataFailCause#TETHERED_CALL_ACTIVE, android.telephony.DataFailCause#ERROR_UNSPECIFIED, android.telephony.DataFailCause#UNKNOWN, android.telephony.DataFailCause#RADIO_NOT_AVAILABLE, android.telephony.DataFailCause#UNACCEPTABLE_NETWORK_PARAMETER, or android.telephony.DataFailCause#LOST_CONNECTION

getLinkProperties

Added in API level 30
fun getLinkProperties(): LinkProperties?

Get the properties of the network link LinkProperties.

Return
LinkProperties? This value may be null.

getNetworkType

Added in API level 30
fun getNetworkType(): Int

Get the network type associated with this data connection.

Return
Int The current/latest (radio) bearer technology that carries this data connection. For a variety of reasons, the network type can change during the life of the data connection, and this information is not reliable unless the physical link is currently active; (there is currently no mechanism to know whether the physical link is active at any given moment). Thus, this value is generally correct but may not be relied-upon to represent the status of the radio bearer at any given moment. Value is android.telephony.TelephonyManager#NETWORK_TYPE_UNKNOWN, android.telephony.TelephonyManager#NETWORK_TYPE_GPRS, android.telephony.TelephonyManager#NETWORK_TYPE_EDGE, android.telephony.TelephonyManager#NETWORK_TYPE_UMTS, android.telephony.TelephonyManager#NETWORK_TYPE_CDMA, android.telephony.TelephonyManager#NETWORK_TYPE_EVDO_0, android.telephony.TelephonyManager#NETWORK_TYPE_EVDO_A, android.telephony.TelephonyManager#NETWORK_TYPE_1xRTT, android.telephony.TelephonyManager#NETWORK_TYPE_HSDPA, android.telephony.TelephonyManager#NETWORK_TYPE_HSUPA, android.telephony.TelephonyManager#NETWORK_TYPE_HSPA, android.telephony.TelephonyManager#NETWORK_TYPE_IDEN, android.telephony.TelephonyManager#NETWORK_TYPE_EVDO_B, android.telephony.TelephonyManager#NETWORK_TYPE_LTE, android.telephony.TelephonyManager#NETWORK_TYPE_EHRPD, android.telephony.TelephonyManager#NETWORK_TYPE_HSPAP, android.telephony.TelephonyManager#NETWORK_TYPE_GSM, android.telephony.TelephonyManager#NETWORK_TYPE_TD_SCDMA, android.telephony.TelephonyManager#NETWORK_TYPE_IWLAN, or android.telephony.TelephonyManager#NETWORK_TYPE_NR

getTransportType

Added in API level 31
fun getTransportType(): Int
Return
Int The transport type of this data connection. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID, android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN, or android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN

hashCode

Added in API level 30
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 30
fun toString(): String

Returns a string representation of the object.

Return
String This value cannot be null.

writeToParcel

Added in API level 30
fun writeToParcel(
    out: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES
out Parcel: This value cannot be null.

Properties

CREATOR

Added in API level 30
static val CREATOR: Parcelable.Creator<PreciseDataConnectionState!>