SubscriptionInfo.IccId 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.
Returns the ICC ID.
public virtual string? IccId { [Android.Runtime.Register("getIccId", "()Ljava/lang/String;", "GetGetIccIdHandler", ApiSince=22)] get; }
[<get: Android.Runtime.Register("getIccId", "()Ljava/lang/String;", "GetGetIccIdHandler", ApiSince=22)>]
member this.IccId : string
Property Value
the ICC ID, or an empty string if one of these requirements is not met
- Attributes
Remarks
Returns the ICC ID.
Starting with API level 29 Security Patch 2021-04-05, returns the ICC ID if the calling app has been granted the READ_PRIVILEGED_PHONE_STATE permission, has carrier privileges (see TelephonyManager#hasCarrierPrivileges
), or is a device owner or profile owner that has been granted the READ_PHONE_STATE permission. The profile owner is an app that owns a managed profile on the device; for more details see Work profiles. Profile owner access is deprecated and will be removed in a future release.
Java documentation for android.telephony.SubscriptionInfo.getIccId()
.
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.