שיעור GCKMediaTextTrackStyle
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחלקה שמייצגת סגנון לטראק של מדיה בטקסט.
ירש את NSObject, <NS Copy> ו-<NSSecureCoding>.
|
(instancetype) | + createDefault |
| יוצרת מכונה עם ערכי ברירת מחדל על סמך הגדרות הכתוביות במערכת. עוד...
|
|
מאתחל ייעודי.
כל הנכסים ניתנים לשינוי ולכן ניתן לספק אותם לאחר הבנייה.
+ (instancetype) createDefault |
|
|
|
יוצרת מכונה עם ערכי ברירת מחדל על סמך הגדרות הכתוביות במערכת.
השיטה הזו תחזיר אפס במערכות ישנות מ-iOS 7.
גורם שינוי גודל הגופן של הטקסט.
- (GCKMediaTextTrackStyleEdgeType) edgeType |
|
readwritenonatomicassign |
- (GCKMediaTextTrackStyleWindowType) windowType |
|
readwritenonatomicassign |
סוג החלון.
יכול להיות שחלק ממכשירי המקלט לא תומכים במאפיין הזה.
צבע החלון.
יכול להיות שחלק ממכשירי המקלט לא תומכים במאפיין הזה.
- (CGFloat) windowRoundedCornerRadius |
|
readwritenonatomicassign |
ערך מוחלט של רדיוס פינה מעוגלת בפיקסלים.
יכול להיות שחלק ממכשירי המקלט לא תומכים במאפיין הזה.
משפחת הגופנים. אם הגופן אינו זמין, ייעשה שימוש במשפחת הגופנים הגנרית.
- (GCKMediaTextTrackStyleFontGenericFamily) fontGenericFamily |
|
readwritenonatomicassign |
- (GCKMediaTextTrackStyleFontStyle) fontStyle |
|
readwritenonatomicassign |
הנתונים המותאמים אישית, אם יש כאלה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eGCKMediaTextTrackStyle\u003c/code\u003e is a class that manages the style of text media tracks, inheriting from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSSecureCoding\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers customization options like font scale, colors (foreground, background, edge, window), edge type, window type, font family, style, and rounded corner radius for the window.\u003c/p\u003e\n"],["\u003cp\u003eYou can initialize an instance with default values based on system settings using \u003ccode\u003ecreateDefault\u003c/code\u003e or customize properties after initializing with \u003ccode\u003einit\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSome attributes like \u003ccode\u003ewindowType\u003c/code\u003e, \u003ccode\u003ewindowColor\u003c/code\u003e, and \u003ccode\u003ewindowRoundedCornerRadius\u003c/code\u003e might not be supported by all receiver devices.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecustomData\u003c/code\u003e property allows developers to associate any custom data with the text track style.\u003c/p\u003e\n"]]],["The `GCKMediaTextTrackStyle` class manages the styling of text media tracks. It allows for creating text track styles with customizable properties. You can initialize a new style or create a default style based on system settings. Properties include: font scaling, foreground/background/edge/window colors, edge and window types, rounded corner radius for the window, font family, generic font family, font style, and custom data. All properties are mutable after initialization.\n"],null,[]]