-
I am writing a multiplatform secure storage manager class which will use Keychain on iOS and Encrypted Shared Preferences on Android. I wonder how can I get such handle in typical non-Context class which I am writing in Swift... I was thinking about using Any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For Skip-generated projects, we stash the global application context in the import Foundation
#if SKIP
let appContext = ProcessInfo.processInfo.androidContext
#endif |
Beta Was this translation helpful? Give feedback.
For Skip-generated projects, we stash the global application context in the
Foundation.ProcessInfo
singleton, which you can access like this: