<GCKUIImagePicker> প্রোটোকল
একটি 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2022-12-05 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2022-12-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["`GCKUIImagePicker` is a protocol used for selecting images from `GCKMediaMetadata` for display in the Google Cast user interface."],["A default implementation selects the first image from the metadata, but applications can provide a custom implementation for more nuanced image selection."],["The `getImageWithHints:fromMetadata:` method is the core functionality, allowing developers to retrieve an image based on specified criteria (hints) from the metadata."],["By setting the `GCKCastContext::imagePicker` property, developers can customize how images are selected for their Cast application's UI elements."]]],["The `GCKUIImagePicker` protocol is used to select an image from `GCKMediaMetadata`. By default, the framework selects the first image. Applications can implement custom selection logic by setting `GCKCastContext::imagePicker`. The core action is the `getImageWithHints:fromMetadata:` method, which takes `GCKUIImageHints` and `GCKMediaMetadata` as parameters to determine the image. The method returns the selected `GCKImage` or `nil` if no suitable image is found.\n"]]