Contents

closeAllMediaPresentations(completionHandler:)

Closes all media the web view is presenting, including picture-in-picture video and fullscreen video.

Declaration

func closeAllMediaPresentations(completionHandler: (@MainActor @Sendable () -> Void)? = nil)
func closeAllMediaPresentations() async

Parameters

  • completionHandler:

    A closure the system executes after it completes closing all media presentations.

See Also

Interacting with media