iccCloseLogicalChannelByPort method signature #154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implementation
fun TelephonyManager.iccCloseLogicalChannelBySlot(slotId: Int, channel: Int): Boolean =iccCloseLogicalChannelBySlot.invoke(this, slotId, channel) as Booleanfun TelephonyManager.iccCloseLogicalChannelByPort(slotId: Int, portId: Int, channel: Int): Boolean =iccCloseLogicalChannelByPort.invoke(this, slotId, portId, channel) as BooleanCorrect signature
from https://android.googlesource.com/platform/frameworks/base/+/2a6357c5377a6d793f8f0038f2c821eeba197e16/telephony/java/android/telephony/TelephonyManager.java#7589
from https://android.googlesource.com/platform/frameworks/base/+/2a6357c5377a6d793f8f0038f2c821eeba197e16/telephony/java/android/telephony/TelephonyManager.java#7632
from https://t.me/accxqac
override fun logicalChannelClose(handle: Int) {check(channels.contains(handle)) {"Invalid logical channel handle $handle"}tm.iccCloseLogicalChannelByPortCompat(port.card.physicalSlotIndex, port.portIndex, handle)channels.remove(handle)}The return value should be ignored and treated as void type.