Google Photos Library API ile ilgili eski dokümanları görüntülüyorsunuz.
AlbumPosition
Albümdeki bir konumu belirtir.
JSON gösterimi |
{
"position": enum (PositionType ),
// Union field relative_item can be only one of the following:
"relativeMediaItemId": string,
"relativeEnrichmentItemId": string
// End of list of possible types for union field relative_item .
} |
Alanlar |
position |
enum (PositionType )
Medya veya zenginleştirme öğesi için konum türü.
|
Birlik alanı relative_item . Konumun göreli olduğu öğe. Bu, yalnızca AFTER_MEDIA_ITEM veya AFTER_ENRICHMENT_ITEM konum türü kullanılıyorsa ayarlanmalıdır. relative_item şunlardan yalnızca biri olabilir: |
relativeMediaItemId |
string
Konumun göreli olduğu medya öğesi. Yalnızca konum türü FALSE_MEDIA_ITEM olduğunda kullanılır.
|
relativeEnrichmentItemId |
string
Konumun göreli olduğu zenginleştirme öğesi. Yalnızca konum türü RESULTS_ENRICHMENT_ITEM olduğunda kullanılır.
|
PositionType
Bir albümdeki olası konumlar.
Sıralamalar |
POSITION_TYPE_UNSPECIFIED |
Bu numaralandırma ayarlanmazsa varsayılan değer. |
FIRST_IN_ALBUM |
Albümün başında. |
LAST_IN_ALBUM |
Albümün sonunda. |
AFTER_MEDIA_ITEM |
Bir medya öğesinden sonra. |
AFTER_ENRICHMENT_ITEM |
Bir zenginleştirme öğesinden sonra. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-12 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-12 UTC."],[[["`AlbumPosition` defines the position of media or enrichment items within an album using the `PositionType` enum."],["`PositionType` includes options for positioning items at the beginning, end, or relative to other media or enrichment items within the album."],["When specifying positions relative to other items, `relativeMediaItemId` or `relativeEnrichmentItemId` must be used depending on the item type."]]],["The core content describes how to specify a position within an album using JSON. A position is defined by a `position` type, which can be `FIRST_IN_ALBUM`, `LAST_IN_ALBUM`, `AFTER_MEDIA_ITEM`, or `AFTER_ENRICHMENT_ITEM`. If the position is after an existing item, a `relative_item` union field, containing either `relativeMediaItemId` or `relativeEnrichmentItemId`, specifies that item's ID. `POSITION_TYPE_UNSPECIFIED` is used if position type is not specified.\n"]]