精品国产人成在线_亚洲高清无码在线观看_国产在线视频国产永久2021_国产AV综合第一页一个的一区免费影院黑人_最近中文字幕MV高清在线视频

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

鴻蒙開發接口Ability框架:【AbilityDelegator】

jf_46214456 ? 來源:jf_46214456 ? 作者:jf_46214456 ? 2024-05-16 16:48 ? 次閱讀

AbilityDelegator

AbilityDelegator提供添加用于監視指定能力的生命周期狀態更改的AbilityMonitor對象的能力,包括對AbilityMonitor實例的添加、刪除、等待ability到達OnCreate生命周期、設置等待時間等、獲取指定ability的生命周期狀態、獲取當前應用頂部ability、啟動指定ability等。

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

使用說明

通過AbilityDelegatorRegistry中getAbilityDelegator方法獲取。

import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'

var abilityDelegator;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();

AbilityDelegator

addAbilityMonitor9+

addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void

添加AbilityMonitor實例(callback形式)

**系統能力:**SystemCapability.Ability.AbilityRuntime.Core

參數

參數名類型必填說明說明
monitor[AbilityMonitor][AbilityMonitor]實例
callbackAsyncCallback表示指定的回調方法

示例:

var abilityDelegator;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.addAbilityMonitor(monitor, (err : any) = > {
    console.info("addAbilityMonitor callback");
});

addAbilityMonitor9+

addAbilityMonitor(monitor: AbilityMonitor): Promise

添加AbilityMonitor實例(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
monitor[AbilityMonitor][AbilityMonitor]實例

返回值:

類型說明
Promise以Promise形式返回。

示例:

var abilityDelegator;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.addAbilityMonitor(monitor).then(() = > {
    console.info("addAbilityMonitor promise");
});

removeAbilityMonitor9+

removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void

刪除已經添加的AbilityMonitor實例(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
monitor[AbilityMonitor][AbilityMonitor]實例
callbackAsyncCallback表示指定的回調方法

示例:

var abilityDelegator;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.removeAbilityMonitor(monitor, (err : any) = > {
    console.info("removeAbilityMonitor callback");
});

removeAbilityMonitor9+

removeAbilityMonitor(monitor: AbilityMonitor): Promise

刪除已經添加的AbilityMonitor實例(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

名稱類型必填說明
monitor[AbilityMonitor][AbilityMonitor]實例

返回值:

類型說明
Promise以Promise形式返回。
  • 示例
var abilityDelegator;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.removeAbilityMonitor(monitor).then(() = > {
    console.info("removeAbilityMonitor promise");
});

waitAbilityMonitor9+

waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void

等待與AbilityMonitor實例匹配的ability到達OnCreate生命周期,并返回ability實例(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
monitor[AbilityMonitor][AbilityMonitor]實例
callbackAsyncCallback[Ability]表示指定的回調方法

示例:

var abilityDelegator;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.waitAbilityMonitor(monitor, (err : any, data : any) = > {
    console.info("waitAbilityMonitor callback");
});

waitAbilityMonitor9+

waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void

設置等待時間,等待與AbilityMonitor實例匹配的ability到達OnCreate生命周期,并返回ability實例(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
monitor[AbilityMonitor][AbilityMonitor]實例
timeoutnumber最大等待時間,單位毫秒(ms)
callbackAsyncCallback[Ability]表示指定的回調方法

示例:

var abilityDelegator;
var timeout = 100;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.waitAbilityMonitor(monitor, timeout, (err : any, data : any) = > {
    console.info("waitAbilityMonitor callback");
});

waitAbilityMonitor9+

waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise

設置等待時間,等待與AbilityMonitor實例匹配的ability到達OnCreate生命周期,并返回ability實例(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
monitor[AbilityMonitor][AbilityMonitor]實例
timeoutnumber最大等待時間,單位毫秒(ms)

返回值:

類型說明
Promise[Ability]以Promise形式返回Ability。

示例:

var abilityDelegator;

function onAbilityCreateCallback(data) {
    console.info("onAbilityCreateCallback");
}

var monitor = {
    abilityName: "abilityname",
    onAbilityCreate: onAbilityCreateCallback
}

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.waitAbilityMonitor(monitor).then((data : any) = > {
    console.info("waitAbilityMonitor promise");
});

getAppContext9+

getAppContext(): Context

獲取應用Context

系統能力: SystemCapability.Ability.AbilityRuntime.Core

返回值:

類型說明
[Context]應用[Context]。

示例:

var abilityDelegator;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
var context = abilityDelegator.getAppContext();

getAbilityState9+

getAbilityState(ability: Ability): number

獲取指定ability的生命周期狀態

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
ability[Ability]指定Ability對象

返回值:

類型說明
number指定ability的生命周期狀態。狀態枚舉值使用[AbilityLifecycleState]。

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility((err : any, data : any) = > {
    console.info("getCurrentTopAbility callback");
    ability = data;
    var state = abilityDelegator.getAbilityState(ability);
    console.info("getAbilityState" + state);
});

getCurrentTopAbility9+

getCurrentTopAbility(callback: AsyncCallback): void

獲取當前應用頂部ability(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
callbackAsyncCallback[Ability]表示指定的回調方法

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility((err : any, data : any) = > {
    console.info("getCurrentTopAbility callback");
    ability = data;
});

getCurrentTopAbility9+

getCurrentTopAbility(): Promise

獲取當前應用頂部ability(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

返回值:

類型說明
Promise[Ability]以Promise形式返回當前應用頂部ability。

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility().then((data : any) = > {
    console.info("getCurrentTopAbility promise");
    ability = data;
});

startAbility9+

startAbility(want: Want, callback: AsyncCallback): void

啟動指定ability(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
want[Want]啟動Ability參數
callbackAsyncCallback表示指定的回調方法

示例:

var abilityDelegator;
var want = {
    bundleName: "bundleName",
    abilityName: "abilityName"
};

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.startAbility(want, (err : any, data : any) = > {
    console.info("startAbility callback");
});

startAbility9+

startAbility(want: Want): Promise

啟動指定ability(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
want[Want]啟動Ability參數

返回值:

類型說明
Promise以Promise形式返回。

示例:

var abilityDelegator;
var want = {
    bundleName: "bundleName",
    abilityName: "abilityName"
};

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.startAbility(want).then((data: any) = > {
    console.info("startAbility promise");
});

doAbilityForeground9+

doAbilityForeground(ability: Ability, callback: AsyncCallback): void

調度指定ability生命周期狀態到Foreground狀態(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
abilityAbility指定Ability對象
callbackAsyncCallback表示指定的回調方法 - true:成功 - false:失敗

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility((err : any, data : any) = > {
    console.info("getCurrentTopAbility callback");
    ability = data;
    abilityDelegator.doAbilityForeground(ability, (err : any, data : any) = > {
        console.info("doAbilityForeground callback");
    });
});

doAbilityForeground9+

doAbilityForeground(ability: Ability): Promise

調度指定ability生命周期狀態到Foreground狀態(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
abilityAbility指定Ability對象

返回值:

類型說明
Promise以Promise形式返回執行結果。 - true:成功 - false:失敗

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility((err : any, data : any) = > {
    console.info("getCurrentTopAbility callback");
    ability = data;
    abilityDelegator.doAbilityForeground(ability).then((data : any) = > {
        console.info("doAbilityForeground promise");
    });
});

doAbilityBackground9+

doAbilityBackground(ability: Ability, callback: AsyncCallback): void

調度指定ability生命周期狀態到Background狀態(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
abilityAbility指定Ability對象
callbackAsyncCallback表示指定的回調方法 - true:成功 - false:失敗

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility((err : any, data : any) = > {
    console.info("getCurrentTopAbility callback");
    ability = data;
    abilityDelegator.doAbilityBackground(ability, (err : any, data : any) = > {
        console.info("doAbilityBackground callback");
    });
});

doAbilityBackground9+

doAbilityBackground(ability: Ability): Promise

調度指定ability生命周期狀態到Background狀態(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
abilityAbility指定Ability對象

返回值:

類型說明
Promise以Promise形式返回執行結果。 - true:成功 - false:失敗

示例:

var abilityDelegator;
var ability;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.getCurrentTopAbility((err : any, data : any) = > {
    console.info("getCurrentTopAbility callback");
    ability = data;
    abilityDelegator.doAbilityBackground(ability).then((data : any) = > {
        console.info("doAbilityBackground promise");
    });
});

print

print(msg: string, callback: AsyncCallback): void

打印日志信息到單元測試終端控制臺(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
msgstring日志字符串
callbackAsyncCallback表示指定的回調方法

示例:

var abilityDelegator;
var msg = "msg";

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.print(msg, (err : any) = > {
    console.info("print callback");
});

print

print(msg: string): Promise

打印日志信息到單元測試終端控制臺(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
msgstring日志字符串

返回值:

類型說明
Promise以Promise形式返回。

示例:

var abilityDelegator;
var msg = "msg";

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.print(msg).then(() = > {
    console.info("print promise");
});

executeShellCommand

executeShellCommand(cmd: string, callback: AsyncCallback): void

執行指定的shell命令(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
cmdstringshell命令字符串
callbackAsyncCallback[ShellCmdResult]表示指定的回調方法

示例:

var abilityDelegator;
var cmd = "cmd";

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.executeShellCommand(cmd, (err : any, data : any) = > {
    console.info("executeShellCommand callback");
});

executeShellCommand

executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback): void

指定超時時間,并執行指定的shell命令(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
cmdstringshell命令字符串
timeoutSecsnumber設定命令超時時間,單位秒(s)
callbackAsyncCallback[ShellCmdResult]表示指定的回調方法

示例:

var abilityDelegator;
var cmd = "cmd";
var timeout = 100;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.executeShellCommand(cmd, timeout, (err : any, data : any) = > {
    console.info("executeShellCommand callback");
});

executeShellCommand

executeShellCommand(cmd: string, timeoutSecs?: number): Promise

指定超時時間,并執行指定的shell命令(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
cmdstringshell命令字符串
timeoutSecsnumber設定命令超時時間,單位秒(s)

返回值:

類型說明
Promise[ShellCmdResult]以Promise形式返回Shell命令執行結果[ShellCmdResult]對象。

示例:

var abilityDelegator;
var cmd = "cmd";
var timeout = 100;

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.executeShellCommand(cmd, timeout).then((data : any) = > {
    console.info("executeShellCommand promise");
});

finishTest9+

finishTest(msg: string, code: number, callback: AsyncCallback): void

結束測試并打印日志信息到單元測試終端控制臺(callback形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
msgstring日志字符串
codenumber日志碼
callbackAsyncCallback表示指定的回調方法

示例:

var abilityDelegator;
var msg = "msg";

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.finishTest(msg, 0, (err : any) = > {
    console.info("finishTest callback");
});

finishTest9+

finishTest(msg: string, code: number): Promise

結束測試并打印日志信息到單元測試終端控制臺(promise形式)

系統能力: SystemCapability.Ability.AbilityRuntime.Core

參數:

參數名類型必填說明
msgstring日志字符串
codenumber日志碼

返回值:

類型說明
Promise以Promise形式返回。

搜狗高速瀏覽器截圖20240326151450.png

示例:

var abilityDelegator;
var msg = "msg";

abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
abilityDelegator.finishTest(msg, 0).then(() = > {
    console.info("finishTest promise");
});

審核編輯 黃宇

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • 接口
    +關注

    關注

    33

    文章

    8526

    瀏覽量

    150862
  • 框架
    +關注

    關注

    0

    文章

    399

    瀏覽量

    17437
  • 鴻蒙
    +關注

    關注

    57

    文章

    2321

    瀏覽量

    42749
收藏 人收藏

    評論

    相關推薦

    鴻蒙開發接口Ability框架:【@ohos.application.Ability (Ability)】

    Ability模塊提供對Ability生命周期、上下文環境等調用管理的能力,包括Ability創建、銷毀、轉儲客戶端信息等。
    的頭像 發表于 04-30 17:42 ?2216次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【@ohos.application.<b class='flag-5'>Ability</b> (<b class='flag-5'>Ability</b>)】

    鴻蒙開發接口Ability框架:【@ohos.ability.featureAbility (FeatureAbility模塊)】

    FeatureAbility模塊提供帶有UI設計與用戶交互的能力,包括啟動新的ability、獲取dataAbilityHelper、設置此Page Ability、獲取當前Ability對應的窗口,連接服務等。
    的頭像 發表于 05-06 16:31 ?933次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【@ohos.<b class='flag-5'>ability</b>.featureAbility (FeatureAbility模塊)】

    鴻蒙開發接口Ability框架:【@ohos.application.missionManager (missionManager)】

    表示Ability對應任務信息的枚舉。
    的頭像 發表于 05-08 09:19 ?869次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【@ohos.application.missionManager (missionManager)】

    鴻蒙開發接口Ability框架:【@ohos.ability.particleAbility (particleAbility模塊)】

    particleAbility模塊提供了Service類型Ability的能力,包括啟動、停止指定的particleAbility,獲取dataAbilityHelper,連接、斷開當前Ability與指定ServiceAbility等。
    的頭像 發表于 05-09 10:21 ?692次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【@ohos.<b class='flag-5'>ability</b>.particleAbility (particleAbility模塊)】

    鴻蒙開發接口Ability框架:【(uriPermissionManager)】

    本模塊首批接口從API version 9 開始支持。后續版本的新增接口,采用上角標單獨標記接口的起始版本。
    的頭像 發表于 05-10 17:46 ?737次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【(uriPermissionManager)】

    鴻蒙開發接口Ability框架:【 (Context模塊)】

    Context模塊提供了ability或application的上下文的能力,包括允許訪問特定于應用程序的資源、請求和驗證權限等。
    的頭像 發表于 05-13 16:04 ?672次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【 (Context模塊)】

    鴻蒙開發接口Ability框架:【(AbilityContext)】

    AbilityContext是Ability的上下文環境,繼承自Context。
    的頭像 發表于 05-13 09:26 ?972次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【(AbilityContext)】

    鴻蒙開發接口Ability框架:【(AbilityDelegator)】

    AbilityDelegator提供添加用于監視指定能力的生命周期狀態更改的AbilityMonitor對象的能力,包括對AbilityMonitor實例的添加、刪除、等待ability到達
    的頭像 發表于 05-13 17:58 ?921次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【(<b class='flag-5'>AbilityDelegator</b>)】

    鴻蒙開發接口Ability框架:【AbilityRunningInfo】

    AbilityRunningInfo模塊提供對Ability運行的相關信息和狀態進行設置和查詢的能力。
    的頭像 發表于 05-14 16:02 ?754次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【AbilityRunningInfo】

    鴻蒙Ability開發-Stage模型下Ability的創建和使用

    ); hilog.info(ENTRY_ABILITY_DOMAIN, TAG, \'%{public}s\', \'Ability onBackground\'); } } 本文內容是鴻蒙
    發表于 01-08 15:34

    鴻蒙開發接口Ability框架:【AbilityDelegatorArgs】

    AbilityDelegatorArgs模塊提供在應用程序啟動期間,用于存儲已注冊的AbilityDelegator和AbilityDelegatorArgs對象的全局寄存器的能力。
    的頭像 發表于 05-14 09:49 ?260次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【AbilityDelegatorArgs】

    鴻蒙開發接口Ability框架:【ApplicationContext】

    ApplicationContext模塊提供開發者應用級別的的上下文的能力,包括提供注冊及取消注冊應用內組件生命周期的監聽接口
    的頭像 發表于 05-16 11:51 ?587次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【ApplicationContext】

    鴻蒙開發接口Ability框架:【AbilityRunningInfo】

    AbilityRunningInfo模塊提供對Ability運行的相關信息和狀態進行設置和查詢的能力。
    的頭像 發表于 05-17 17:12 ?294次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發</b><b class='flag-5'>接口</b><b class='flag-5'>Ability</b><b class='flag-5'>框架</b>:【AbilityRunningInfo】

    鴻蒙Ability Kit(程序框架服務)【Ability內頁面間的跳轉】

    基于Stage模型下的Ability開發,實現Ability內頁面間的跳轉和數據傳遞。
    的頭像 發表于 06-03 20:43 ?279次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>Ability</b> Kit(程序<b class='flag-5'>框架</b>服務)【<b class='flag-5'>Ability</b>內頁面間的跳轉】

    鴻蒙Ability Kit(程序框架服務)【Ability與ServiceExtensionAbility通信】

    本示例展示通過[IDL的方式]和?[@ohos.rpc]?等接口實現了Ability與ServiceExtensionAbility之間的通信。
    的頭像 發表于 06-05 09:28 ?455次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>Ability</b> Kit(程序<b class='flag-5'>框架</b>服務)【<b class='flag-5'>Ability</b>與ServiceExtensionAbility通信】