HarmonyOS应用API-featureAbility.startAbilitycallback形式

鸿蒙时代
发布于 2022-11-2 14:57
浏览
0收藏

Api: featureAbility.startAbility

版本适配:Api6

作用:启动新的ability(callback形式)

示例代码:

import featureAbility from '@ohos.ability.featureAbility'
import wantConstant from '@ohos.ability.wantConstant'
featureAbility.startAbility(
        {
        want:
        {
            action: "",
            entities: [""],
            type: "",
            flags: wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION,
            deviceId: "",
            bundleName: "com.example.startability",
            abilityName: "com.example.startability.MainAbility",
            uri: ""
        },
    },
);

标签
HarmonyOS应用API-featureAbility.startAbi.docx 16.32K 9次下载
收藏
回复
举报
回复
    相关推荐