isActive static method

Future<bool> isActive()

Method to check whether pip mode is active currently

Refer PIP mode guide here

Implementation

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