vpn_check 0.2.0 copy "vpn_check: ^0.2.0" to clipboard
vpn_check: ^0.2.0 copied to clipboard

Plugin used for get vpn active status for Android and iOS

vpn_check #

Get vpn active status for Android, iOS

Getting Started #

A simple usage example:

import 'package:vpn_check/vpn_check.dart';

final vpnChecker = VPNCheck();
bool isVpnActive = false;

try {
    isVpnActive = await vpnChecker.isVPNEnabled();
} on VPNUnhandledException catch (e) {
    print(e);
}

vpnChecker.vpnActiveStream.listen((isActive) {
  isVpnActive = isActive;
  print('is vpn active: $isActive');
},
  cancelOnError: false,
);

Support Platform #

  • Android
  • iOS
  • MacOS
  • Linux
  • Windows
9
likes
0
pub points
83%
popularity

Publisher

unverified uploader

Plugin used for get vpn active status for Android and iOS

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

connectivity_plus, flutter

More

Packages that depend on vpn_check