Aracılığıyla paylaş


TelephonyManager.IsDataRoamingEnabled Property

Definition

Returns whether mobile data roaming is enabled on the subscription.

public virtual bool IsDataRoamingEnabled { [Android.Runtime.Register("isDataRoamingEnabled", "()Z", "GetIsDataRoamingEnabledHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("isDataRoamingEnabled", "()Z", "GetIsDataRoamingEnabledHandler", ApiSince=29)>]
member this.IsDataRoamingEnabled : bool

Property Value

true if the data roaming is enabled on the subscription, otherwise return false.

Attributes

Remarks

Returns whether mobile data roaming is enabled on the subscription.

If this object has been created with #createForSubscriptionId, applies to the given subId. Otherwise, applies to SubscriptionManager#getDefaultDataSubscriptionId()

Requires one of the following permissions: android.Manifest.permission#ACCESS_NETWORK_STATE, android.Manifest.permission#READ_PHONE_STATE or android.Manifest.permission#READ_BASIC_PHONE_STATE READ_BASIC_PHONE_STATE or that the calling app has carrier privileges (see #hasCarrierPrivileges).

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

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