CarrierConfigManager.Config Property

Definition

Gets the configuration values for the default subscription.

public virtual Android.OS.PersistableBundle? Config { [Android.Runtime.Register("getConfig", "()Landroid/os/PersistableBundle;", "GetGetConfigHandler", ApiSince=23)] [Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getConfig", "()Landroid/os/PersistableBundle;", "GetGetConfigHandler", ApiSince=23)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
member this.Config : Android.OS.PersistableBundle

Property Value

Attributes

Remarks

Gets the configuration values for the default subscription. After using this method to get the configuration bundle, #isConfigForIdentifiedCarrier(PersistableBundle) should be called to confirm whether any carrier specific configuration has been applied.

Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE, or the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges()).

This member is deprecated. use #getConfig(String...) instead.

Java documentation for android.telephony.CarrierConfigManager.getConfig().

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