harmony 鸿蒙asset_api.h

2025-06-12 浏览 (1)

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

NameDescription
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_Attr

harmony 鸿蒙Asset_Blob

harmony 鸿蒙Asset_Result

harmony 鸿蒙Asset_ResultSet

harmony 鸿蒙AssetApi

harmony 鸿蒙AssetType

harmony 鸿蒙asset_type.h

harmony 鸿蒙Asset Store Service Error Code

harmony 鸿蒙@ohos.security.asset (Asset Store Service) (System API)

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/RnWjY6