Home
last modified time | relevance | path

Searched refs:album (Results 1 – 25 of 117) sorted by relevance

12345

/ohos5.0/docs/en/application-dev/media/medialibrary/
H A DphotoAccessHelper-userAlbum-guidelines.md3album management, including creating or deleting a user album, adding images and videos to a user
21 - The album name cannot exceed 255 characters.
23 - The album name is case-insensitive.
24 - Duplicate album names are not allowed.
31 Example: Create a user album.
35 1. Set the name of the album.
50 …console.info('create album successfully, album name: ' + album.albumName + ' uri: ' + album.albumU…
67 Example: Obtain the user album **albumName**.
103 To rename a user album, modify the **Album.albumName** attribute of the album.
111 - The album name is case-insensitive.
[all …]
H A DphotoAccessHelper-systemAlbum-guidelines.md29 1. Set the album type to **photoAccessHelper.AlbumType.SYSTEM** and the album subtype to **photoAcc…
41 console.info('get favorite album successfully, albumUri: ' + album.albumUri);
44 console.error('get favorite album failed with err: ' + err);
129 console.info('get favorite album successfully, albumUri: ' + album.albumUri);
177 console.info('get favorite album successfully, albumUri: ' + album.albumUri);
211 1. Set the album type to **photoAccessHelper.AlbumType.SYSTEM** and the album subtype to **photoAcc…
223 console.info('get video album successfully, albumUri: ' + album.albumUri);
265 console.info('get video album successfully, albumUri: ' + album.albumUri);
294 1. Set the album type to **photoAccessHelper.AlbumType.SYSTEM** and the album subtype to **photoAcc…
306 console.info('get screenshot album successfully, albumUri: ' + album.albumUri);
[all …]
H A DphotoAccessHelper-overview.md29 - Obtaining a user album
30 - Renaming a user album
31 - Adding images and videos to a user album.
32 - Obtaining images and videos from a user album
33 - Removing images and videos from a user album
36 - Video album
50 - Creating a user album
51 - Deleting a user album
52 - Hiding an album
53 - Favoriting and unfavoriting an album
[all …]
H A DphotoAccessHelper-notify-guidelines.md3 …ccessHelper** module provides APIs for listening for media asset (image, video, and album) changes.
66 Register a listener for an album. When the observed album changes, the registered callback will be …
73 … how to register a listener for a user album and then rename the album. A callback will be invoked…
77 1. [Obtain a user album](photoAccessHelper-userAlbum-guidelines.md#obtaining-a-user-album).
78 2. Register a listener for the user album.
79 3. Rename the user album.
99 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
100 console.info('getAlbums successfully, albumUri: ' + album.albumUri);
105 phAccessHelper.registerChange(album.albumUri, false, onCallback);
106 album.albumName = 'newAlbumName' + Date.now();
[all …]
/ohos5.0/docs/zh-cn/application-dev/media/medialibrary/
H A DphotoAccessHelper-systemAlbum-guidelines.md40 console.info('get favorite album successfully, albumUri: ' + album.albumUri);
43 console.error('get favorite album failed with err: ' + err);
128 console.info('get favorite album successfully, albumUri: ' + album.albumUri);
176 console.info('get favorite album successfully, albumUri: ' + album.albumUri);
222 console.info('get video album successfully, albumUri: ' + album.albumUri);
225 console.error('get video album failed with err: ' + err);
264 console.info('get video album successfully, albumUri: ' + album.albumUri);
305 console.info('get screenshot album successfully, albumUri: ' + album.albumUri);
308 console.error('get screenshot album failed with err: ' + err);
347 console.info('get screenshot album successfully, albumUri: ' + album.albumUri);
[all …]
H A DphotoAccessHelper-userAlbum-guidelines.md48 let album: photoAccessHelper.Album = albumChangeRequest.getAlbum();
49 …console.info('create album successfully, album name: ' + album.albumName + ' uri: ' + album.albumU…
51 console.error('create album failed with err: ' + err);
91 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
92 console.info('getAlbums successfully, albumName: ' + album.albumName);
148 console.info('getAlbums successfully, albumName: ' + album.albumName);
207 console.info('getAlbums successfully, albumName: ' + album.albumName);
267 console.info('getAlbums successfully, albumName: ' + album.albumName);
268 let photoFetchResult = await album.getAssets(photoFetchOptions);
274 console.error('album getAssets failed with err: ' + err);
[all …]
H A DphotoAccessHelper-notify-guidelines.md98 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
99 console.info('getAlbums successfully, albumUri: ' + album.albumUri);
104 phAccessHelper.registerChange(album.albumUri, false, onCallback);
105 album.albumName = 'newAlbumName' + Date.now();
106 await album.commitModify();
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/
H A Dphoto_album_dao.cpp178 if (album.lPath.empty()) { in GetOrCreatePhotoAlbum()
181 return album; in GetOrCreatePhotoAlbum()
185 PhotoAlbumDao::PhotoAlbumRowData albumRowData = this->GetPhotoAlbum(album.lPath); in GetOrCreatePhotoAlbum()
189 std::string uniqueAlbumName = this->FindUniqueAlbumName(album); in GetOrCreatePhotoAlbum()
191album.albumType, album.albumSubType, uniqueAlbumName, album.bundleName, album.lPath, album.priorit… in GetOrCreatePhotoAlbum()
194 return album; in GetOrCreatePhotoAlbum()
203 return album; in GetOrCreatePhotoAlbum()
206 return this->GetPhotoAlbum(album.lPath); in GetOrCreatePhotoAlbum()
279 for (const auto &album : photoAlbums) { in LoadPhotoAlbums() local
280 if (album.lPath.empty()) { in LoadPhotoAlbums()
[all …]
H A Dphoto_album_restore.cpp76 for (const auto &album : photoAlbums) { in GetAlbumsToRestore() local
77 uniquePaths.insert(album.lPath); in GetAlbumsToRestore()
87 [&uniquePaths](const PhotoAlbumRestore::GalleryAlbumRowData &album) { in GetAlbumsToRestore() argument
88 return uniquePaths.find(album.lPath) == uniquePaths.end(); in GetAlbumsToRestore()
/ohos5.0/docs/en/application-dev/reference/apis-media-library-kit/
H A Djs-apis-sendablePhotoAccessHelper-sys.md3 …** module provides APIs for album management, including creating an album and accessing and modify…
180 // Obtain the preset hidden album.
197 … hidden albums displayed by album, that is, the albums with hidden files. Such albums do not inclu…
214 // Obtain hidden files in the album.
350 Obtains the face identifier on the cover of a portrait album or group photo album.
362 … | Promise used to return **tag_id** of the portrait album, **group_tag** of the group photo albu…
392 let album = await fetchResult?.getFirstObject();
393 let faceId = await album?.getFaceId();
408 Enumerates the album types.
414 | SMART | 4096 | Smart analysis album. **System API**: This is a system API.|
[all …]
H A Dmedia__access__helper__capi_8h.md6 Defines the APIs for album management.
8 You can use the APIs to create an album, and access and modify the media data in the album.
28 …t_manager.md#oh_mediaassetchangerequest) \*changeRequest) | Applies changes to an asset or album.|
H A Djs-apis-sendablePhotoAccessHelper.md3 …** module provides APIs for album management, including creating an album and accessing and modify…
298 // Obtain the album named newAlbumName.
363 // Obtain the album named newAlbumName.
1085 …| string | Yes for a user album; no for a system album.| No | Name of the
1096 Converts this sendable album to a non-sendable album.
1252 album.albumName = 'hello';
1253 album.commitModify().then(() => {
1276 Enumerates the album types.
1282 | USER | 0 | User album. |
1283 | SYSTEM | 1024 | System album.|
[all …]
H A Djs-apis-photoAccessHelper-sys.md3 …** module provides APIs for album management, including creating an album and accessing and modify…
303 …console.info('createAlbumCallback successfully, album: ' + album.albumName + ' album uri: ' + albu…
340 | Promise<[Album](#album)> | Promise used to return the created album instance.|
364 …console.info('createAlbumPromise successfully, album: ' + album.albumName + ' album uri: ' + album
4585 Sets the album cover.
4908 Removes assets from this portrait album or group photo album.
5028 Places this album before an album.
5038 | album | [Album](#album) | Yes | Target album. To place this album to the end, set **album** to …
5124 constructor(album: Album)
5136 | album | [Album](#album) | Yes | **Highlights** album to create.|
[all …]
H A Dohos-file-AlbumPickerComponent.md5 …er selects an album by using **AlbumPickerComponent**, **PhotoPickerComponent** is instructed to u…
41 …(#albuminfo)) => boolean | No | Callback used to return the album URI when an album is select…
52 …-file-PhotoPickerComponent.md#pickercolormode) | No | Theme color of the album page. The options …
53 …parameter is not specified, images and videos are displayed in a specific album.<br>**Atomic servi…
67 Represents album information.
/ohos5.0/foundation/multimedia/media_library/
H A DREADME.md7 - [Create Album<a name="create-album"></a>](#create-album)
24 - Album operations like create, rename and delete album
75 ### Create Album<a name="create-album"></a>
76 … for application to perform album operations like create, modify and delete. Below are the steps o…
81 2. Specify the album type. It can be either *ASSET_GENERIC_ALBUM*, *ASSET_IMAGEALBUM* or *ASSET_VID…
85 3. Create a new **AlbumAsset** object and provide a new album name. Below album "new_video" will ge…
90 …lbumAsset** API to create the new album in the device. The return value will be boolean, which sta…
105 3. Define the source and target **ImageAsset**. The target asset must specify the new album name wh…
115 4. Use **CopyMediaAsset** API to copy the source asset to target asset's album name location. The b…
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_media_avsession_metadata_adapter_wrapper.cpp57 void ArkMediaAVSessionMetadataAdapterWrapper::SetAlbum(const std::string& album) in SetAlbum() argument
59 ArkWebString str = ArkWebStringClassToStruct(album); in SetAlbum()
66 ArkWebString album = ctocpp_->GetAlbum(); in GetAlbum() local
67 std::string result = ArkWebStringStructToClass(album); in GetAlbum()
68 ArkWebStringStructRelease(album); in GetAlbum()
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/
H A Djs-apis-userFileManager-sys.md518 …console.info('createAlbumCallback successfully, album: ' + album.albumName + ' album uri: ' + albu…
549 | Promise&lt;[Album](#album)&gt; | Promise used to return the created album instance.|
560 …console.info('createAlbumPromise successfully, album: ' + album.albumName + ' album uri: ' + album
887 console.info('first album.albumName = ' + album.albumName);
948 console.info('first album.albumName = ' + album.albumName);
3305 | albumName | string | Yes | Yes for a user album; no for a system album. | Name of the album. …
3308 …overUri | string | Yes | Yes for a user album; no for a system album. | URI of the cover file…
3449 album.albumName = 'hello';
4355 Enumerates the album types.
4361 | USER | 0 | User album.|
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/album_count_cover_test/src/
H A Dalbum_count_cover_test.cpp335 auto album = QueryUserAlbumInfo(albumId, hiddenState); in CheckUserAlbum() local
336 EXPECT_NE(album, nullptr); in CheckUserAlbum()
338 CheckAlbum(album, hiddenState); in CheckUserAlbum()
346 EXPECT_NE(album, nullptr); in CheckSystemAlbum()
348 CheckAlbum(album, hiddenState); in CheckSystemAlbum()
356 album->GetCount() == count_, album->GetCount(), count_); in CheckAlbum()
360 album->GetCoverUri() == cover_, album->GetCoverUri().c_str(), cover_.c_str()); in CheckAlbum()
566 auto album = CreatePhotoAlbum("Test_PhotoAlbum_001"); variable
568 EXPECT_NE(album, nullptr);
571 AlbumAddAssets(album, fileAsset);
[all …]
/ohos5.0/docs/en/application-dev/media/media/
H A Davmetadataextractor.md26 4. (Optional) Call **fetchAlbumCover()** to obtain the album cover.
32 Refer to the sample code below to set the file descriptor and obtain the metadata and album cover o…
68 // Set fdSrc and obtain the audio metadata and album cover (callback mode).
70 // Set fdSrc and obtain the audio metadata and album cover (promise mode).
72 …// Use fdSrc to obtain the audio metadata and album cover in the sandbox path. (The file must exis…
107 // Obtain the album cover (callback mode).
140 // Obtain the album cover (promise mode).
150 // obtains the audio album cover, and displays it on the screen through the Image component.
163 // Obtain the album cover (promise mode).
173 // obtains the audio album cover, and displays it on the screen through the Image component.
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-userFileManager-sys.md518 …console.info('createAlbumCallback successfully, album: ' + album.albumName + ' album uri: ' + albu…
560 …console.info('createAlbumPromise successfully, album: ' + album.albumName + ' album uri: ' + album
886 if (album != undefined) {
887 console.info('first album.albumName = ' + album.albumName);
948 console.info('first album.albumName = ' + album.albumName);
1448 // Obtain the uri of the album
1522 // Obtain the uri of the album
3449 album.albumName = 'hello';
3450 album.commitModify((err) => {
3491 album.albumName = 'hello';
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.8.2/
H A Dchangelogs-mediaLibrary.md31 …ectories are replaced by logical albums, which allow multiple files in an album and presence of a …
89 …nger associated with an album. After a file is created, the last-level directory of **relativePath…
93 Since the SDK of API version 10, **relativePath** is no longer associated with an album. Therefore,…
96 …ev/reference/apis/js-apis-medialibrary.md#mediafetchoptions7) to create the album fetching options.
110 selectionArgs:['New album 1'], //Obtain the album named New album 1.
114 console.info('mediaLibrary album albumName: ' + albumList[i].albumName);
139 console.info('mediaLibrary album albumName: ' + albumList[i].albumName);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-media-library-kit/
H A Djs-apis-photoAccessHelper-sys.md303 …console.info('createAlbumCallback successfully, album: ' + album.albumName + ' album uri: ' + albu…
364 …console.info('createAlbumPromise successfully, album: ' + album.albumName + ' album uri: ' + album
555 console.info('getHiddenAlbumsViewCallback successfully, album name: ' + album.albumName);
909 // Obtain the uri of the album
5026 placeBefore(album: Album): void;
5038 | album | [Album](#album) | 是 | 目标相册。如果要将当前相册排序到末位,则目标相册传入null。 |
5124 constructor(album: Album)
5136 | album | [Album](#album) | 是 | 智慧相册。 |
5212 if (album != undefined) {
5270 if (album != undefined) {
[all …]
/ohos5.0/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dmedia_album_change_request_napi.h48 …bool operator()(const std::shared_ptr<PhotoAlbum>& album, const std::shared_ptr<PhotoAlbum>& album… in operator()
50 if (album == nullptr || albumCmp == nullptr) { in operator()
51 return album < albumCmp; in operator()
53 return album->GetAlbumId() < albumCmp->GetAlbumId(); in operator()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_media_avsession_metadata_adapter_impl.cpp47 void ArkMediaAVSessionMetadataAdapterImpl::SetAlbum(const ArkWebString& album) in SetAlbum() argument
49 real_->SetAlbum(ArkWebStringStructToClass(album)); in SetAlbum()
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/
H A DTestMeta.cpp98 std::string album("album"); variable
101 meta.Set<Tag::MEDIA_ALBUM>(album);
118 std::string album("album"); variable
121 meta.Set<Tag::MEDIA_ALBUM>(album);

12345