destroy static method

Future<bool> destroy()

Method to destroy PIP View.

This method can be call at time of changing role to hls-viewer role or while closing the application to disable entering in PIP mode.

Refer PIP mode guide here

Implementation

static Future<bool> destroy() async {
  final bool? result =
      await PlatformService.invokeMethod(PlatformMethod.destroyPIP);
  return result ?? false;
}