available method

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

Whether this host can serve its captureMode — the platform family and the OS version, plus whatever else the platform makes a capture depend on: on iOS this is ReplayKit's own answer, false while the app is not in front, a mirrored display is attached, or another recorder holds the screen, and on Android it is false unless the app's pubspec sets ux: enable_media_projection: true.

Implementation

@override
Future<bool> available() async {
  _requireSupported();
  return _invoke<bool>('available');
}