Peter Cai
1ac683f9ab
All checks were successful
/ build-debug (push) Successful in 4m13s
Reconnecting did not work properly for OMAPI, because in that case we have to reconnect SEService as well.
37 lines
1.2 KiB
Kotlin
37 lines
1.2 KiB
Kotlin
package net.typeblog.lpac_jni
|
|
|
|
interface LocalProfileAssistant {
|
|
val valid: Boolean
|
|
get() = try {
|
|
// If we can read both eID and profiles properly, we are likely looking at
|
|
// a valid LocalProfileAssistant
|
|
eID
|
|
profiles
|
|
true
|
|
} catch (e: Exception) {
|
|
false
|
|
}
|
|
val profiles: List<LocalProfileInfo>
|
|
val notifications: List<LocalProfileNotification>
|
|
val eID: String
|
|
// Extended EuiccInfo for use with LUIs, containing information such as firmware version
|
|
val euiccInfo2: EuiccInfo2?
|
|
|
|
// All blocking functions in this class assume that they are executed on non-Main threads
|
|
// The IO context in Kotlin's coroutine library is recommended.
|
|
fun enableProfile(iccid: String): Boolean
|
|
fun disableProfile(iccid: String): Boolean
|
|
fun deleteProfile(iccid: String): Boolean
|
|
|
|
fun downloadProfile(smdp: String, matchingId: String?, imei: String?,
|
|
confirmationCode: String?, callback: ProfileDownloadCallback): Boolean
|
|
|
|
fun deleteNotification(seqNumber: Long): Boolean
|
|
fun handleNotification(seqNumber: Long): Boolean
|
|
|
|
fun setNickname(
|
|
iccid: String, nickname: String
|
|
): Boolean
|
|
|
|
fun close()
|
|
} |