spiegel-keyman/mac/KeymanSettings/Sources/KeymanSettings/DefaultsRepo.swift
Shawn Schantz db00bf8bf4
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
feat(mac): additional unit tests and comments
2026-05-05 15:22:33 -04:00

20 lines
519 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 readEnabledKeyboards() -> Set<String>
func writeEnabledKeyboards(enabledKeyboardsArray: [String])
func readSelectedKeyboard() -> String
func writeSelectedKeyboard(keyboardName: String)
func logDefaults()
func clearDefaults()
}