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> 32 typedef NS_ENUM(NSInteger, OOClosedCaptionPresentation) {
36 OOClosedCaptionRollUp,
38 OOClosedCaptionPaintOn
42 @property (nonatomic) OOClosedCaptionPresentation
presentation;
45 @property (nonatomic) MACaptionAppearanceTextEdgeStyle
edgeStyle;
48 @property (nonatomic) MACaptionAppearanceDisplayType
displayType;
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