• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16sequenceable input_method_utils..OHOS.MiscServices.TextTotalConfigInner;
17sequenceable input_method_utils..OHOS.MiscServices.KeyboardStatus;
18sequenceable input_method_utils..OHOS.MiscServices.PanelStatusInfoInner;
19sequenceable input_method_utils..OHOS.MiscServices.FunctionKey;
20sequenceable input_method_utils..OHOS.MiscServices.Value;
21sequenceable input_method_utils..OHOS.MiscServices.RangeInner;
22sequenceable input_method_utils..OHOS.MiscServices.ArrayBuffer;
23sequenceable OHOS.IRemoteObject;
24interface OHOS.MiscServices.IInputDataChannel {
25    [ipccode 0, oneway] void InsertText([in] String text, [in] unsigned long msgId, [in] IRemoteObject agent);
26    [oneway] void DeleteForward([in] int length, [in] unsigned long msgId, [in] IRemoteObject agent);
27    [oneway] void DeleteBackward([in] int length, [in] unsigned long msgId, [in] IRemoteObject agent);
28    [oneway] void GetTextBeforeCursor([in] int number, [in] unsigned long msgId, [in] IRemoteObject agent);
29    [oneway] void GetTextAfterCursor([in] int number, [in] unsigned long msgId, [in] IRemoteObject agent);
30    void GetTextConfig([out] struct TextTotalConfigInner textConfiginner);
31    [oneway] void SendKeyboardStatus([in] int status);
32    [oneway] void SendFunctionKey([in] int funcKey, [in] unsigned long msgId, [in] IRemoteObject agent);
33    [oneway] void MoveCursor([in] int keyCode, [in] unsigned long msgId, [in] IRemoteObject agent);
34    void GetEnterKeyType([out] int keyType);
35    void GetInputPattern([out] int inputPattern);
36    [oneway] void SelectByRange([in] int start, [in] int end, [in] unsigned long msgId, [in] IRemoteObject agent);
37    [oneway] void SelectByMovement([in] int direction, [in] int cursorMoveSkip, [in] unsigned long msgId, [in] IRemoteObject agent);
38    [oneway] void HandleExtendAction([in] int action, [in] unsigned long msgId, [in] IRemoteObject agent);
39    [oneway] void GetTextIndexAtCursor([in] unsigned long msgId, [in] IRemoteObject agent);
40    [oneway] void NotifyPanelStatusInfo([in] PanelStatusInfoInner info);
41    [oneway] void NotifyKeyboardHeight([in] unsigned int height);
42    void SendPrivateCommand([in] Value value);
43    [oneway] void SetPreviewText([in] String text, [in] RangeInner rangeInner, [in] unsigned long msgId, [in] IRemoteObject agent);
44    [oneway] void FinishTextPreview([in] unsigned long msgId, [in] IRemoteObject agent);
45    void SendMessage([in] ArrayBuffer arraybuffer);
46    [oneway] void HandleKeyEventResult([in] unsigned long cbId, [in] boolean consumeResult);
47}
48