TelephonyManager.Imei 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 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.