GCKMediaTextTrackStyle 类
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
继承 NSObject、<NSCopy> 和 <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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-25。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-07-25。"],[],["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"]]