1 Star 0 Fork 5K

famoustang / docs

forked from OpenHarmony / docs 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
want-h.md 7.04 KB
Copy Edit Raw Blame History
wenjun authored 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/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

Search