欧美性猛交xxxx免费看_牛牛在线视频国产免费_天堂草原电视剧在线观看免费_国产粉嫩高清在线观看_国产欧美日本亚洲精品一5区

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

鴻蒙開發(fā)系統(tǒng)基礎(chǔ)能力:ohos.inputMethodEngine 輸入法服務(wù)

jf_46214456 ? 來源:jf_46214456 ? 作者:jf_46214456 ? 2024-06-26 09:42 ? 次閱讀

輸入法服務(wù)

icon-note.gif說明: 本模塊首批接口從API version 8開始支持。后續(xù)版本的新增接口,采用上角標(biāo)單獨(dú)標(biāo)記接口的起始版本。 開發(fā)前請熟悉鴻蒙開發(fā)指導(dǎo)文檔 :[gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md]

導(dǎo)入模塊

import inputMethodEngine from '@ohos.inputMethodEngine';

inputMethodEngine

常量值。

系統(tǒng)能力 :以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為SystemCapability.Miscservices.InputMethodFramework

名稱參數(shù)類型可讀可寫說明
ENTER_KEY_TYPE_UNSPECIFIEDnumber無功能鍵。
ENTER_KEY_TYPE_GOnumber“前往”功能鍵。
ENTER_KEY_TYPE_SEARCHnumber“搜索”功能鍵。
ENTER_KEY_TYPE_SENDnumber“發(fā)送”功能鍵。
ENTER_KEY_TYPE_NEXTnumber“下一個”功能鍵。
ENTER_KEY_TYPE_DONEnumber“回車”功能鍵。
ENTER_KEY_TYPE_PREVIOUSnumber“前一個”功能鍵。
PATTERN_NULLnumber無特殊性編輯框。
PATTERN_TEXTnumber文本編輯框。
PATTERN_NUMBERnumber數(shù)字編輯框。
PATTERN_PHONEnumber電話號碼編輯框。
PATTERN_DATETIMEnumber日期編輯框。
PATTERN_EMAILnumber郵件編輯框。
PATTERN_URInumber超鏈接編輯框。
PATTERN_PASSWORDnumber密碼編輯框。
OPTION_ASCIInumber允許輸入ASCII值。
OPTION_NONEnumber不指定編輯框輸入屬性。
OPTION_AUTO_CAP_CHARACTERSnumber允許輸入字符。
OPTION_AUTO_CAP_SENTENCESnumber允許輸入句子。
OPTION_AUTO_WORDSnumber允許輸入單詞。
OPTION_MULTI_LINEnumber允許輸入多行。
OPTION_NO_FULLSCREENnumber半屏樣式。
FLAG_SELECTINGnumber編輯框處于選擇狀態(tài)。
FLAG_SINGLE_LINEnumber編輯框?yàn)閱涡小?/td>
DISPLAY_MODE_PARTnumber編輯框顯示為半屏。
DISPLAY_MODE_FULLnumber編輯框顯示為全屏。

inputMethodEngine.getInputMethodEngine[]()

getInputMethodEngine(): InputMethodEngine

獲取服務(wù)端實(shí)例。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

返回值:

類型說明
[InputMethodEngine]服務(wù)端實(shí)例。

示例:

var InputMethodEngine = inputMethodEngine.getInputMethodEngine();

inputMethodEngine.createKeyboardDelegate[]()

createKeyboardDelegate(): KeyboardDelegate

獲取客戶端監(jiān)聽實(shí)例。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

返回值:

類型說明
[KeyboardDelegate]客戶端監(jiān)聽實(shí)例。

示例:

var KeyboardDelegate = inputMethodEngine.createKeyboardDelegate();

InputMethodEngine[]()

下列API示例中都需使用[getInputMethodEngine]回調(diào)獲取到InputMethodEngine實(shí)例,再通過此實(shí)例調(diào)用對應(yīng)方法。

on('inputStart')[]()

on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void

訂閱輸入法綁定成功事件,使用callback回調(diào)返回輸入法操作相關(guān)實(shí)例。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

參數(shù)名類型必填說明
typestring設(shè)置監(jiān)聽類型。 -type為‘inputStart’時表示訂閱輸入法綁定。
callback[KeyboardController], [TextInputClient]回調(diào)返回輸入法操作相關(guān)實(shí)例。

示例:

InputMethodEngine.on('inputStart', (kbController, textInputClient) = > {
    KeyboardController = kbController;
    TextInputClient = textInputClient;
});

off('inputStart')

off(type: 'inputStart', callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void): void

取消訂閱輸入法綁定成功事件。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

參數(shù)名類型必填說明
typestring設(shè)置監(jiān)聽類型。 -type為‘inputStart’時表示訂閱輸入法綁定。
callback[KeyboardController], [TextInputClient]回調(diào)返回輸入法操作相關(guān)實(shí)例。

示例:

InputMethodEngine.off('inputStart');

on('keyboardShow'|'keyboardHide')

on(type: 'keyboardShow'|'keyboardHide', callback: () => void): void

訂閱輸入法事件。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

參數(shù)名類型必填說明
typestring設(shè)置監(jiān)聽類型。 - type為'keyboardShow',表示訂閱輸入法顯示。 - type為'keyboardHide',表示訂閱輸入法隱藏。
callbackvoid回調(diào)函數(shù)。

示例:

InputMethodEngine.on('keyboardShow', (err) = > {
    console.info('keyboardShow');
});

off('keyboardShow'|'keyboardHide')

off(type: 'keyboardShow'|'keyboardHide', callback?: () => void): void

取消訂閱輸入法事件。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

參數(shù)名類型必填說明
typestring設(shè)置監(jiān)聽類型。 - type為'keyboardShow',表示訂閱輸入法顯示。 - type為'keyboardHide',表示訂閱輸入法隱藏。
callbackvoid回調(diào)函數(shù)。

示例:

InputMethodEngine.off('keyboardShow');

KeyboardDelegate[]()

下列API示例中都需使用[createKeyboardDelegate]回調(diào)獲取到KeyboardDelegate實(shí)例,再通過此實(shí)例調(diào)用對應(yīng)方法。

on('keyDown'|'keyUp')

on(type: 'keyDown'|'keyUp', callback: (event: KeyEvent) => boolean): void

訂閱硬鍵盤事件,使用callback回調(diào)返回按鍵信息。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

參數(shù)名類型必填說明
typestring設(shè)置監(jiān)聽類型。 - type為'keyDown',表示訂閱硬鍵盤按下。 - type為'keyUp',表示訂閱硬鍵盤抬起。
callback[KeyEvent]回調(diào)返回按鍵信息。

示例:

KeyboardDelegate.on('keyDown', (event) = > {
    console.info('keyDown');
});

off('keyDown'|'keyUp')

off(type: 'keyDown'|'keyUp', callback?: (event: KeyEvent) => boolean): void

取消訂閱硬鍵盤事件。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

參數(shù)名類型必填說明
typestring設(shè)置監(jiān)聽類型。 - type為'keyDown',表示訂閱硬鍵盤按下。 - type為'keyUp',表示訂閱硬鍵盤抬起。
callback[KeyEvent]回調(diào)返回按鍵信息。

示例:

KeyboardDelegate.off('keyDown');

on('cursorContextChange')

on(type: 'cursorContextChange', callback: (x: number, y:number, height:number) => void): void

訂閱光標(biāo)變化事件,使用callback回調(diào)返回光標(biāo)信息。

系統(tǒng)能力 : SystemCapability.Miscservices.InputMethodFramework

參數(shù):

| 參數(shù)名   | 類型   | 必填 | 說明                                                         |
| -------- | ------ | ---- | ------------------------------------------------------------ |
| type     | string | 是   | 光標(biāo)變化事件。
-type為’cursorContextChange‘時,表示光標(biāo)變化。 |
| callback | number | 是   | 回調(diào)返回光標(biāo)信息。                                           |

示例:

```js
KeyboardDelegate.on('cursorContextChange', (x, y, height) = > {
    console.info('cursorContextChange');
});
### off('cursorContextChange')

off(type: 'cursorContextChange', callback?: (x: number, y:number, height:number) => void): void

取消訂閱光標(biāo)變化事件。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
typestring光標(biāo)變化事件。
-type為’cursorContextChange‘時,表示光標(biāo)變化。
callbacknumber回調(diào)返回光標(biāo)信息。
**示例:**
KeyboardDelegate.off('cursorContextChange');
### on('selectionChange')

on(type: 'selectionChange', callback: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void

訂閱文本選擇變化事件,使用callback回調(diào)返回文本選擇信息。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
typestring文本選擇變化事件。
-type為’selectionChange‘時,表示選擇文本變化。
callbacknumber回調(diào)返回文本選擇信息。
**示例:**
KeyboardDelegate.on('selectionChange', (oldBegin, oldEnd, newBegin, newEnd) = > {
    console.info('selectionChange');
});
### off('selectionChange')

off(type: 'selectionChange', callback?: (oldBegin: number, oldEnd: number, newBegin: number, newEnd: number) => void): void

取消訂閱文本選擇變化事件。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
typestring文本選擇變化事件。
-type為’selectionChange‘時,表示選擇文本變化。
callbacknumber回調(diào)返回文本選擇信息。
**示例:**
KeyboardDelegate.off('selectionChange');
### on('textChange')

on(type: 'textChange', callback: (text: string) => void): void

訂閱文本變化事件,使用callback回調(diào)返回當(dāng)前文本內(nèi)容。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
typestring文本變化事件。
-type為’textChange‘時,表示當(dāng)前文本變化。
callbackstring回調(diào)返回當(dāng)前文本內(nèi)容。
**示例:**
KeyboardDelegate.on('textChange', (text) = > {
    console.info('textChange');
});
### off('textChange')

off(type: 'textChange', callback?: (text: string) => void): void

取消訂閱文本變化事件。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
typestring文本變化事件。
-type為’textChange‘時,表示當(dāng)前文本變化。
callbackstring回調(diào)返回當(dāng)前文本內(nèi)容。
**示例:**
KeyboardDelegate.off('textChange');
## KeyboardController[]()

下列API示例中都需使用[inputStart]回調(diào)獲取到KeyboardController實(shí)例,再通過此實(shí)例調(diào)用對應(yīng)方法。

### hideKeyboard

hideKeyboard(callback: AsyncCallback): void

隱藏輸入法。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名   | 類型          | 必填 | 說明     |
| ---------- | --------------- | ------ | ---------- |
| callback | AsyncCallback | 否   | 回調(diào)函數(shù) |

**示例:**

KeyboardController.hideKeyboard(()= >{
});

### hideKeyboard

hideKeyboard(): Promise

隱藏輸入法。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**返回值:**

| 類型    | 說明     |
| --------- | ---------- |
| Promise | 回調(diào)函數(shù) |

**示例:**

KeyboardController.hideKeyboard();

## TextInputClient[]()

下列API示例中都需使用[inputStart]回調(diào)獲取到TextInputClient實(shí)例,再通過此實(shí)例調(diào)用對應(yīng)方法。

### getForward

getForward(length:number, callback: AsyncCallback): void

獲取光標(biāo)前固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名   | 類型          | 必填 | 說明       |
| ---------- | --------------- | ------ | ------------ |
| length   | number        | 是   | 文本長度。 |
| callback | AsyncCallback | 是   | 返回文本。 |

**示例:**

TextInputClient.getForward(5,(text) = >{
console.info("text = " + text);
});

### getForward

getForward(length:number): Promise

獲取光標(biāo)前固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名 | 類型   | 必填 | 說明       |
| -------- | -------- | ------ | ------------ |
| length | number | 是   | 文本長度。 |

**返回值:**

| 類型    | 說明       |
| --------- | ------------ |
| Promise | 返回文本。 |

**示例:**

var text = TextInputClient.getForward(5);
console.info("text = " + text);

### getBackward

getBackward(length:number, callback: AsyncCallback): void

獲取光標(biāo)后固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名   | 類型          | 必填 | 說明       |
| ---------- | --------------- | ------ | ------------ |
| length   | number        | 是   | 文本長度。 |
| callback | AsyncCallback | 是   | 返回文本。 |

**示例:**

TextInputClient.getBackward(5,(text)= >{
console.info("text = " + text);
});

### getBackward

getBackward(length:number): Promise

獲取光標(biāo)后固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名 | 類型   | 必填 | 說明       |
| -------- | -------- | ------ | ------------ |
| length | number | 是   | 文本長度。 |

**返回值:**

| 類型    | 說明       |
| --------- | ------------ |
| Promise | 返回文本。 |

**示例:**

var text = TextInputClient.getBackward(5);
console.info("text = " + text);

### deleteForward

deleteForward(length:number, callback: AsyncCallback): void

刪除光標(biāo)前固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名   | 類型          | 必填 | 說明           |
| ---------- | --------------- | ------ | ---------------- |
| length   | number        | 是   | 文本長度。     |
| callback | AsyncCallback | 是   | 操作成功與否。 |

**示例:**

TextInputClient.deleteForward(5,(isSuccess)= >{
console.info("isSuccess = " + isSuccess);
});

### deleteForward

deleteForward(length:number): Promise

刪除光標(biāo)前固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
lengthnumber文本長度。
**返回值:**
類型說明
Promise< boolean >操作成功與否。
**示例:**
var isSuccess = TextInputClient.deleteForward(5);
 console.info("isSuccess = " + isSuccess);
### deleteBackward

deleteBackward(length:number, callback: AsyncCallback): void

刪除光標(biāo)后固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
lengthnumber文本長度。
callbackAsyncCallback操作成功與否。
**示例:**
TextInputClient.deleteBackward(5, (isSuccess)= >{
 console.info("isSuccess = " + isSuccess);
});
### deleteBackward

deleteBackward(length:number): Promise

刪除光標(biāo)后固定長度的文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名 | 類型   | 必填 | 說明       |
| -------- | -------- | ------ | ------------ |
| length | number | 是   | 文本長度。 |

**返回值:**

| 類型    | 說明           |
| --------- | ---------------- |
| Promise | 操作成功與否。 |

**示例:**
var isSuccess = TextInputClient.deleteBackward(5);
 console.info("isSuccess = " + isSuccess);
### sendKeyFunction

sendKeyFunction(action:number, callback: AsyncCallback): void

發(fā)送功能鍵。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
actionnumber編輯框?qū)傩浴?/td>
callbackAsyncCallback< boolean >操作成功與否。
**示例:**
TextInputClient.sendKeyFunction(inputMethod.ENTER_KEY_TYPE_NEXT,(isSuccess)= >{
  console.info("isSuccess = " + isSuccess);
});
### sendKeyFunction

sendKeyFunction(action:number): Promise

發(fā)送功能鍵。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名 | 類型   | 必填 | 說明         |
| -------- | -------- | ------ | -------------- |
| action | number | 是   | 編輯框?qū)傩浴?|

**返回值:**

| 類型    | 說明           |
| --------- | ---------------- |
| Promise | 操作成功與否。 |

**示例:**

var isSuccess = TextInputClient.sendKeyFunction(inputMethod.ENTER_KEY_TYPE_NEXT);
console.info("isSuccess = " + isSuccess);

### insertText

insertText(text:string, callback: AsyncCallback): void

插入文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**
參數(shù)名類型必填說明
textstring文本。
callbackAsyncCallback< boolean >操作成功與否。
**示例:**
TextInputClient.insertText("test", (isSuccess)= >{
  console.info("isSuccess = " + isSuccess);
});
### insertText

insertText(text:string): Promise

插入文本。

 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名 | 類型   | 必填 | 說明   |
| -------- | -------- | ------ | -------- |
| text   | string | 是   | 文本。 |

**返回值:**

| 類型    | 說明           |
| --------- | ---------------- |
| Promise | 操作成功與否。 |

**示例:**

var isSuccess = TextInputClient.insertText("test");
console.info("isSuccess = " + isSuccess);

### getEditorAttribute

getEditorAttribute(callback: AsyncCallback): void

獲取編輯框?qū)傩灾怠?
 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**參數(shù):**

| 參數(shù)名   | 類型                             | 必填 | 說明           |
| ---------- | ---------------------------------- | ------ | ---------------- |
| callback | AsyncCallback | 是   | 編輯框?qū)傩灾怠?|

**示例:**

TextInputClient.getEditorAttribute((EditorAttribute)= >{
});

### getEditorAttribute

getEditorAttribute(): EditorAttribute

獲取編輯框?qū)傩灾怠?
 **系統(tǒng)能力** : SystemCapability.Miscservices.InputMethodFramework

**返回值:**

| 類型                       | 說明               |
| ---------------------------- | -------------------- |
| Promise | 返回編輯框?qū)傩灾怠?|

**示例:**

var EditorAttribute = TextInputClient.getEditorAttribute();

## )EditorAttribute[]()

編輯框?qū)傩灾怠?
 **系統(tǒng)能力** :以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為SystemCapability.Miscservices.InputMethodFramework

| 名稱         | 參數(shù)類型 | 可讀 | 可寫 | 說明                                                                           |
| -------------- | ---------- | ------ | ------ | -------------------------------------------------------------------------------- |
| enterKeyType | number   | 是   | 否   | 編輯框的功能屬性。                                                             |
| inputPattern | number   | 是   | 否   | 編輯框的文本屬性。`HarmonyOSOpenHarmony鴻蒙文檔籽料:mau123789是v直接拿` |

![搜狗高速瀏覽器截圖20240326151547.png](//file1.elecfans.com/web2/M00/C5/D5/wKgZomYCnRSAcOMcAACEEnttXHc600.png)

## KeyEvent[]()

按鍵屬性值。

 **系統(tǒng)能力** :以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為SystemCapability.Miscservices.InputMethodFramework

| 名稱      | 參數(shù)類型 | 可讀 | 可寫 | 說明         |
| ----------- | ---------- | ------ | ------ | -------------- |
| keyCode   | number   | 是   | 否   | 按鍵的鍵值。 |
| keyAction | number   | 是   | 否   | 按鍵的狀態(tài)。 |

審核編輯 黃宇

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報(bào)投訴
  • 鴻蒙
    +關(guān)注

    關(guān)注

    57

    文章

    2395

    瀏覽量

    43087
收藏 人收藏

    評論

    相關(guān)推薦

    鴻蒙OS實(shí)戰(zhàn)開發(fā):【多設(shè)備自適應(yīng)服務(wù)卡片】

    服務(wù)卡片的布局和使用,其中卡片內(nèi)容顯示使用了一次開發(fā),多端部署的能力實(shí)現(xiàn)多設(shè)備自適應(yīng)。 用到了卡片擴(kuò)展模塊接口,[@ohos
    的頭像 發(fā)表于 04-09 09:20 ?946次閱讀
    <b class='flag-5'>鴻蒙</b>OS實(shí)戰(zhàn)<b class='flag-5'>開發(fā)</b>:【多設(shè)備自適應(yīng)<b class='flag-5'>服務(wù)</b>卡片】

    鴻蒙實(shí)戰(zhàn)項(xiàng)目開發(fā):【短信服務(wù)

    數(shù)據(jù)管理 電話服務(wù) 分布式應(yīng)用開發(fā) 通知與窗口管理 多媒體技術(shù) 安全技能 任務(wù)管理 WebGL 國際化開發(fā) 應(yīng)用測試 DFX面向未來設(shè)計(jì) 鴻蒙系統(tǒng)
    發(fā)表于 03-03 21:29

    如何對android的輸入法服務(wù)開機(jī)進(jìn)行初始化呢

    android輸入法如何啟動流程呢?如何對android的輸入法服務(wù)開機(jī)進(jìn)行初始化呢?
    發(fā)表于 03-03 07:56

    【PIMF】OpenHarmony啃論文俱樂部——OpenHarmony標(biāo)準(zhǔn)系統(tǒng)輸入法以及中文拼音輸入法原理

    打字,并上屏輸入字符到應(yīng)用客戶端。相關(guān)API接口文檔輸入法框架模塊接口使用說明輸入法服務(wù)模塊接口使用說明輸入法框架是什么應(yīng)用調(diào)用輸入法實(shí)現(xiàn)內(nèi)
    發(fā)表于 05-23 11:02

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(一)

    @ohos.app.ability.Ability (Ability基類)一、說明 UIAbility和ExtensionAbility的基類,提供系統(tǒng)配置更新回調(diào)和系統(tǒng)內(nèi)存調(diào)整回調(diào)。本模塊首批接口
    發(fā)表于 12-08 16:34

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(二)

    。 系統(tǒng)能力:以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為SystemCapability.Ability.AbilityRuntime.Core2.AbilityConstant.LaunchReas
    發(fā)表于 12-11 14:48

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(四)

    ‘@ohos.app.ability.AbilityStage’; 1.AbilityStage.onCreate onCreate(): void 當(dāng)應(yīng)用創(chuàng)建時調(diào)用。 系統(tǒng)能力
    發(fā)表于 12-14 15:39

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(五)

    在Stage模型下使用 二、 導(dǎo)入模塊 import common from \'@ohos.app.ability.common\'; 三、系統(tǒng)能力 :以下各項(xiàng)對應(yīng)的系統(tǒng)
    發(fā)表于 12-15 15:11

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(六)

    、 ContextConstant.AreaMode 使用時通過ContextConstant.AreaMode獲取。 系統(tǒng)能力 :以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為
    發(fā)表于 12-18 14:40

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(七)

    下文ApplicationContext對系統(tǒng)環(huán)境變化監(jiān)聽回調(diào)的能力,包括onConfigurationUpdated方法。本模塊首批接口從API version 9 開始支持。后續(xù)版本的新增接口,采用上角標(biāo)單獨(dú)標(biāo)記
    發(fā)表于 12-19 11:03

    鴻蒙原生應(yīng)用/元服務(wù)開發(fā)-Stage模型能力接口(八)

    ‘@ohos.app.ability.ExtensionAbility’; 系統(tǒng)能力:SystemCapability.Ability.AbilityRuntime.AbilityCore 示例: class MyExtens
    發(fā)表于 12-20 16:12

    嵌入式中文輸入法設(shè)計(jì)

    本文比較了嵌入式系統(tǒng)中拼音輸入法和筆畫輸入法的優(yōu)缺點(diǎn),介紹了嵌入式系統(tǒng)中的中文輸入法的基本設(shè)計(jì)思想。本文重點(diǎn)介紹拼音
    發(fā)表于 06-19 08:29 ?41次下載

    鴻蒙開發(fā)系統(tǒng)基礎(chǔ)能力ohos.hilog 日志打印

    hilog日志系統(tǒng),使應(yīng)用/服務(wù)可以按照指定級別、標(biāo)識和格式字符串輸出日志內(nèi)容,幫助開發(fā)者了解應(yīng)用/服務(wù)的運(yùn)行狀態(tài),更好地調(diào)試程序。
    的頭像 發(fā)表于 06-25 15:59 ?541次閱讀

    鴻蒙開發(fā)系統(tǒng)基礎(chǔ)能力ohos.inputMethod 輸入法框架

    以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為SystemCapability.Miscservices.InputMethodFramework
    的頭像 發(fā)表于 06-26 09:49 ?894次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發(fā)</b><b class='flag-5'>系統(tǒng)</b>基礎(chǔ)<b class='flag-5'>能力</b>:<b class='flag-5'>ohos</b>.inputMethod <b class='flag-5'>輸入法</b>框架

    瑞芯微RK3566鴻蒙開發(fā)板Android11修改第三方輸入法為默認(rèn)輸入法

    本文適用于觸覺智能所有支持Android11系統(tǒng)開發(fā)板修改第三方輸入法為默認(rèn)輸入法。本次使用的是觸覺智能的Purple Pi OH鴻蒙開源
    的頭像 發(fā)表于 09-24 09:43 ?543次閱讀
    瑞芯微RK3566<b class='flag-5'>鴻蒙</b><b class='flag-5'>開發(fā)</b>板Android11修改第三方<b class='flag-5'>輸入法</b>為默認(rèn)<b class='flag-5'>輸入法</b>