disable method

Future<bool> disable()

Implementation

Future<bool> disable() async {
  if (!Platform.isAndroid) {
    return false;
  }

  final success = await _channel.enablePictureInPicture(false);
  if (success) {
    _isEnabled = false;
    _stopListening();
  }

  return success;
}