enterPip method

Future<void> enterPip(
  1. BuildContext context
)

enter to picture in picture mode only Android

only available since Android 7

Implementation

Future<void> enterPip(BuildContext context) async {
  if (pipAvailable.value && pipEnabled) {
    if (UniversalPlatform.isAndroid) {
      await _enterPipAndroid(context);
    } else if (UniversalPlatform.isDesktop) {
      await _enterPipDesktop(context);
    }
  }
}