setup method

  1. @override
Future<bool> setup(
  1. PipOptions options
)
override

Setup or update Picture in Picture.

options The options of the Picture in Picture.

Returns Whether Picture in Picture is setup successfully.

Implementation

@override
Future<bool> setup(PipOptions options) async {
  final dicOptions = options.toDictionary();

  final result = await methodChannel.invokeMethod<bool>('setup', dicOptions);
  return result ?? false;
}