getLogs method
Retrieves V2Ray logs from the system logcat. Returns a Future that completes with a List of log lines. On non-Android platforms, returns an empty list.
Implementation
@override
Future<List<String>> getLogs() async {
try {
final result = await methodChannel.invokeMethod('getLogs');
if (result is List) {
return result.cast<String>();
}
return [];
} catch (e) {
return [];
}
}