TelephonyManagerCompat

Helper for accessing features in TelephonyManager.

Functions

Link copied to clipboard
open fun getImei(@NonNull telephonyManager: @NonNull TelephonyManager): @Nullable String
Returns the IMEI (International Mobile Equipment Identity) associated with the subscription id of the given TelephonyManager, or null if not available.
Link copied to clipboard
open fun getSubscriptionId(@NonNull telephonyManager: @NonNull TelephonyManager): Int
Return the subscription ID the TelephonyManager was created with (via createForSubscriptionId) if applicable, and otherwise the default subscription ID.