Freigeben über


TelephonyManager.Imei Property

Definition

Returns the IMEI (International Mobile Equipment Identity).

public virtual string? Imei { [Android.Runtime.Register("getImei", "()Ljava/lang/String;", "GetGetImeiHandler", ApiSince=26)] [Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getImei", "()Ljava/lang/String;", "GetGetImeiHandler", ApiSince=26)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE")>]
member this.Imei : string

Property Value

Attributes

Remarks

Returns the IMEI (International Mobile Equipment Identity). Return null if IMEI is not available.

See #getImei(int) for details on the required permissions and behavior when the caller does not hold sufficient permissions.

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

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