Sdílet prostřednictvím


TelephonyManager.IccCloseLogicalChannel(Int32) Method

Definition

Closes a previously opened logical channel to the ICC card.

[Android.Runtime.Register("iccCloseLogicalChannel", "(I)Z", "GetIccCloseLogicalChannel_IHandler")]
public virtual bool IccCloseLogicalChannel (int channel);
[<Android.Runtime.Register("iccCloseLogicalChannel", "(I)Z", "GetIccCloseLogicalChannel_IHandler")>]
abstract member IccCloseLogicalChannel : int -> bool
override this.IccCloseLogicalChannel : int -> bool

Parameters

channel
Int32

is the channel id to be closed as returned by a successful iccOpenLogicalChannel.

Returns

true if the channel was closed successfully.

Attributes

Remarks

Closes a previously opened logical channel to the ICC card.

Input parameters equivalent to TS 27.007 AT+CCHC command. It is strongly recommended that callers of this API should firstly create new TelephonyManager instance by calling TelephonyManager#createForSubscriptionId(int). Failure to do so can result in unpredictable and detrimental behavior like callers can end up talking to the wrong SIM card.

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

Java documentation for android.telephony.TelephonyManager.iccCloseLogicalChannel(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