AI-generated Key Takeaways
-
GCKImage is a class representing an image located on a web server, used for things like device icons and media artwork.
-
It has an initializer
initWithURL:width:height:to create an image with a given URL and dimensions. -
The default initializer
initis not available for this class. -
The properties available are
URL,width, andheight.
Overview
A class that represents an image that is located on a web server.
Used for such things as GCKDevice icons and GCKMediaMetadata artwork.
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Instance Method Summary | |
| (instancetype) | - initWithURL:width:height: |
| Constructs a new GCKImage with the given URL and dimensions. More... | |
| (instancetype) | - init |
| Default initializer is not available. More... | |
Property Summary | |
| NSURL * | URL |
| The image URL. More... | |
| NSInteger | width |
| The image width, in pixels. More... | |
| NSInteger | height |
| The image height, in pixels. More... | |
Method Detail
| - (instancetype) initWithURL: | (NSURL *) | URL | |
| width: | (NSInteger) | width | |
| height: | (NSInteger) | height | |
Constructs a new GCKImage with the given URL and dimensions.
Designated initializer.
- Parameters
-
URL The URL of the image. width The width of the image, in pixels. height The height of the image, in pixels.
- Exceptions
-
NSInvalidArgumentException if the URL is nilor empty, or the dimensions are invalid.
| - (instancetype) init |
Default initializer is not available.
Property Detail
|
readnonatomicstrong |
The image URL.
|
readnonatomicassign |
The image width, in pixels.
|
readnonatomicassign |
The image height, in pixels.