GCKUIImageHints-Klasse
Ein Objekt, das einem GCKUIImagePicker Hinweise auf den Typ und die Größe eines Bildes liefert, das zur Anzeige in der UI ausgewählt werden soll.
- Seit
- 3,0
Übernimmt NSObject, <NSKopieren> und <NSSecureCoding>.
Praktischer Initialisierer.
Legt die benutzerdefinierten Daten auf nil
fest.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
(GCKMediaMetadataImageType) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(nullable NSObject< NSSecureCoding > *) |
customData |
|
|
| |
Definierter Initialisierer.
- 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. |
Die Größe, in der das Bild angezeigt wird.
- (NSObject<NSSecureCoding>*) customData |
|
readnonatomiccopy |
Optionale benutzerdefinierte Daten, mit denen das Bild identifiziert werden kann.
Er muss mit der Codierung von Schlüssel/Wert-Paaren kompatibel sein.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2023-12-02 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]