# GCKUIImageHints Class

[Instance Methods](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#pub-methods) \| [Properties](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#properties) GCKUIImageHints Class Reference

## Overview

An object that provides hints to a [GCKUIImagePicker](https://developers.google.com/cast/docs/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.

Since
:   3.0

Inherits NSObject, \<NSCopying\>, and \<NSSecureCoding\>.

|---|---|
| ## Instance Method Summary ||
| (instancetype) | - [initWithImageType:imageSize:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#acede4f0eb0c9659da591448d7dd5f855) |
|   | Convenience initializer. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#acede4f0eb0c9659da591448d7dd5f855) |
|   ||
| (instancetype) | - [initWithImageType:imageSize:customData:](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#a261c4b1b23155b8aa7e4b54faa7349e9) |
|   | Designated initializer. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#a261c4b1b23155b8aa7e4b54faa7349e9) |
|   ||

|---|---|
| ## Property Summary ||
| [GCKMediaMetadataImageType](https://developers.google.com/cast/docs/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8) | [imageType](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#a4a31f0af741972a760ae23785452b414) |
|   | The image type. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#a4a31f0af741972a760ae23785452b414) |
|   ||
| CGSize | [imageSize](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#ad21984455c091ed204738b1ec9714c6a) |
|   | The size at which the image will be displayed. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#ad21984455c091ed204738b1ec9714c6a) |
|   ||
| NSObject\< NSSecureCoding \> \* | [customData](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#a27a229a3843e96e1d995d5e20d7580dc) |
|   | Optional custom data that can be used to identify the image. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_image_hints#a27a229a3843e96e1d995d5e20d7580dc) |
|   ||

## Method Detail

|---|---|---|---|
| - (instancetype) initWithImageType: |   | ([GCKMediaMetadataImageType](https://developers.google.com/cast/docs/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8)) | *imageType* |
| imageSize: |   | (CGSize) | *imageSize* |
|   |   |   |   |

Convenience initializer.

Sets the custom data to `nil`.

Parameters
:

    |---|---|
    | imageType | The image type. |
    | imageSize | The image size. |


|---|---|---|---|
| - (instancetype) initWithImageType: |   | ([GCKMediaMetadataImageType](https://developers.google.com/cast/docs/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8)) | *imageType* |
| imageSize: |   | (CGSize) | *imageSize* |
| customData: |   | (nullable NSObject\< NSSecureCoding \> \*) | *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](https://developers.google.com/cast/docs/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. |


## Property Detail

|---|---|
| |---| | - ([GCKMediaMetadataImageType](https://developers.google.com/cast/docs/reference/ios/g_c_k_u_i_image_hints_8h#a31bf487ba9561c0c807a4ee3a42676d8)) imageType | | readnonatomicassign |

The image type.

|---|---|
| |---| | - (CGSize) imageSize | | readnonatomicassign |

The size at which the image will be displayed.

|---|---|
| |---| | - (NSObject\<NSSecureCoding\>\*) customData | | readnonatomiccopy |

Optional custom data that can be used to identify the image.

It must be key-value coding compliant.