Partager via


TelephonyManager.IsModemEnabledForSlot(Int32) Method

Definition

Indicates whether or not there is a modem stack enabled for the given SIM slot.

[Android.Runtime.Register("isModemEnabledForSlot", "(I)Z", "GetIsModemEnabledForSlot_IHandler", ApiSince=30)]
public virtual bool IsModemEnabledForSlot (int slotIndex);
[<Android.Runtime.Register("isModemEnabledForSlot", "(I)Z", "GetIsModemEnabledForSlot_IHandler", ApiSince=30)>]
abstract member IsModemEnabledForSlot : int -> bool
override this.IsModemEnabledForSlot : int -> bool

Parameters

slotIndex
Int32

which slot it's checking.

Returns

Attributes

Remarks

Indicates whether or not there is a modem stack enabled for the given SIM slot.

Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE, READ_PRIVILEGED_PHONE_STATE or that the calling app has carrier privileges (see #hasCarrierPrivileges()).

Java documentation for android.telephony.TelephonyManager.isModemEnabledForSlot(int).

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