handleMethodCall method
handle channel calls
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'initialize':
final List arguments = call.arguments;
return initialize(
arguments[0],
arguments[1],
arguments[2],
);
case 'releaseResources':
return releaseResources();
case 'fetchResult':
return fetchResult();
case 'fetchDeviceList':
return fetchDevices();
case 'selectDevice':
return _selectDevice(call.arguments);
default:
throw PlatformException(
code: 'Unimplemented',
details: 'camcode for web doesn\'t implement \'${call.method}\'',
);
}
}