Type Method

textStyleRuleWithTextMarkupAttributes:

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

Declaration

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

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.

Return Value

A new text style rule object with the specified attributes.

Discussion

This method sets the textSelector property of the style object to nil, which causes the rules to be applied to all of the text in the media item.

See Also

Creating and Initializing Style Rules

+ textStyleRulesFromPropertyList:

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

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