ATVSubtitleConfig
@interface ATVSubtitleConfig : NSObject
An container holds all ATVSubtitle.
-
An array of ATVSubtitle objects for different languages. - see: ATVSubtitle
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSArray<ATVSubtitle *> *subtitles;
Swift
var subtitles: [ATVSubtitle]! { get set }
-
Subtitle text font.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) int *subtitleFont;
Swift
var subtitleFont: UnsafeMutablePointer<Int32>! { get set }
-
Subtitle text color.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) int *subtitleTextColor;
Swift
var subtitleTextColor: UnsafeMutablePointer<Int32>! { get set }
-
Subtitle stroke color.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) int *subtitleStrokeColor;
Swift
var subtitleStrokeColor: UnsafeMutablePointer<Int32>! { get set }
-
Subtitle stroke width.
Note that the subtitle is in two layers: stroke and foreground text. The stroke width should be doubled as inner half of the stroke is covered by the foreground text.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat subtitleStrokeWidth;
Swift
var subtitleStrokeWidth: CGFloat { get set }
-
Factory method that creates ATVSubtitleConfig object with array of ATVSubtitle object. - parameter: subtitles Array of ATVSubtitle object.
Declaration
Objective-C
+ (instancetype)initWithSubtitles:(NSArray<ATVSubtitle *> *)subtitles;
Swift
class func initWith(_ subtitles: [ATVSubtitle]!) -> Self!
Parameters
subtitles
Array of ATVSubtitle object.