Lines Matching refs:album
3 …** module provides APIs for album management, including creating an album and accessing and modify…
254 Creates an album. This API uses an asynchronous callback to return the result.
256 The album name must meet the following requirements:
257 - The album name cannot exceed 255 characters.
258 - The album name cannot contain any of the following characters:<br>. .. \ / : * ? " ' ` < > | { } …
259 - The album name is case-insensitive.
260 - Duplicate album names are not allowed.
276 | name | string | Yes | Name of the album to create. |
277 | callback | AsyncCallback<[Album](#album)> | Yes | Callback used to return the created alb…
298 phAccessHelper.createAlbum(albumName, (err, album) => {
303 …console.info('createAlbumCallback successfully, album: ' + album.albumName + ' album uri: ' + albu…
312 Creates an album. This API uses a promise to return the result.
314 The album name must meet the following requirements:
315 - The album name cannot exceed 255 characters.
316 - The album name cannot contain any of the following characters:<br>. .. \ / : * ? " ' ` < > | { } …
317 - The album name is case-insensitive.
318 - Duplicate album names are not allowed.
334 | name | string | Yes | Name of the album to create. |
340 | Promise<[Album](#album)> | Promise used to return the created album instance.|
363 phAccessHelper.createAlbum(albumName).then((album) => {
364 …console.info('createAlbumPromise successfully, album: ' + album.albumName + ' album uri: ' + album…
393 | albums | Array<[Album](#album)> | Yes | Albums to delete. |
414 // Delete the album named newAlbumName.
423 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
424 phAccessHelper.deleteAlbums([album], (err) => {
457 | albums | Array<[Album](#album)> | Yes | Albums to delete. |
484 // Delete the album named newAlbumName.
493 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
494 phAccessHelper.deleteAlbums([album]).then(() => {
521 …ck<[FetchResult](js-apis-photoAccessHelper.md#fetchresult)<[Album](#album)>> | Yes | …
539 // Obtain the album newAlbumName that contains hidden files.
554 let album = await fetchResult.getFirstObject();
555 console.info('getHiddenAlbumsViewCallback successfully, album name: ' + album.albumName);
578 …ck<[FetchResult](js-apis-photoAccessHelper.md#fetchresult)<[Album](#album)>> | Yes | …
596 // Obtain the preset hidden album.
610 … hidden albums displayed by album, that is, the albums with hidden files. Such albums do not inclu…
627 // Obtain hidden files in the album.
629 … console.info('album get hidden assets successfully, getCount: ' + assetFetchResult.getCount());
660 | Promise<[FetchResult](js-apis-photoAccessHelper.md#fetchresult)<[Album](#album)>> | P…
679 // Obtain the preset hidden album.
696 … hidden albums displayed by album, that is, the albums with hidden files. Such albums do not inclu…
713 // Obtain hidden files in the album.
715 … console.info('album get hidden assets successfully, getCount: ' + assetFetchResult.getCount());
717 console.error(`album get hidden assets failed with error: ${err.code}, ${err.message}`);
867 Obtains the index of an image or video in an album. This API uses an asynchronous callback to retur…
909 // Obtain the uri of the album
911 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
918 …let photoFetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.ge…
923 phAccessHelper.getPhotoIndex(photoAsset.uri, album.albumUri, fetchOptions, (err, index) => {
940 Obtains the index of an image or video in an album. This API uses a promise to return the result.
988 // Obtain the uri of the album
990 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
997 …let photoFetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.ge…
1001 phAccessHelper.getPhotoIndex(photoAsset.uri, album.albumUri, fetchOptions).then((index) => {
1867 …ivate album. After obtaining private files from the private album, users can set **hiddenState** t…
1928 …ivate album. After obtaining private files from the private album, users can set **hiddenState** t…
1971 …// Restore a file from a hidden album. Before the operation, ensure that the file exists in the hi…
1979 let album = await albumList.getFirstObject();
1980 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3319 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
3320 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3322 album.recoverAssets([asset], (err) => {
3324 console.info('album recoverAssets successfully');
3326 console.error(`album recoverAssets failed with error: ${err.code}, ${err.message}`);
3390 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
3391 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3393 album.recoverAssets([asset]).then(() => {
3394 console.info('album recoverAssets successfully');
3396 console.error(`album recoverAssets failed with error: ${err.code}, ${err.message}`);
3455 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
3456 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3458 album.deleteAssets([asset], (err) => {
3460 console.info('album deleteAssets successfully');
3462 console.error(`album deleteAssets failed with error: ${err.code}, ${err.message}`);
3528 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
3529 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3531 album.deleteAssets([asset]).then(() => {
3532 console.info('album deleteAssets successfully');
3534 console.error(`album deleteAssets failed with error: ${err.code}, ${err.message}`);
3546 Sets the album cover. This API uses an asynchronous callback to return the result.
3552 **NOTE**<br>This API can be used to set the user album cover, but not the system album cover.
3564 | uri | string | Yes | URI of the file to be set as the album cover.|
3593 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
3594 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3596 album.setCoverUri(asset.uri, (err) => {
3598 console.info('album setCoverUri successfully');
3600 console.error(`album setCoverUri failed with error: ${err.code}, ${err.message}`);
3613 Sets the album cover. This API uses a promise to return the result.
3619 **NOTE**<br>This API can be used to set the user album cover, but not the system album cover.
3631 | uri | string | Yes | URI of the file to be set as the album cover.|
3665 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
3666 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
3668 album.setCoverUri(asset.uri).then(() => {
3669 console.info('album setCoverUri successfully');
3671 console.error(`album setCoverUri failed with error: ${err.code}, ${err.message}`);
4461 Provides APIs for managing the media album change request.
4471 The album name must comply with the following specifications:
4472 - The album name cannot exceed 255 characters.
4473 - The album name cannot contain any of the following characters:<br>. .. \ / : * ? " ' ` < > | { } …
4474 - The album name is case-insensitive.
4475 - Duplicate album names are not allowed.
4486 | name | string | Yes | Name of the album.|
4539 | albums | Array<[Album](#album)> | Yes | Albums to delete. |
4572 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
4573 await photoAccessHelper.MediaAlbumChangeRequest.deleteAlbums(context, [album]);
4585 Sets the album cover.
4595 | coverUri | string | Yes | URI of the file to be set as the album cover.|
4621 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
4622 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
4625 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4639 Moves assets to another album.
4677 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
4678 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
4682 console.error('lack of album to be moved into');
4686 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4737 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
4738 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
4741 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4794 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
4795 …let fetchResult: photoAccessHelper.FetchResult<photoAccessHelper.PhotoAsset> = await album.getAsse…
4798 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4812 Sets the display level of the portrait album.
4822 …album.<br>**1**: set the portrait album as the first to display.<br>**2**: do not display the port…
4849 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
4850 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4863 Sets the relationship between people in the portrait album to **Me**.
4894 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
4895 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4908 Removes assets from this portrait album or group photo album.
4946 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
4956 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
4979 | target | [Album](#album) | Yes | Album generated after the merge. The album must be renamed.|
5007 let album: photoAccessHelper.Album = await fetchResult.getFirstObject();
5009 console.error('lack of album to merge');
5014 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
5026 placeBefore(album: Album): void;
5028 Places this album before an album.
5038 | album | [Album](#album) | Yes | Target album. To place this album to the end, set **album** to …
5059 console.error('lack of album to place before');
5077 Removes this group photo album.
5102 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
5104 …: photoAccessHelper.MediaAlbumChangeRequest = new photoAccessHelper.MediaAlbumChangeRequest(album);
5116 Provides APIs for managing the **Highlights** album, which is an automatically generated collection…
5124 constructor(album: Album)
5126 A constructor used to create a **Highlights** album instance.
5136 | album | [Album](#album) | Yes | **Highlights** album to create.|
5162 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
5163 …let highlightAlbum: photoAccessHelper.HighlightAlbum = new photoAccessHelper.HighlightAlbum(album);
5172 Obtains specific information about the **Highlights** album.
5184 | type | [HighlightAlbumInfoType](#highlightalbuminfotype12) | Yes | Type of the album info…
5211 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
5212 if (album != undefined) {
5213 …let highlightAlbum: photoAccessHelper.HighlightAlbum = new photoAccessHelper.HighlightAlbum(album);
5269 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
5270 if (album != undefined) {
5271 …let highlightAlbum: photoAccessHelper.HighlightAlbum = new photoAccessHelper.HighlightAlbum(album);
5286 Sets the user behavior data for the **Highlights** album.
5326 let album: photoAccessHelper.Album = await albumFetchResult.getFirstObject();
5327 if (album != undefined) {
5328 …let highlightAlbum: photoAccessHelper.HighlightAlbum = new photoAccessHelper.HighlightAlbum(album);
5820 Obtains the face identifier on the cover of a portrait album or group photo album.
5832 …; | Promise used to return **tag_id** of the portrait album, **group_tag** of the group photo albu…
5861 let album = await fetchResult?.getFirstObject();
5862 let faceId = await album?.getFaceId();
6187 Enumerates the album types.
6193 | SMART<sup>11+</sup> | 4096 | Smart analysis album. <br>**System API**: This is a system API.|
6197 Enumerate the album subtypes.
6203 | HIDDEN | 1027 | Hidden album. <br>**System API**: This is a syst…
6207 | SOURCE\_GENERIC<sup>11+</sup> | 2049 | Source album. <br>**System API**: This is a syst…
6208 | CLASSIFY<sup>11+</sup> | 4097 | Classified album. <br>**System API**: This is a …
6209 | GEOGRAPHY\_LOCATION<sup>11+</sup> | 4099 | Geographic location album. <br>**System API**: T…
6210 | GEOGRAPHY\_CITY<sup>11+</sup> | 4100 | City album. <br>**System API**: This is a system…
6211 | SHOOTING\_MODE<sup>11+</sup> | 4101 | Shooting mode album. <br>**System API**: This is…
6212 | PORTRAIT<sup>11+</sup> | 4102 | Portrait album. <br>**System API**: This is a sy…
6213 | GROUP_PHOTO<sup>13+</sup> | 4103 | Group photo album. <br>**System API**: This is a…
6214 | HIGHLIGHT<sup>12+</sup> | 4104 | Highlights album. <br>**System API**: This is a …
6215 | HIGHLIGHT_SUGGESTIONS<sup>12+</sup> | 4105 | Highlights suggestion album. <br>**System API**:…
6216 | CLOUD_ENHANCEMENT<sup>13+</sup> | 1032 | AI-powered cloud enhanced album. <br>**System API**:…
6265 …| Display hidden files by album (display all albums that contain hidden files in the system, exclu…
6313 Media change request, which is the parent class of the asset change request and album change reques…
6351 …album in the hidden albums that are displayed by album, that is, the URI of an album with hidden f…
6402 Enumerates the types of the highlights album information.
6415 Enumerates the user behavior types of the highlights album.
6425 …HOT\_COUNT | 2 | Number of times that a full-length image in a highlights album is shared. |
6427 | RENAMED\_COUNT | 4 | Number of times that a highlights album is renamed. |
6429 | RENDER\_VIEWED\_TIMES | 100 | Number of times that the pictures in a highlights album ar…
6430 | RENDER\_VIEWED\_DURATION | 101 | Time used to play the pictures in a highlights album. |
6431 | ART\_LAYOUT\_VIEWED\_TIMES | 102 | Number of times that a highlights album is viewed. |
6432 | ART\_LAYOUT\_VIEWED\_DURATION | 103 | Time used to view a highlights album. |