Share via


TelephonyManager.HasIccCard Property

Definition

This API is used to check if there is an ICC card present in the device.

public virtual bool HasIccCard { [Android.Runtime.Register("hasIccCard", "()Z", "GetHasIccCardHandler")] get; }
[<get: Android.Runtime.Register("hasIccCard", "()Z", "GetHasIccCardHandler")>]
member this.HasIccCard : bool

Property Value

true if a ICC card is present.

Attributes

Remarks

This API is used to check if there is an ICC card present in the device.

An ICC card is a smart card that contains a subscriber identity module (SIM) and is used to identify and authenticate users to a mobile network.

Note: In case of embedded SIM there is an ICC card always present irrespective of whether an active SIM profile is present or not so this API would always return true.

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

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