TelephonyManager.IsDataConnectionAllowed Property

Definition

Checks whether cellular data connection is allowed in the device.

public virtual bool IsDataConnectionAllowed { [Android.Runtime.Register("isDataConnectionAllowed", "()Z", "GetIsDataConnectionAllowedHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("isDataConnectionAllowed", "()Z", "GetIsDataConnectionAllowedHandler", ApiSince=31)>]
member this.IsDataConnectionAllowed : bool

Property Value

Boolean

true if the overall data connection is allowed; false if not. <p>Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE or android.Manifest.permission#ACCESS_NETWORK_STATE or android.Manifest.permission#READ_PRIVILEGED_PHONE_STATE

Attributes

Remarks

Java documentation for android.telephony.TelephonyManager.isDataConnectionAllowed().

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