estimateMaximumDuration(completionHandler:)
Starts estimating the maximum duration of the export while considering the asset, preset, and time range configuration of the export session.
Declaration
func estimateMaximumDuration(completionHandler handler: @escaping @Sendable (CMTime, (any Error)?) -> Void)var estimatedMaximumDuration: CMTime { get async throws }Parameters
- handler:
A callback the system invokes when it finishes its estimation. It passes the callback the following parameters:
estimatedMaximumDurationThe system’s estimation of the maximum duration.
errorAn optional error object that indicates if an error occurred during processing.