isPipSupported method

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

Checks if the device supports PiP mode.

Implementation

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