Compartir a través de


PhoneStateListener.ListenPreciseDataConnectionState Field

Definition

Listen for PreciseDataConnectionState on the data connection (cellular).

[Android.Runtime.Register("LISTEN_PRECISE_DATA_CONNECTION_STATE", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public const Android.Telephony.PhoneStateListenerFlags ListenPreciseDataConnectionState = 4096;
[<Android.Runtime.Register("LISTEN_PRECISE_DATA_CONNECTION_STATE", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
val mutable ListenPreciseDataConnectionState : Android.Telephony.PhoneStateListenerFlags

Field Value

Value = 4096
Attributes

Remarks

Listen for PreciseDataConnectionState on the data connection (cellular).

Requires permission android.Manifest.permission#READ_PRECISE_PHONE_STATE or the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges).

This member is deprecated. Use TelephonyCallback.PreciseDataConnectionStateListener instead.

Java documentation for android.telephony.PhoneStateListener.LISTEN_PRECISE_DATA_CONNECTION_STATE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to