isInPipMode method

  1. @override
Future<bool> isInPipMode()
override

Checks if the app is currently in PiP mode.

Implementation

@override
Future<bool> isInPipMode() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('isInPipMode');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error checking PiP mode: ${e.message}');
    return false;
  }
}