Classe GCKUIImageHints
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Un oggetto che fornisce suggerimenti a un GCKUIImagePicker sul tipo e sulle dimensioni di un'immagine da selezionare per la visualizzazione nell'interfaccia utente.
- Dal
- 3.0
Eredita NSObject, <NSCopying> e <NSCoding>.
Inizializzatore di convenienza.
Imposta i dati personalizzati su nil
.
- Parameters
-
imageType | The image type. |
imageSize | The image size. |
- (instancetype) initWithImageType: |
|
(GCKMediaMetadataImageType) |
imageType |
imageSize: |
|
(CGSize) |
imageSize |
customData: |
|
(NSObject< NSCoding > *__nullable) |
customData |
|
|
| |
Inizializzatore designato.
- 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. |
La dimensione in cui verrà visualizzata l'immagine.
- (NSObject<NSCoding>*) customData |
|
readnonatomiccopy |
Dati personalizzati facoltativi che possono essere utilizzati per identificare l'immagine.
Deve essere conforme alla codifica chiave-valore.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-26 UTC."],[[["`GCKUIImageHints` provides hints to `GCKUIImagePicker` about the desired image type and size for UI display."],["It includes properties for image type, image size, and optional custom data for image identification."],["Developers can use initializers to create `GCKUIImageHints` instances with specified image type, size, and custom data."],["The `customData` property allows developers to pass arbitrary data to the `GCKUIImagePicker` for custom image selection logic."]]],["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"]]