getAutoDisconnectTimestamp method

  1. @override
Future<int> getAutoDisconnectTimestamp()
override

Gets the timestamp (milliseconds since epoch) when VPN was auto-disconnected.

Returns 0 if VPN was not auto-disconnected.

Implementation

@override
Future<int> getAutoDisconnectTimestamp() async {
  final timestamp = await methodChannel.invokeMethod<int>('getAutoDisconnectTimestamp');
  return timestamp ?? 0;
}