harmony 鸿蒙WantAgentInfo

  • 2022-12-13
  • 浏览 (468)

WantAgentInfo

定义触发WantAgent所需要的信息,可以作为getWantAgent的入参创建指定的WantAgent对象。

说明:

本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

导入模块

import wantAgent from '@ohos.app.ability.wantAgent';

属性

系统能力:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core

名称 类型 必填 说明
wants Array<Want> 将被执行的动作列表。wants数组为预留能力,当前只支持一个want。传入多个时只取wants数组的第一个成员。
operationType wantAgent.OperationType 动作类型。
requestCode number 使用者定义的一个私有值。
wantAgentFlags Array<wantAgent.WantAgentFlags> 动作执行属性。
extraInfo {[key: string]: any} 额外数据。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙接口

harmony 鸿蒙系统公共事件定义(待停用)

harmony 鸿蒙系统公共事件定义

harmony 鸿蒙开发说明

harmony 鸿蒙企业设备管理概述(仅对系统应用开放)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager模块)

harmony 鸿蒙@ohos.distributedBundle (分布式包管理)

harmony 鸿蒙@ohos.bundle (Bundle模块)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (企业设备管理扩展能力)

0  赞