startScreen method
Start screen capture.
Parameter appGroupId
Application Group Identifier. Online document: https://developer.pano.video/features/rtc/screen-ios/ (Optional)(iOS only)
Returns
- ResultCode.OK Success
- others: Failure
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
- ResultCode.OK 成功
- 其他: 失败
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});
}
}