OOTVClosedCaptionsTextView.h
1 //
2 // OOTVClosedCaptionsTextView.h
3 // OoyalaTVSkinSDK
4 //
5 // Copyright © 2017 ooyala. All rights reserved.
6 //
7 
8 #import "OOTVClosedCaptionsTextBackgroundView.h"
9 #import <OoyalaSDK/OOClosedCaptionsStyle.h>
10 
11 @interface OOTVClosedCaptionsTextView : UITextView
12 
13 @property (nonatomic) NSString *nextText;
14 @property (nonatomic) MACaptionAppearanceTextEdgeStyle edgeStyle;
15 @property (nonatomic) CGFloat textSize;
17 @property (nonatomic) NSMutableArray *resultLines;
18 @property (nonatomic) OOClosedCaptionsStyle *style;
19 
20 - (instancetype)initWithFrame:(CGRect)frame
21  style:(OOClosedCaptionsStyle *)style
22  backgroundView:(OOTVClosedCaptionsTextBackgroundView *)backgroundView;
23 - (NSArray *)getRectsForEachLine:(NSArray *)separatedLines;
24 - (void)setFont:(NSString *)fontName frame:(CGRect)frame baseFontSize:(CGFloat)fontSize;
25 
26 @end
Definition: OOTVClosedCaptionsTextView.h:11
MACaptionAppearanceTextEdgeStyle edgeStyle
Definition: OOTVClosedCaptionsTextView.h:14
CGFloat textSize
Definition: OOTVClosedCaptionsTextView.h:15
OOTVClosedCaptionsTextBackgroundView * backgroundView
Definition: OOTVClosedCaptionsTextView.h:16
Defines text style to be used when displaying closed captions.
Definition: OOClosedCaptionsStyle.h:11
Definition: OOTVClosedCaptionsTextBackgroundView.h:10
OOClosedCaptionsStyle * style
Definition: OOTVClosedCaptionsTextView.h:18
NSMutableArray * resultLines
Definition: OOTVClosedCaptionsTextView.h:17
NSString * nextText
Definition: OOTVClosedCaptionsTextView.h:13