Lines Matching refs:inputMethodEngine

1 # @ohos.inputMethodEngine (输入法服务)
12 import { inputMethodEngine } from '@kit.IMEKit';
58 ## inputMethodEngine.getInputMethodAbility<sup>9+</sup>
75 let InputMethodAbility = inputMethodEngine.getInputMethodAbility();
78 ## inputMethodEngine.getKeyboardDelegate<sup>9+</sup>
95 let KeyboardDelegate = inputMethodEngine.getKeyboardDelegate();
98 ## inputMethodEngine.getInputMethodEngine<sup>(deprecated)</sup>
119 let InputMethodEngine = inputMethodEngine.getInputMethodEngine();
122 ## inputMethodEngine.createKeyboardDelegate<sup>(deprecated)</sup>
143 let keyboardDelegate = inputMethodEngine.createKeyboardDelegate();
163 import { inputMethodEngine } from '@kit.IMEKit';
167 let record: Record<string, inputMethodEngine.CommandDataType> = {
205 inputMethodEngine.getInputMethodEngine()
206 ….on('inputStart', (kbController: inputMethodEngine.KeyboardController, textClient: inputMethodEngi…
234 inputMethodEngine.getInputMethodEngine()
235 ….off('inputStart', (kbController: inputMethodEngine.KeyboardController, textClient: inputMethodEng…
262 inputMethodEngine.getInputMethodEngine().on('keyboardShow', () => {
263 console.log('inputMethodEngine keyboardShow.');
265 inputMethodEngine.getInputMethodEngine().on('keyboardHide', () => {
266 console.log('inputMethodEngine keyboardHide.');
291 inputMethodEngine.getInputMethodEngine().off('keyboardShow');
292 inputMethodEngine.getInputMethodEngine().off('keyboardHide');
318 inputMethodEngine.getInputMethodAbility()
319 ….on('inputStart', (kbController: inputMethodEngine.KeyboardController, client: inputMethodEngine.I…
346 inputMethodEngine.getInputMethodAbility().off('inputStart');
368 inputMethodEngine.getInputMethodAbility().on('inputStop', () => {
395 inputMethodEngine.getInputMethodAbility().off('inputStop', () => {
422 inputMethodEngine.getInputMethodAbility().on('setCallingWindow', (wid: number) => {
449 inputMethodEngine.getInputMethodAbility().off('setCallingWindow', (wid: number) => {
476 inputMethodEngine.getInputMethodAbility().on('keyboardShow', () => {
479 inputMethodEngine.getInputMethodAbility().on('keyboardHide', () => {
506 inputMethodEngine.getInputMethodAbility().off('keyboardShow', () => {
509 inputMethodEngine.getInputMethodAbility().off('keyboardHide', () => {
538inputMethodEngine.getInputMethodAbility().on('setSubtype', (inputMethodSubtype: InputMethodSubtype…
565 inputMethodEngine.getInputMethodAbility().off('setSubtype', () => {
592inputMethodEngine.getInputMethodAbility().on('securityModeChange', (securityMode: inputMethodEngin…
618 let securityChangeCallback = (securityMode: inputMethodEngine.SecurityMode) => {
621 let inputMethodAbility = inputMethodEngine.getInputMethodAbility();
657 import { inputMethodEngine } from '@kit.IMEKit';
659 let privateCommandCallback = (record: Record<string, inputMethodEngine.CommandDataType>) => {
666 inputMethodEngine.getInputMethodAbility().on('privateCommand', privateCommandCallback);
700 import { inputMethodEngine } from '@kit.IMEKit';
702 let privateCommandCallback = (record: Record<string, inputMethodEngine.CommandDataType>) => {
709 inputMethodEngine.getInputMethodAbility().off('privateCommand', privateCommandCallback);
740 let security = inputMethodEngine.getInputMethodAbility().getSecurityMode();
775 let panelInfo: inputMethodEngine.PanelInfo = {
776 type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
777 flag: inputMethodEngine.PanelFlag.FLG_FIXED
780 inputMethodEngine.getInputMethodAbility()
781 .createPanel(this.context, panelInfo, (err: BusinessError, panel: inputMethodEngine.Panel) => {
825 let panelInfo: inputMethodEngine.PanelInfo = {
826 type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
827 flag: inputMethodEngine.PanelFlag.FLG_FIXED
829 inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo)
830 .then((panel: inputMethodEngine.Panel) => {
865 let panelInfo: inputMethodEngine.PanelInfo = {
866 type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
867 flag: inputMethodEngine.PanelFlag.FLG_FIXED
869 let inputPanel: inputMethodEngine.Panel | undefined = undefined;
871 inputMethodEngine.getInputMethodAbility()
872 .createPanel(this.context, panelInfo, (err: BusinessError, panel: inputMethodEngine.Panel) => {
885 inputMethodEngine.getInputMethodAbility().destroyPanel(inputPanel, (err: BusinessError) => {
930 let panelInfo: inputMethodEngine.PanelInfo = {
931 type: inputMethodEngine.PanelType.SOFT_KEYBOARD,
932 flag: inputMethodEngine.PanelFlag.FLG_FIXED
934 let inputPanel: inputMethodEngine.Panel | undefined = undefined;
936 inputMethodEngine.getInputMethodAbility()
937 .createPanel(this.context, panelInfo, (err: BusinessError, panel: inputMethodEngine.Panel) => {
951 inputMethodEngine.getInputMethodAbility().destroyPanel(inputPanel).then(() => {
985 inputMethodEngine.getKeyboardDelegate().on('keyUp', (keyEvent: inputMethodEngine.KeyEvent) => {
986 console.log(`inputMethodEngine keyCode.(keyDown): ${keyEvent.keyCode}`);
987 console.log(`inputMethodEngine keyAction.(keyDown): ${keyEvent.keyAction}`);
990 inputMethodEngine.getKeyboardDelegate().on('keyDown', (keyEvent: inputMethodEngine.KeyEvent) => {
991 console.log(`inputMethodEngine keyCode.(keyDown): ${keyEvent.keyCode}`);
992 console.log(`inputMethodEngine keyAction.(keyDown): ${keyEvent.keyAction}`);
1019 inputMethodEngine.getKeyboardDelegate().off('keyUp', (keyEvent: inputMethodEngine.KeyEvent) => {
1023 inputMethodEngine.getKeyboardDelegate().off('keyDown', (keyEvent: inputMethodEngine.KeyEvent) => {
1053 inputMethodEngine.getKeyboardDelegate().on('keyEvent', (keyEvent: KeyEvent) => {
1054 console.log('inputMethodEngine keyEvent.action:' + JSON.stringify(keyEvent.action));
1055 console.log('inputMethodEngine keyEvent.key.code:' + JSON.stringify(keyEvent.key.code));
1056 console.log(`inputMethodEngine keyEvent.ctrlKey: ${keyEvent.ctrlKey}`);
1057 console.log(`inputMethodEngine keyEvent.unicodeChar: ${keyEvent.unicodeChar}`);
1061 console.error(`Failed to inputMethodEngine: ${JSON.stringify(err)}`);
1086 inputMethodEngine.getKeyboardDelegate().off('keyEvent', (keyEvent: KeyEvent) => {
1090 inputMethodEngine.getKeyboardDelegate().off('keyEvent');
1115inputMethodEngine.getKeyboardDelegate().on('cursorContextChange', (x: number, y: number, height: n…
1116 console.log('inputMethodEngine cursorContextChange x:' + x);
1117 console.log('inputMethodEngine cursorContextChange y:' + y);
1118 console.log('inputMethodEngine cursorContextChange height:' + height);
1145inputMethodEngine.getKeyboardDelegate().off('cursorContextChange', (x: number, y: number, height: …
1171 inputMethodEngine.getKeyboardDelegate()
1173 console.log('inputMethodEngine beforeEach selectionChange oldBegin:' + oldBegin);
1174 console.log('inputMethodEngine beforeEach selectionChange oldEnd:' + oldEnd);
1175 console.log('inputMethodEngine beforeEach selectionChange newBegin:' + newBegin);
1176 console.log('inputMethodEngine beforeEach selectionChange newEnd:' + newEnd);
1202 inputMethodEngine.getKeyboardDelegate()
1231 inputMethodEngine.getKeyboardDelegate().on('textChange', (text: string) => {
1232 console.log('inputMethodEngine textChange. text:' + text);
1258 inputMethodEngine.getKeyboardDelegate().off('textChange', (text: string) => {
1285inputMethodEngine.getKeyboardDelegate().on('editorAttributeChanged', (attr: inputMethodEngine.Edit…
1311 inputMethodEngine.getKeyboardDelegate().off('editorAttributeChanged');
1814 let panelFlag = inputMethodEngine.PanelFlag.FLG_FIXED;
1815 let panelRect:inputMethodEngine.PanelRect = {
2031 let panelFlag = inputMethodEngine.PanelFlag.FLG_FIXED;
3128 inputClient.getEditorAttribute((err: BusinessError, editorAttribute: inputMethodEngine.EditorAttrib…
3166 inputClient.getEditorAttribute().then((editorAttribute: inputMethodEngine.EditorAttribute) => {
3203 let editorAttribute: inputMethodEngine.EditorAttribute = inputClient.getEditorAttributeSync();
3241 inputClient.moveCursor(inputMethodEngine.Direction.CURSOR_UP, (err: BusinessError) => {
3288 inputClient.moveCursor(inputMethodEngine.Direction.CURSOR_UP).then(() => {
3325 inputClient.moveCursorSync(inputMethodEngine.Direction.CURSOR_UP);
3362 let range: inputMethodEngine.Range = { start: 0, end: 1 };
3410 let range: inputMethodEngine.Range = { start: 0, end: 1 };
3448 let range: inputMethodEngine.Range = { start: 0, end: 1 };
3486 let movement: inputMethodEngine.Movement = { direction: 1 };
3534 let movement: inputMethodEngine.Movement = { direction: 1 };
3572 let movement: inputMethodEngine.Movement = { direction: 1 };
3721 inputClient.sendExtendAction(inputMethodEngine.ExtendAction.COPY, (err: BusinessError) => {
3773 inputClient.sendExtendAction(inputMethodEngine.ExtendAction.COPY).then(() => {
3821 import { inputMethodEngine } from '@kit.IMEKit';
3824 inputMethodEngine.getInputMethodAbility().on('inputStart', (kbController, textInputClient) => {
3826 let record: Record<string, inputMethodEngine.CommandDataType> = {
3879 inputClient.getCallingWindowInfo().then((windowInfo: inputMethodEngine.WindowInfo) => {
3927 let range: inputMethodEngine.Range = { start: 0, end: 1 };
3967 let range: inputMethodEngine.Range = { start: 0, end: 1 };
4615 textInputClient.getEditorAttribute((err: BusinessError, editorAttribute: inputMethodEngine.EditorAt…
4648 textInputClient.getEditorAttribute().then((editorAttribute: inputMethodEngine.EditorAttribute) => {