SessionCtl // Add callNotification().

This commit is contained in:
ShikiSuen 2023-06-21 23:21:57 +08:00
parent cbdcb1a7c8
commit 3708c1e124
2 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public protocol InputHandlerDelegate {
var clientBundleIdentifier: String { get }
var clientMitigationLevel: Int { get }
func callError(_ logMessage: String)
func callNotification(_ message: String)
func updateVerticalTypingStatus()
func switchState(_ newState: IMEStateProtocol)
func candidateController() -> CtlCandidateProtocol?

View File

@ -6,6 +6,7 @@
// marks, or product names of Contributor, except as required to fulfill notice
// requirements defined in MIT License.
import NotifierUI
import Shared
// MARK: - InputHandler Delegate
@ -26,6 +27,10 @@ extension SessionCtl: InputHandlerDelegate {
candidatePairSelectionConfirmed(at: index)
}
public func callNotification(_ message: String) {
Notifier.notify(message: message)
}
public func callError(_ logMessage: String) {
vCLog(logMessage)
IMEApp.buzz()