Class

AVTextStyleRule

An object that represents text styling rules applied to text in a media item.

Declaration

@interface AVTextStyleRule : NSObject

Overview

You use text style objects to format subtitles, closed captions, and other text-related content of the item. The system applies these rules to all or part of the text of the media item.

Topics

Creating and Initializing Style Rules

+ textStyleRulesFromPropertyList:

Creates an array of text style rule objects from the specified property-list object.

+ textStyleRuleWithTextMarkupAttributes:

Creates a new text style rule object using the style attributes in the specified dictionary.

+ textStyleRuleWithTextMarkupAttributes:textSelector:

Creates a new text style rule object using the specified style attributes and text range information.

- initWithTextMarkupAttributes:

Creates a text style rule object with the specified style attributes.

- initWithTextMarkupAttributes:textSelector:

Creates a text style rule object with the specified style attributes and text range information.

Accessing the Style Attributes

textMarkupAttributes

A dictionary of text style attributes to apply to the text.

textSelector

A string that identifies the text to which the attributes should apply.

Exporting the Style Rules

+ propertyListForTextStyleRules:

Converts one or more text style rules into a serializable property list object.

Relationships

Inherits From

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software