GCKImage 类

GCKImage 类参考

概览

表示位于网络服务器上的图片的类。

用于 GCKDevice 图标和 GCKMediaMetadata 图片等。

继承自 NSObject、<NSCopying> 和 <NSCoding>。

实例方法摘要

(instancetype) - initWithURL:width:height:
 使用给定的网址和尺寸构造新的 GCKImage更多…
 
(instancetype) - init
 默认初始化程序不可用。更多…
 

房源摘要

NSURL * URL
 图片网址。更多…
 
NSInteger width
 图片宽度(以像素为单位)。更多…
 
NSInteger height
 图片高度(以像素为单位)。更多…
 

方法详细信息

- (instancetype) initWithURL: (NSURL *)  URL
width: (NSInteger)  width
height: (NSInteger)  height 

使用给定的网址和尺寸构造新的 GCKImage

指定初始化程序。

Parameters
URLThe URL of the image.
widthThe width of the image, in pixels.
heightThe height of the image, in pixels.
异常
NSInvalidArgumentException如果网址为 nil 或为空,或者维度无效,则会引发该错误。
- (instancetype) init

默认初始化程序不可用。

媒体资源详情

- (NSURL*) URL
readnonatomicstrong

图片网址。

- (NSInteger) width
readnonatomicassign

图片宽度(以像素为单位)。

- (NSInteger) height
readnonatomicassign

图片高度(以像素为单位)。