closeAllMediaPresentations method

Future<void> closeAllMediaPresentations()

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

Officially Supported Platforms/Implementations:

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> closeAllMediaPresentations() =>
    platform.closeAllMediaPresentations();