總覽
代表網路伺服器中圖片的類別。
用於 GCKDevice 圖示和 GCKMediaMetadata 圖片等內容。
繼承 NSObject、<NSclone> 和 <NSSecureCoding>。
執行個體方法摘要 | |
(instancetype) | - initWithURL:width:height: |
以指定網址和尺寸建構新的 GCKImage。更多... | |
(instancetype) | - init |
無法使用預設初始化器。更多... | |
方法詳細資料
- (instancetype) initWithURL: | (NSURL *) | URL | |
width: | (NSInteger) | width | |
height: | (NSInteger) | height | |
以指定網址和尺寸建構新的 GCKImage。
指定初始化器。
- Parameters
-
URL The URL of the image. width The width of the image, in pixels. height The height of the image, in pixels.
- 例外狀況
-
NSInvalidArgumentException 表示網址為 nil
或空白,或是尺寸無效。
- (instancetype) init |
無法使用預設初始化器。
資源詳情
|
readnonatomicstrong |
圖片網址。
|
readnonatomicassign |
圖片的寬度,以像素為單位。
|
readnonatomicassign |
圖片的高度,以像素為單位。