คลาส GCKMediaTextTrackStyle
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คลาสที่แสดงถึงสไตล์ของแทร็กสื่อแบบข้อความ
รับค่า NSObject, <NSCopying> และ <NSSecureCoding>
เครื่องมือเริ่มต้นที่กำหนด
พร็อพเพอร์ตี้ทั้งหมดอาจเปลี่ยนแปลงและพร้อมใช้งานหลังการสร้างแล้ว
+ (instancetype) createDefault |
|
|
|
สร้างอินสแตนซ์ที่มีค่าเริ่มต้นตามการตั้งค่าคำบรรยายของระบบ
วิธีนี้จะแสดงผลเป็น nil ในระบบที่เก่ากว่า iOS 7
ปัจจัยการปรับขนาดแบบอักษรสำหรับข้อความ
- (GCKMediaTextTrackStyleEdgeType) edgeType |
|
readwritenonatomicassign |
- (GCKMediaTextTrackStyleWindowType) windowType |
|
readwritenonatomicassign |
ประเภทหน้าต่าง
อุปกรณ์รับสัญญาณบางอย่างอาจไม่รองรับแอตทริบิวต์นี้
สีของหน้าต่าง
อุปกรณ์รับสัญญาณบางอย่างอาจไม่รองรับแอตทริบิวต์นี้
- (CGFloat) windowRoundedCornerRadius |
|
readwritenonatomicassign |
ค่าสัมบูรณ์ของรัศมีมุมมน หน่วยเป็นพิกเซล
อุปกรณ์รับสัญญาณบางอย่างอาจไม่รองรับแอตทริบิวต์นี้
ชุดแบบอักษร หากไม่มีแบบอักษร จะใช้ชุดแบบอักษรทั่วไป
- (GCKMediaTextTrackStyleFontGenericFamily) fontGenericFamily |
|
readwritenonatomicassign |
- (GCKMediaTextTrackStyleFontStyle) fontStyle |
|
readwritenonatomicassign |
ข้อมูลที่กำหนดเอง (หากมี)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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,[]]