Christian Würthenr
10/25/2024, 9:05 AMupdateApplicationContext()
function from WatchConnectivity
on iOS. The function throws
which seems to translate to a parameter error
of type kotlinx.cinterop.CPointer<kotlinx.cinterop.ObjCObjectVar<platform.Foundation.NSError?>>?
, does somebody know how I can get this error if the function throws?MJegorovas
10/25/2024, 9:39 AMmemScoped {
val error = alloc<CFErrorRefVar>()
val key = SecKeyCreateRandomKey(attributes, error.ptr)
(CFBridgingRelease(error.value) as? NSError)?.let {
println("ERROR: ${it.debugDescription}")
}
}