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. Implements <NSCopying>.
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
read
write
nonatomic
copy
- (CGFloat) windowRoundedCornerRadius
read
write
nonatomic
assign
Rounded corner radius absolute value in pixels.
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-based media tracks.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to control aspects like font, color, background, and edges of the text.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a default style based on system settings or customize individual properties.\u003c/p\u003e\n"],["\u003cp\u003eIncludes methods for initialization and creation with default values.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eNSObject\u003c/code\u003e and implements the \u003ccode\u003eNSCopying\u003c/code\u003e protocol.\u003c/p\u003e\n"]]],["The `GCKMediaTextTrackStyle` class manages the styling of text media tracks. It allows for creating styles via a designated initializer or by using the `createDefault` method for system-based settings. Key properties include: `fontScale`, `foregroundColor`, `backgroundColor`, `edgeType`, `edgeColor`, `windowType`, `windowColor`, `windowRoundedCornerRadius`, `fontFamily`, `fontGenericFamily`, `fontStyle`, and `customData`. These properties define the appearance of the text, edges, and window. All properties are mutable.\n"],null,[]]