שיעור GCKMediaTrack
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחלקת ייצוג של רצועת מדיה.
מופעים של האובייקט הזה הם בלתי ניתנים לשינוי.
המחלקות האלה יורשות מ-NSObject, <NSCopying> ו-<NSCoding>.
- (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 |
|
|
| |
המזהה המספרי הייחודי של הרצועה.
- (NSString*) contentIdentifier |
|
readnonatomiccopy |
מזהה התוכן של הטראק, שעשוי להיות nil
.
- (NSString*) contentType |
|
readnonatomiccopy |
סוג התוכן (MIME) של רצועת האודיו.
סוג המשנה של רצועת הטקסט; רלוונטי רק לרצועות טקסט.
שם הטראק, שיכול להיות nil
.
- (NSString*) languageCode |
|
readnonatomiccopy |
קוד השפה של הרצועה בתקן RFC 1766, שיכול להיות nil
.
הנתונים בהתאמה אישית, אם יש כאלה.
הערך חייב להיות אובייקט שאפשר לבצע לו סריאליזציה ל-JSON באמצעות NSJSONSerialization, או nil
.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],["The `GCKMediaTrack` class represents an immutable media track with properties like a unique numeric identifier, content identifier, content type (MIME), track type, text subtype, name, language code, and custom data. It provides a designated initializer (`initWithIdentifier`) to construct a new instance, defining all track properties. Each property, including identifier, content, and name, is described. Custom data can be stored, which must be serializable to JSON.\n"],null,[]]