Класс GCKUIImageHints
Объект, который предоставляет подсказки GCKUIImagePicker о типе и размере изображения, которое должно быть выбрано для отображения в пользовательском интерфейсе.
- С
- 3.0
Наследует NSObject, <NSCopying> и <NSSecureCoding>.
Удобный инициализатор.
Устанавливает пользовательские данные в nil
.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
( GCKMediaMetadataImageType ) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(nullable NSObject< NSSecureCoding > *) |
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<NSSecureCoding>*) customData |
|
read nonatomic copy |
Дополнительные пользовательские данные, которые можно использовать для идентификации изображения.
Он должен соответствовать кодированию «ключ-значение».
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-10 UTC.
[null,null,["Последнее обновление: 2025-01-10 UTC."],[[["`GCKUIImageHints` provides hints to `GCKUIImagePicker` about the desired image type and size for UI display."],["It includes properties for image type, size, and optional custom data for image identification."],["Developers can use provided initializers to create `GCKUIImageHints` instances with desired attributes."],["The `customData` property can be leveraged by custom `GCKUIImagePicker` implementations for image selection logic."],["This class helps optimize image selection for display within Cast-enabled applications."]]],["The `GCKUIImageHints` class provides image selection hints to a `GCKUIImagePicker`. Key actions include initializing the object with `-initWithImageType:imageSize:` or `-initWithImageType:imageSize:customData:`, the later being the designated initializer. Information includes `imageType` to specify the type, `imageSize` indicating display dimensions, and optional `customData` for unique image identification, compliant with key-value coding. These properties help determine the suitable image to display in the user interface.\n"]]