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
वह मीडिया आइटम जिसकी तुलना में पोज़िशन तय की जा रही है. इसका इस्तेमाल सिर्फ़ तब किया जाता है, जब स्थिति का टाइप बाद_MEDIA_ITEM होता है.
|
relativeEnrichmentItemId |
string
वह बेहतर आइटम जिससे स्थिति जुड़ी है. इसका इस्तेमाल सिर्फ़ तब किया जाता है, जब पोज़िशन टाइप AFTER_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) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eAlbumPosition\u003c/code\u003e defines the position of media or enrichment items within a Google Photos album.\u003c/p\u003e\n"],["\u003cp\u003eIt offers five position types: \u003ccode\u003ePOSITION_TYPE_UNSPECIFIED\u003c/code\u003e, \u003ccode\u003eFIRST_IN_ALBUM\u003c/code\u003e, \u003ccode\u003eLAST_IN_ALBUM\u003c/code\u003e, \u003ccode\u003eAFTER_MEDIA_ITEM\u003c/code\u003e, and \u003ccode\u003eAFTER_ENRICHMENT_ITEM\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFor positions relative to other items (\u003ccode\u003eAFTER_MEDIA_ITEM\u003c/code\u003e, \u003ccode\u003eAFTER_ENRICHMENT_ITEM\u003c/code\u003e), you must specify the ID of the relative media or enrichment item.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation includes the \u003ccode\u003eposition\u003c/code\u003e type and, if necessary, the ID of the relative item (\u003ccode\u003erelativeMediaItemId\u003c/code\u003e or \u003ccode\u003erelativeEnrichmentItemId\u003c/code\u003e).\u003c/p\u003e\n"]]],["The content defines how to specify a position within an album using a JSON structure. It uses a `position` field with an enumerated type (`PositionType`) that can be `FIRST_IN_ALBUM`, `LAST_IN_ALBUM`, `AFTER_MEDIA_ITEM`, or `AFTER_ENRICHMENT_ITEM`. If positioning after an item, either `relativeMediaItemId` or `relativeEnrichmentItemId` must be specified in the `relative_item` union field to identify the referenced media or enrichment item.\n"],null,[]]