OOClosedCaptionsStyle.h
1 #import <Foundation/Foundation.h>
2 #import <UIKit/UIKit.h>
3 #import <MediaAccessibility/MACaptionAppearance.h>
4 #import <MediaAccessibility/MediaAccessibility.h>
5 #import <CoreFoundation/CoreFoundation.h>
6 
11 @interface OOClosedCaptionsStyle : NSObject
12 
14 @property (nonatomic, strong) UIColor *textColor;
15 
17 @property (nonatomic) CGFloat textOpacity;
18 
20 @property (nonatomic) NSInteger textSize;
21 
23 @property (nonatomic, strong) NSString* textFontName;
24 
26 @property (nonatomic, strong) UIColor* windowColor;
27 
29 @property (nonatomic) CGFloat windowOpacity;
30 
32 typedef NS_ENUM(NSInteger, OOClosedCaptionPresentation) {
34  OOClosedCaptionPopOn,
36  OOClosedCaptionRollUp,
38  OOClosedCaptionPaintOn
39 };
40 
42 @property (nonatomic) OOClosedCaptionPresentation presentation;
43 
45 @property (nonatomic) MACaptionAppearanceTextEdgeStyle edgeStyle;
46 
48 @property (nonatomic) MACaptionAppearanceDisplayType displayType;
49 
50 
55 @property (nonatomic, strong) UIColor *backgroundColor;
56 
57 
61 @property (nonatomic) CGFloat backgroundOpacity;
62 
66 - (void) updateStyle;
70 - (NSComparisonResult)compare:(OOClosedCaptionsStyle *) closedCaptionDeviceStyle;
71 
72 @end
UIColor * windowColor
Closed captions window color.
Definition: OOClosedCaptionsStyle.h:26
void updateStyle()
update closed caption style
MACaptionAppearanceTextEdgeStyle edgeStyle
Closed captions edge attributes.
Definition: OOClosedCaptionsStyle.h:45
NSInteger textSize
Closed caption text size (from 50% to 200% of default size)
Definition: OOClosedCaptionsStyle.h:20
OOClosedCaptionPresentation presentation
Closed captions presentation.
Definition: OOClosedCaptionsStyle.h:39
UIColor * textColor
Closed captions text color.
Definition: OOClosedCaptionsStyle.h:14
UIColor * backgroundColor
This is the background of text itself instead of the backgound of the window holding the text So in o...
Definition: OOClosedCaptionsStyle.h:55
MACaptionAppearanceDisplayType displayType
The type of captions that should be displayed.
Definition: OOClosedCaptionsStyle.h:48
typedef NS_ENUM(NSInteger, OOClosedCaptionPresentation)
Closed captions presentation, deprecated.
Definition: OOClosedCaptionsStyle.h:32
CGFloat backgroundOpacity
Closed captions background opacity (between opaque and semi-transparent) This this is only used for c...
Definition: OOClosedCaptionsStyle.h:61
CGFloat windowOpacity
Closed captions window opacity.
Definition: OOClosedCaptionsStyle.h:29
CGFloat textOpacity
Closed captions text opacity (between opaque and semi-transparent)
Definition: OOClosedCaptionsStyle.h:17
Defines text style to be used when displaying closed captions.
Definition: OOClosedCaptionsStyle.h:11
NSString * textFontName
Closed captions text font name.
Definition: OOClosedCaptionsStyle.h:23