GCKUIImageHints Sınıfı
Kullanıcı arayüzünde gösterilmek üzere seçilecek bir resmin türü ve boyutu hakkında GCKUIImagePicker öğesine ipuçları sağlayan bir nesnedir.
- yılından beri
- 3,0
NSNesne, <NSKopyalama> ve <NSSecureCoding> öğelerini devralır.
Kolaylık başlatıcı.
Özel verileri nil
olarak ayarlar.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
(GCKMediaMetadataImageType) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(nullable NSObject< NSSecureCoding > *) |
customData |
|
|
| |
Tanımlanmış başlatıcı.
- 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. |
Resmin gösterileceği boyut.
- (NSObject<NSSecureCoding>*) customData |
|
readnonatomiccopy |
Resmi tanımlamak için kullanılabilecek isteğe bağlı özel veriler.
Anahtar/değer kodlamasıyla uyumlu olmalıdır.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-02 UTC.
[null,null,["Son güncelleme tarihi: 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"]]