आपको Google Photos Library API का लेगसी दस्तावेज़ दिख रहा है.
AlbumPosition
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी एल्बम में कोई स्थिति बताता है.
JSON के काेड में दिखाना |
{
"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 .
} |
फ़ील्ड |
position |
enum (PositionType )
मीडिया या बेहतर बनाने वाले आइटम के लिए, पोज़िशन का टाइप.
|
यूनियन फ़ील्ड relative_item . वह आइटम जिससे पोज़िशन की जानकारी मिलती है. इसे सिर्फ़ तब सेट करना चाहिए, जब पोज़िशन टाइप AFTER_MEDIA_ITEM या AFTER_ENRICHMENT_ITEM का इस्तेमाल किया जा रहा हो. relative_item इनमें से कोई एक हो सकता है: |
relativeMediaItemId |
string
वह मीडिया आइटम जिससे जगह की जानकारी जुड़ी है. इसका इस्तेमाल सिर्फ़ तब किया जाता है, जब पोज़िशन टाइप AFTER_MEDIA_ITEM हो.
|
relativeEnrichmentItemId |
string
वह बेहतर जानकारी वाला आइटम जिसकी तुलना में पोज़िशन तय की जाती है. इसका इस्तेमाल सिर्फ़ तब किया जाता है, जब स्थिति का टाइप बाद_ENRICHMENT_ITEM होता है.
|
PositionType
एल्बम में फ़ोटो की संभावित जगहें.
Enums |
POSITION_TYPE_UNSPECIFIED |
अगर यह वैल्यू सेट नहीं है, तो डिफ़ॉल्ट वैल्यू. |
FIRST_IN_ALBUM |
एल्बम की शुरुआत में. |
LAST_IN_ALBUM |
एल्बम के आखिर में. |
AFTER_MEDIA_ITEM |
मीडिया आइटम के बाद. |
AFTER_ENRICHMENT_ITEM |
बेहतर बनाने वाले आइटम के बाद. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eAlbumPosition\u003c/code\u003e defines the position of media or enrichment items within an album using the \u003ccode\u003ePositionType\u003c/code\u003e enum.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePositionType\u003c/code\u003e includes options for positioning items at the beginning, end, or relative to other media or enrichment items within the album.\u003c/p\u003e\n"],["\u003cp\u003eWhen specifying positions relative to other items, \u003ccode\u003erelativeMediaItemId\u003c/code\u003e or \u003ccode\u003erelativeEnrichmentItemId\u003c/code\u003e must be used depending on the item type.\u003c/p\u003e\n"]]],["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"],null,["# AlbumPosition\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PositionType](#PositionType)\n\nSpecifies a position in an album.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"position\": enum (/photos/library/legacy/reference/rest/v1/AlbumPosition#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`. } ``` |\n\n| Fields ||\n|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `position` | `enum (`[PositionType](/photos/library/legacy/reference/rest/v1/AlbumPosition#PositionType)`)` Type of position, for a media or enrichment item. |\n| Union field `relative_item`. The item to which the position is relative to. This must be set only if using position type `AFTER_MEDIA_ITEM` or `AFTER_ENRICHMENT_ITEM`. `relative_item` can be only one of the following: ||\n| `relativeMediaItemId` | `string` The media item to which the position is relative to. Only used when position type is AFTER_MEDIA_ITEM. |\n| `relativeEnrichmentItemId` | `string` The enrichment item to which the position is relative to. Only used when position type is AFTER_ENRICHMENT_ITEM. |\n\nPositionType\n------------\n\nPossible positions in an album.\n\n| Enums ||\n|-----------------------------|---------------------------------------|\n| `POSITION_TYPE_UNSPECIFIED` | Default value if this enum isn't set. |\n| `FIRST_IN_ALBUM` | At the beginning of the album. |\n| `LAST_IN_ALBUM` | At the end of the album. |\n| `AFTER_MEDIA_ITEM` | After a media item. |\n| `AFTER_ENRICHMENT_ITEM` | After an enrichment item. |"]]