clearLogs method

  1. @override
Future<bool> clearLogs()
override

Clears the V2Ray logs from the system logcat. Returns a Future that completes with a bool indicating success. On non-Android platforms, returns true.

Implementation

@override
Future<bool> clearLogs() async {
  try {
    final result = await methodChannel.invokeMethod('clearLogs');
    return result == true;
  } catch (e) {
    return false;
  }
}