SessionCtl // Add callNotification().
This commit is contained in:
parent
cbdcb1a7c8
commit
3708c1e124
|
@ -64,6 +64,7 @@ public protocol InputHandlerDelegate {
|
||||||
var clientBundleIdentifier: String { get }
|
var clientBundleIdentifier: String { get }
|
||||||
var clientMitigationLevel: Int { get }
|
var clientMitigationLevel: Int { get }
|
||||||
func callError(_ logMessage: String)
|
func callError(_ logMessage: String)
|
||||||
|
func callNotification(_ message: String)
|
||||||
func updateVerticalTypingStatus()
|
func updateVerticalTypingStatus()
|
||||||
func switchState(_ newState: IMEStateProtocol)
|
func switchState(_ newState: IMEStateProtocol)
|
||||||
func candidateController() -> CtlCandidateProtocol?
|
func candidateController() -> CtlCandidateProtocol?
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
|
import NotifierUI
|
||||||
import Shared
|
import Shared
|
||||||
|
|
||||||
// MARK: - InputHandler Delegate
|
// MARK: - InputHandler Delegate
|
||||||
|
@ -26,6 +27,10 @@ extension SessionCtl: InputHandlerDelegate {
|
||||||
candidatePairSelectionConfirmed(at: index)
|
candidatePairSelectionConfirmed(at: index)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func callNotification(_ message: String) {
|
||||||
|
Notifier.notify(message: message)
|
||||||
|
}
|
||||||
|
|
||||||
public func callError(_ logMessage: String) {
|
public func callError(_ logMessage: String) {
|
||||||
vCLog(logMessage)
|
vCLog(logMessage)
|
||||||
IMEApp.buzz()
|
IMEApp.buzz()
|
||||||
|
|
Loading…
Reference in New Issue