کلاس GCKUIImageHints
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
شیئی که نکاتی را در مورد نوع و اندازه تصویری که برای نمایش در رابط کاربری انتخاب می شود به GCKUIImagePicker ارائه می دهد.
- از آنجایی که
- 3.0
NSObject، <NSCopying> و <NSCoding> را به ارث می برد.
اولیه ساز راحتی
داده های سفارشی را روی nil
تنظیم می کند.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
( GCKMediaMetadataImageType ) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(NSObject< NSCoding > *__nullable) |
customData |
|
|
| |
مقداردهی اولیه تعیین شده
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
customData | The arbitrary custom data that can be used by a custom GCKUIImagePicker to select an image. |
اندازه ای که تصویر در آن نمایش داده می شود.
- (NSObject<NSCoding>*) customData |
|
read nonatomic copy |
داده های سفارشی اختیاری که می توانند برای شناسایی تصویر استفاده شوند.
باید با کدگذاری با مقدار کلید مطابقت داشته باشد.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-24 بهوقت ساعت هماهنگ جهانی."],[[["`GCKUIImageHints` provides hints to `GCKUIImagePicker` about the desired image type and size for UI display."],["It includes properties for image type, image size, and optional custom data for image identification."],["Developers can use initializers to create `GCKUIImageHints` instances with specified image type, size, and custom data."],["The `customData` property allows developers to pass arbitrary data to the `GCKUIImagePicker` for custom image selection logic."]]],["The `GCKUIImageHints` class provides image selection hints to a `GCKUIImagePicker`. Key actions involve initializing the object with `-initWithImageType:imageSize:` or `-initWithImageType:imageSize:customData:`, which define the desired image type, display size, and optional custom data. This data includes `imageType` to define what type of image is needed, `imageSize` specifying display dimensions, and `customData` for arbitrary, coder-compliant information for custom image selection logic.\n"]]