connect method
Connect using this engine
Implementation
@override
Future<bool> connect(String config) async {
if (!isSupported) {
throw UnsupportedError('LibXray is not supported on this platform');
}
try {
if (Platform.isIOS || Platform.isMacOS) {
return await _iosEngine.connectLibXray(config: config);
} else if (Platform.isAndroid) {
return await _androidEngine.connectLibXray(config: config);
}
return false;
} catch (e) {
print('LibXray connect error: $e');
return false;
}
}