GCKImage-Klasse
Eine Klasse, die ein Bild darstellt, das sich auf einem Webserver befindet.
Wird für Elemente wie GCKDevice-Symbole und GCKMediaMetadata-Artwork verwendet.
Übernimmt NSObject, <NSKopieren> und <NSSecureCoding>.
- (instancetype) initWithURL: |
|
(NSURL *) |
URL |
width: |
|
(NSInteger) |
width |
height: |
|
(NSInteger) |
height |
|
|
| |
Erstellt ein neues GCKImage-Objekt mit der angegebenen URL und den angegebenen Abmessungen.
Definierter Initialisierer.
- Parameters
-
URL | The URL of the image. |
width | The width of the image, in pixels. |
height | The height of the image, in pixels. |
- Ausnahmen
-
NSInvalidArgumentException | Die URL ist nil , leer oder die Abmessungen sind ungültig. |
Standardinitialisierer ist nicht verfügbar.
Die Bildbreite in Pixeln.
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)."],[[["The `GCKImage` class represents an image located on a web server, used for elements like device icons and media metadata artwork."],["It provides methods for initialization with a URL and dimensions, specifying the image's location and size."],["Key properties include `URL`, `width`, and `height`, offering access to the image's web address and pixel dimensions."],["The default initializer is unavailable; you must use the designated initializer with URL and dimensions."]]],["The GCKImage class represents a web-hosted image, used for elements like device icons and media artwork. Key actions include initializing a GCKImage object with `initWithURL:width:height:`, providing the image's URL, width, and height in pixels. The default initializer `init` is unavailable. Properties include `URL` for the image's location, `width` for pixel width, and `height` for pixel height. Initialization with an invalid URL or dimensions will throw an exception.\n"]]