Class GCKUIImageHints
Objek yang memberikan petunjuk ke GCKUIImagePicker tentang jenis dan ukuran gambar yang akan dipilih untuk ditampilkan di UI.
- Sejak
- 3,0
Mewarisi NSObject, <NSWriting>, dan <NSSecureCoding>.
Penginisialisasi praktis.
Menetapkan data kustom ke nil
.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
(GCKMediaMetadataImageType) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(nullable NSObject< NSSecureCoding > *) |
customData |
|
|
| |
Penginisialisasi yang ditetapkan.
- 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. |
Ukuran gambar akan ditampilkan.
- (NSObject<NSSecureCoding>*) customData |
|
readnonatomiccopy |
Data kustom opsional yang dapat digunakan untuk mengidentifikasi gambar.
Harus sesuai dengan coding nilai kunci.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2023-12-02 UTC.
[null,null,["Terakhir diperbarui pada 2023-12-02 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"]]