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.
- Attributes
Remarks
Checks whether cellular data connection is allowed in the device.
Whether cellular data connection is allowed considers all factors below: <UL> <LI>User turned on data setting #isDataEnabled
.</LI> <LI>Carrier allows data to be on.</LI> <LI>Network policy.</LI> <LI>And possibly others.</LI> </UL>
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.