harmony 鸿蒙asset_api.h
asset_api.h
Overview
Defines the functions for accessing assets.
Library: libasset_ndk.z.so
System capability: SystemCapability.Security.Asset
Since: 11
Related module: AssetApi
Summary
Functions
Name | Description |
---|---|
int32_t OH_Asset_Add (const Asset_Attr *attributes, uint32_t attrCnt) | Adds an asset. |
int32_t OH_Asset_Remove (const Asset_Attr *query, uint32_t queryCnt) | Removes one or more assets. |
int32_t OH_Asset_Update (const Asset_Attr *query, uint32_t queryCnt, const Asset_Attr *attributesToUpdate, uint32_t updateCnt) | Updates an asset. |
int32_t OH_Asset_PreQuery (const Asset_Attr *query, uint32_t queryCnt, Asset_Blob *challenge) | Performs preprocessing for the asset query. This function is used when user authentication is required for the access to the asset. |
int32_t OH_Asset_Query (const Asset_Attr *query, uint32_t queryCnt, Asset_ResultSet *resultSet) | Queries one or more assets. |
int32_t OH_Asset_PostQuery (const Asset_Attr *handle, uint32_t handleCnt) | Performs postprocessing for the asset query. This function is used when user authentication is required for the access to the asset. |
Asset_Attr * OH_Asset_ParseAttr (const Asset_Result *result, Asset_Tag tag) | Parses the query result and obtains the specified attribute. |
void OH_Asset_FreeBlob (Asset_Blob *blob) | Releases the memory occupied by the challenge value. |
void OH_Asset_FreeResultSet (Asset_ResultSet *resultSet) | Releases the memory occupied by the query result. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Asset Store Kit (Asset Store Service)
harmony 鸿蒙Asset Store Service Error Code
harmony 鸿蒙@ohos.security.asset (Asset Store Service) (System API)
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦