startScreenCapture method
Screen Capture for android
Implementation
Future<int> startScreenCapture($p.ScreenMediaType type) async {
if (Platform.isAndroid) {
return await ($instance as BasicHelper).invoke<int>(
method: 'startScreenCapture',
args: [$p.t_ScreenMediaType.code_to_android(type).$value],
);
} else if (Platform.isIOS) {
return await ($instance as BasicHelper).invoke<int>(
method: 'startScreenCapture:type:',
args: [$p.t_ScreenMediaType.code_to_ios(type).$value],
);
} else {
throw UnsupportedError('Unsupported platform');
}
}