vpn_check

Creator: coderz1093

Last updated:

Add to Cart

Description:

vpn check

vpn_check #
Get vpn active status for Android, iOS and MacOS
Getting Started #
A simple usage example:
import 'package:vpn_check/vpn_check.dart';

final vpnChecker = VPNChecker();
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,
);

// You can also use widget builder
...
VPNStatusBuilder(
builder: (BuildContext context, VPNStatus value) {
return Center(
child: Text('VPN status: ${value.name}'),
);
},
),
...
copied to clipboard
Support Platform #

✅ Android
✅ iOS
✅ MacOS

Plans #

❌ Linux
❌ Windows

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.