Types
NOTE
The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
MemberType
type MemberType = number|string|boolean
Defines the types of the PhotoAsset members.
The member types are the union of the types listed in the following table.
System capability: SystemCapability.FileManagement.PhotoAccessHelper.Core
| Type | Description |
|---|---|
| number | The member value is any number. |
| string | The member value is any string. |
| boolean | The member value is true or false. |
PhotoAssetParams21+
type PhotoAssetParams = Record<string, MemberType>[]
Defines the array of record types that map file property names to their values.
System capability: SystemCapability.FileManagement.PhotoAccessHelper.Core
| Type | Description |
|---|---|
| Record<string, MemberType>[] | Array of record types that map file property names to their values. |
OperationValueType22+
type OperationValueType = number|string|boolean
Defines the values needed for matching different predicates.
Model restriction: This API can be used only in the stage model.
Atomic service API: This API can be used in atomic services since API version 22.
System capability: SystemCapability.FileManagement.PhotoAccessHelper.Core
| Type | Description |
|---|---|
| number | Used for numeric fields. It can be any value. |
| string | Used for string fields. It can be any value. |
| boolean | Used for boolean fields. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-mediaassetmanager-oh-mediaassetmanager
openharmony 鸿蒙 arkts-apis-photoAccessHelper-MediaAssetProgressHandler
openharmony 鸿蒙 arkts-apis-photoAccessHelper-AbsAlbum
openharmony 鸿蒙 arkts-apis-photoAccessHelper-PhotoAccessHelper
openharmony 鸿蒙 arkts-apis-photoAccessHelper-QuickImageDataHandler
openharmony 鸿蒙 capi-media-access-helper-capi-h
openharmony 鸿蒙 arkts-apis-photoAccessHelper-PhotoAsset
openharmony 鸿蒙 capi-mediaassetmanager-oh-movingphoto
openharmony 鸿蒙 capi-mediaassetmanager
openharmony 鸿蒙 capi-mediaassetmanager-medialibrary-requestid