1 Star 0 Fork 4.9K

taoguan / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
want-h.md 7.04 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

want.h

Overview

Related Modules:

AbilityKit

Description:

Declares the structure that provides abstract description of the operation to be performed, including the ability information and the carried data, and functions for setting data in the structure.

You can use functions provided in this file to specify information about the ability to start.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

Want

Defines the abstract description of an operation, including information about the ability and the extra data to carry.

Functions

Function Name

Description

ClearWant (Want *want)

void 

Clears the memory of a specified Want object.

SetWantElement (Want *want, ElementName element)

bool 

Sets the element variable for a specified Want object.

SetWantData (Want *want, const void *data, uint16_t dataLength)

bool 

Sets data to carry in a specified Want object for starting a particular ability.

SetWantSvcIdentity (Want *want, SvcIdentity sid)

bool 

Sets the sid member variable for a specified Want object.

WantToUri (Want want)

const char * 

Converts a specified Want object into a character string.

WantParseUri (const char *uri)

Want

Converts a specified character string into a Want object.

1
https://gitee.com/taoguan/docs.git
git@gitee.com:taoguan/docs.git
taoguan
docs
docs
master

搜索帮助