Type Method

textStyleRuleWithTextMarkupAttributes:textSelector:

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

Declaration

+ (AVTextStyleRule *)textStyleRuleWithTextMarkupAttributes:(NSDictionary<NSString *,id> *)textMarkupAttributes textSelector:(NSString *)textSelector;

Parameters

textMarkupAttributes

A dictionary of style attributes. For a list of supported keys and values that you can include in this dictionary, see CMTextMarkup.h.

textSelector

A string contains an identifier for the ranges of text to which the style attributes should be applied. Eligible identifiers are determined by the media format and its corresponding text content. For example, the string could contain the CSS selectors used by the corresponding text in Web Video Text Tracks (WebVTT) markup. Specify nil if you want the style attributes to apply to all text in the item.

Return Value

A new text style rule object with the specified attributes and range information.

See Also

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.

- 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.