closeAllMediaPresentations method

  1. @override
Future<void> closeAllMediaPresentations()

{@template tmpflutter_webview_platform_interface.PlatformInAppWebViewController.closeAllMediaPresentations} Closes all media the web view is presenting, including picture-in-picture video and fullscreen video.

NOTE for iOS: available on iOS 14.5+.

NOTE for MacOS: available on MacOS 11.3+.

Officially Supported Platforms/Implementations:

Implementation

@override
Future<void> closeAllMediaPresentations() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await channel?.invokeMethod('closeAllMediaPresentations', args);
}