GCKMediaTextTrackStyle クラス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テキスト メディア トラックのスタイルを表すクラス。
NSObject、<NSCopying>、<NSSecureCoding> を継承します。
指定のイニシャライザ。
プロパティはすべて可変であるため、構築後に指定できます。
+ (instancetype) createDefault |
|
|
|
システムの字幕設定に基づくデフォルト値でインスタンスを作成します。
iOS 7 より前のシステムでは、このメソッドは nil を返します。
- (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,[]]