<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 এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-10-30 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"]]