TelephonyManager.IsDataConnectionAllowed Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.