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

圖片高度 (以像素為單位)。