mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 09:37:40 +00:00
22 lines
659 B
Swift
22 lines
659 B
Swift
/*
|
|
* Keyman is copyright (C) SIL Global. MIT License.
|
|
*
|
|
* Created by Shawn Schantz on 2026-04-28
|
|
*
|
|
* DefaultsRepo is a protocol that exposes the ability to read, write and remove
|
|
* Keyman UserDefaults settings.
|
|
*
|
|
*/
|
|
|
|
import Foundation
|
|
|
|
public protocol DefaultsRepo {
|
|
func readInstallationState() -> Dictionary<String, Any>?
|
|
func writeInstallationState(_ dictionary: Dictionary<String, Any>)
|
|
func deleteInstallationState()
|
|
func readEnabledKeyboards() -> Set<String>
|
|
func writeEnabledKeyboards(enabledKeyboardsArray: [String])
|
|
func readSelectedKeyboard() -> String
|
|
func writeSelectedKeyboard(keyboardName: String)
|
|
func clearDefaults()
|
|
}
|