startScreen method

  1. @override
Future<ResultCode> startScreen({
  1. String? appGroupId,
})
override

Start screen capture.

Parameter appGroupId Application Group Identifier. Online document: https://developer.pano.video/features/rtc/screen-ios/ (Optional)(iOS only)

Returns

Note iOS: This interface supports iPhone and iPad with iOS 11.0 and above Android: This interface supports Android 5.0 and above

开始屏幕采集。

Parameter appGroupId Application Group Identifier。请参考文档:https://developer.pano.video/features/rtc/screen-ios/(可选)(仅限iOS)

Returns

Note iOS: 该接口支持 iOS 11.0 及以上的 iPhone 和 iPad Android: 该接口支持 Android 5.0 及以上

Implementation

@override
Future<ResultCode> startScreen({String? appGroupId}) {
  if (defaultTargetPlatform == TargetPlatform.android) {
    return _invokeCodeMethod('startScreen');
  } else {
    appGroupId ??= '';
    return _invokeCodeMethod('startScreen', {'appGroupId': appGroupId});
  }
}