AVAssetReaderCaptionValidationHandling

Trait AVAssetReaderCaptionValidationHandling 

Source
pub unsafe trait AVAssetReaderCaptionValidationHandling: NSObjectProtocol {
    // Provided method
    unsafe fn captionAdaptor_didVendCaption_skippingUnsupportedSourceSyntaxElements(
        &self,
        adaptor: &AVAssetReaderOutputCaptionAdaptor,
        caption: &AVCaption,
        syntax_elements: &NSArray<NSString>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVAssetReaderOutput only.
Expand description

A protocol to receive caption validation notifications

A client can implement the protocol on its own class which processes the caption validation calls.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn captionAdaptor_didVendCaption_skippingUnsupportedSourceSyntaxElements( &self, adaptor: &AVAssetReaderOutputCaptionAdaptor, caption: &AVCaption, syntax_elements: &NSArray<NSString>, )
where Self: Sized + Message,

Available on crate feature AVCaption only.

Called when one or more syntax elements were ignored in the process of creating the caption object.

Parameter adaptor: The caption adaptor object

Parameter caption: The caption object. The parser skipped unsupported syntax elements when creating this object.

Parameter syntaxElements: Array of NSString to represent the skipped syntax.

While the reported string content is human readable, it is highly technical and probably meaningful only to clients who are familiar with the source caption format. It is primarily designed for logging purposes and would not be suitable for UI purposes.

Trait Implementations§

Source§

impl ProtocolType for dyn AVAssetReaderCaptionValidationHandling

Source§

const NAME: &'static str = "AVAssetReaderCaptionValidationHandling"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn AVAssetReaderCaptionValidationHandling

Implementations on Foreign Types§

Source§

impl<T> AVAssetReaderCaptionValidationHandling for ProtocolObject<T>

Implementors§