<GCKUIImage Picker> प्रोटोकॉल
यह एक ऑब्जेक्ट होता है, जिसका इस्तेमाल किसी खास मकसद के लिए, GCKMediaMetadata ऑब्जेक्ट से इमेज चुनने के लिए किया जाता है.
डिफ़ॉल्ट तौर पर लागू करने का फ़्रेमवर्क, अंदरूनी तौर पर इस्तेमाल किया जाता है. यह फ़्रेमवर्क, हर तरह के इस्तेमाल के लिए, मेटाडेटा में से हमेशा पहली इमेज को चुनता है. ऐप्लिकेशन में GCKCastContext::imagePicker प्रॉपर्टी को सेट करके, अपने हिसाब से लागू करने की सुविधा मिलती है.
- से
- 3.0
<NSObject> को इनहेरिट करता है.
मीडिया मेटाडेटा से किसी खास टाइप की इमेज दिखाता है.
- Parameters
-
imageHints | The hints about how to pick the image. |
metadata | The media metadata to pick from. |
- रिटर्न
- चुनी गई इमेज या अनुरोध किए गए टाइप के हिसाब से सही इमेज न होने पर
nil
.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया."],[[["`GCKUIImagePicker` protocol helps select images from `GCKMediaMetadata` objects for display within the Google Cast framework."],["By default, the first image in the metadata is used, but apps can customize image selection via `GCKCastContext::imagePicker`."],["`getImageWithHints:fromMetadata:` method fetches a specific image type from the metadata based on provided hints."],["If no suitable image is found matching the desired type, this method will return `nil`."]]],["The `GCKUIImagePicker` protocol selects an image from `GCKMediaMetadata`. It has a default implementation that selects the first image. Custom implementations can be provided via `GCKCastContext::imagePicker`. The key method, `getImageWithHints:fromMetadata:`, retrieves an image based on `GCKUIImageHints` from provided metadata. It returns the selected `GCKImage` or `nil` if no suitable image is found. This enables picking specific image types for different purposes.\n"]]