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>.
|
(instancetype) | + createDefault |
| Creates an instance with default values based on the system's closed captioning settings. More...
|
|
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.
The font scaling factor for the text.
- (GCKMediaTextTrackStyleEdgeType) edgeType |
|
readwritenonatomicassign |
- (GCKMediaTextTrackStyleWindowType) windowType |
|
readwritenonatomicassign |
- (CGFloat) windowRoundedCornerRadius |
|
readwritenonatomicassign |
Rounded corner radius absolute value in pixels.
The font family; if the font is not available, the generic font family will be used.
- (GCKMediaTextTrackStyleFontGenericFamily) fontGenericFamily |
|
readwritenonatomicassign |
- (GCKMediaTextTrackStyleFontStyle) fontStyle |
|
readwritenonatomicassign |
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.
[null,null,["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,[]]