GCKMediaTrack 類別

GCKMediaTrack 類別參考資料

總覽

代表媒體軌的類別。

這個物件的例項不會變更。

繼承 NSObject、<NSCopying> 和 <NSCoding>。

執行個體方法摘要

(instancetype) - initWithIdentifier:contentIdentifier:contentType:type:textSubtype:name:languageCode:customData:
 指定初始化器。更多...
 

房源摘要

NSInteger identifier
 曲目的專屬數字 ID。更多...
 
NSString * contentIdentifier
 曲目的內容 ID,可能為 nil更多...
 
NSString * contentType
 曲目的內容 (MIME) 類型。更多...
 
GCKMediaTrackType type
 軌道類型。更多...
 
GCKMediaTextTrackSubtype textSubtype
 文字軌的子類型,僅適用於文字軌。更多...
 
NSString * name
 測試群組名稱,可能是「nil」。更多...
 
NSString * languageCode
 曲目的 RFC 1766 語言代碼,可能為 nil更多...
 
id customData
 自訂資料 (如有)。更多...
 

方法詳細資料

- (instancetype) initWithIdentifier: (NSInteger)  identifier
contentIdentifier: (NSString *__nullable)  contentIdentifier
contentType: (NSString *)  contentType
type: (GCKMediaTrackType type
textSubtype: (GCKMediaTextTrackSubtype textSubtype
name: (NSString *__nullable)  name
languageCode: (NSString *__nullable)  languageCode
customData: (id __nullable)  customData 

指定初始化器。

使用指定屬性值建構新的 GCKMediaTrack

資源詳細資料

- (NSInteger) identifier
readnonatomicassign

曲目的專屬數字 ID。

- (NSString*) contentIdentifier
readnonatomiccopy

曲目的內容 ID,可能為 nil

- (NSString*) contentType
readnonatomiccopy

曲目的內容 (MIME) 類型。

- (GCKMediaTrackType) type
readnonatomicassign

軌道類型。

- (GCKMediaTextTrackSubtype) textSubtype
readnonatomicassign

文字軌的子類型,僅適用於文字軌。

- (NSString*) name
readnonatomiccopy

測試群組名稱,可能是「nil」。

- (NSString*) languageCode
readnonatomiccopy

曲目的 RFC 1766 語言代碼,可能為 nil

- (id) customData
readnonatomicstrong

自訂資料 (如有)。

必須是可使用 NSJSONSerialization 序列化為 JSON 的物件,或是 nil