GCKMediaTextTrackStyle Class
Stay organized with collections
Save and categorize content based on your preferences.
A class representing a style for a text media track.
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Creates an instance with default values based on the system's closed captioning settings. More...
The font scaling factor for the text. More...
GCKMediaTextTrackStyleEdgeType
GCKMediaTextTrackStyleWindowType
Rounded corner radius absolute value in pixels. More...
The font family; if the font is not available, the generic font family will be used. More...
GCKMediaTextTrackStyleFontGenericFamily
GCKMediaTextTrackStyleFontStyle
Designated initializer.
All properties are mutable and so can be supplied after construction.
+ (instancetype) createDefault |
|
|
|
Creates an instance with default values based on the system's closed captioning settings.
This method will return nil on systems older than iOS 7.
read
write
nonatomic
assign
The font scaling factor for the text.
read
write
nonatomic
copy
read
write
nonatomic
copy
- (GCKMediaTextTrackStyleEdgeType) edgeType
read
write
nonatomic
assign
read
write
nonatomic
copy
- (GCKMediaTextTrackStyleWindowType) windowType
read
write
nonatomic
assign
The window type.
Some receiver devices may not support this attribute.
read
write
nonatomic
copy
The window color.
Some receiver devices may not support this attribute.
- (CGFloat) windowRoundedCornerRadius
read
write
nonatomic
assign
Rounded corner radius absolute value in pixels.
Some receiver devices may not support this attribute.
read
write
nonatomic
copy
The font family; if the font is not available, the generic font family will be used.
- (GCKMediaTextTrackStyleFontGenericFamily) fontGenericFamily
read
write
nonatomic
assign
- (GCKMediaTextTrackStyleFontStyle) fontStyle
read
write
nonatomic
assign
read
write
nonatomic
strong
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 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,[]]