Files
2023-05-14 11:44:44 +00:00

26 lines
828 B
Plaintext

// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.ui.input;
// The service provided by an IME
[Discoverable]
interface ImeService {
1: GetInputMethodEditor(KeyboardType keyboard_type,
InputMethodAction action,
TextInputState initial_state,
InputMethodEditorClient client,
request<InputMethodEditor> editor);
2: ShowKeyboard();
3: HideKeyboard();
4: InjectInput(InputEvent event);
};
// Onscreen keyboard containers connect to this to know when a keyboard
// should be shown or hidden.
[Discoverable]
interface ImeVisibilityService {
1: -> OnKeyboardVisibilityChanged(bool visible);
};