GCKUIImageHints Class
Stay organized with collections
Save and categorize content based on your preferences.
An object that provides hints to a GCKUIImagePicker about the type and size of an image to be selected for display in the UI.
- Since
- 3.0
Inherits NSObject, <NSCopying>, and <NSCoding>.
Convenience initializer.
Sets the custom data to nil
.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
(GCKMediaMetadataImageType) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(NSObject< NSCoding > *__nullable) |
customData |
|
|
| |
Designated initializer.
- 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. |
The size at which the image will be displayed.
- (NSObject<NSCoding>*) customData |
|
readnonatomiccopy |
Optional custom data that can be used to identify the image.
It must be key-value coding compliant.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eGCKUIImageHints\u003c/code\u003e provides hints to \u003ccode\u003eGCKUIImagePicker\u003c/code\u003e about the desired image type and size for UI display.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for image type, image size, and optional custom data for image identification.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use initializers to create \u003ccode\u003eGCKUIImageHints\u003c/code\u003e instances with specified image type, size, and custom data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecustomData\u003c/code\u003e property allows developers to pass arbitrary data to the \u003ccode\u003eGCKUIImagePicker\u003c/code\u003e for custom image selection logic.\u003c/p\u003e\n"]]],["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"],null,["# GCKUIImageHints Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKUIImageHints Class Reference \n\nOverview\n--------\n\nAn object that provides hints to a [GCKUIImagePicker](/cast/v3/reference/ios/protocol_g_c_k_u_i_image_picker-p \"An object used for selecting an image for a given purpose from a GCKMediaMetadata object...\") about the type and size of an image to be selected for display in the UI.\n\nSince\n: 3.0\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSCoding\\\u003e.\n\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - [initWithImageType:imageSize:](/cast/v3/reference/ios/interface_g_c_k_u_i_image_hints#acede4f0eb0c9659da591448d7dd5f855) |\n| | Convenience initializer. [More...](#acede4f0eb0c9659da591448d7dd5f855) |\n| ||\n| (instancetype) | - [initWithImageType:imageSize:customData:](/cast/v3/reference/ios/interface_g_c_k_u_i_image_hints#a04b12d7d27d397c05a92c47a975428dd) |\n| | Designated initializer. [More...](#a04b12d7d27d397c05a92c47a975428dd) |\n| ||\n\n|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| [GCKMediaMetadataImageType](/cast/v3/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8) | [imageType](/cast/v3/reference/ios/interface_g_c_k_u_i_image_hints#a4a31f0af741972a760ae23785452b414) |\n| | The image type. [More...](#a4a31f0af741972a760ae23785452b414) |\n| ||\n| CGSize | [imageSize](/cast/v3/reference/ios/interface_g_c_k_u_i_image_hints#ad21984455c091ed204738b1ec9714c6a) |\n| | The size at which the image will be displayed. [More...](#ad21984455c091ed204738b1ec9714c6a) |\n| ||\n| NSObject\\\u003c NSCoding \\\u003e \\* | [customData](/cast/v3/reference/ios/interface_g_c_k_u_i_image_hints#a617b9d51e5b7e13ef9d415a41130c333) |\n| | Optional custom data that can be used to identify the image. [More...](#a617b9d51e5b7e13ef9d415a41130c333) |\n| ||\n\nMethod Detail\n-------------\n\n|-------------------------------------|---|------------------------------------------------------------------------------------------------------------------|-------------|\n| - (instancetype) initWithImageType: | | ([GCKMediaMetadataImageType](/cast/v3/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8)) | *imageType* |\n| imageSize: | | (CGSize) | *imageSize* |\n| | | | |\n\nConvenience initializer.\n\nSets the custom data to `nil`.\n\nParameters\n:\n\n |-----------|-----------------|\n | imageType | The image type. |\n | imageSize | The image size. |\n\n\n|-------------------------------------|---|------------------------------------------------------------------------------------------------------------------|--------------|\n| - (instancetype) initWithImageType: | | ([GCKMediaMetadataImageType](/cast/v3/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8)) | *imageType* |\n| imageSize: | | (CGSize) | *imageSize* |\n| customData: | | (NSObject\\\u003c NSCoding \\\u003e \\*__nullable) | *customData* |\n| | | | |\n\nDesignated initializer.\n\nParameters\n:\n\n |------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | imageType | The image type. |\n | imageSize | The image size. |\n | customData | The arbitrary custom data that can be used by a custom [GCKUIImagePicker](/cast/v3/reference/ios/protocol_g_c_k_u_i_image_picker-p \"An object used for selecting an image for a given purpose from a GCKMediaMetadata object...\") to select an image. |\n\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| |------------------------------------------------------------------------------------------------------------------------------| | - ([GCKMediaMetadataImageType](/cast/v3/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8)) imageType | | readnonatomicassign |\n\nThe image type. \n\n|---------------------------------------------------|---------------------|\n| |----------------------| | - (CGSize) imageSize | | readnonatomicassign |\n\nThe size at which the image will be displayed. \n\n|-------------------------------------------------------------------------------------|-------------------|\n| |---------------------------------------| | - (NSObject\\\u003cNSCoding\\\u003e\\*) customData | | readnonatomiccopy |\n\nOptional custom data that can be used to identify the image.\n\nIt must be key-value coding compliant."]]