Prime VPN
An extension to build VPN Apps using Ai2 and its distros.
Developers
Events:
Log
Event triggered when a log is available. Meant for debugging purposes only.
Parameter | Type |
---|---|
message | text |
Connected
Event triggered when the device is connected to VPN successfully.
Connecting
Event triggered when device is attempting to connect to the VPN Server.
Disconnected
Event triggered when the device is disconnected from VPN.
PermissionResult
Event triggered when user has allowed/disallowed the VPN Permission prompt.
Parameter | Type |
---|---|
granted | boolean |
StateChanged
Event triggered when state of VPN Service changes.
Parameter | Type |
---|---|
state | text |
Initialized
Event triggered when the VPN Service is initialized.
Methods:
AskPermission
Asks permission for initiating VPN Connections.
IsPermissionGranted
Returns if VPN Permission is granted or not.
Return Type: boolean
IsConnected
Returns if the VPN is connected or not.
Return Type: boolean
CurrentState
Returns the current state of VPN Service.
Return Type: text
Configure
Configures the credentials for connection.
Parameter | Type |
---|---|
country | text |
hostName | text |
userName | text |
password | text |
port | text |
Connect
Starts the VPN Connection.
Initialize
Initializes the VPN Service. Should be done on Screen1.Initialize.
Disconnect
Manually disconnects from the VPN Server.
GetConnectedIP
Returns the IP Address of VPN host that device is connected to. (May be empty if not connected)
Return Type: text
Properties:
StateConnected
Returns VPN State when connected.
StateDisconnected
Returns VPN State when disconnected.
StateConnecting
Returns VPN State when connecting.
Demo Blocks
Demo Video
Protocol
SSTP Protocol is currently supported.
Wireguard support is currently in BETA
Free Servers
NOTE: OpenVPN Servers are not supported
DISCLAIMER
This is just a client extension for connecting to VPN Servers. The arrangement of servers is the responsibility of user. They can host their own or use free servers available over internet through sites like VPNGate.net
To Purchase
- Send me a DM
- Contact me on Telegram: Contact @beastunknown2166
Pricing
India - 800rs INR (UPI / Bank Transfer)
Other Countries - 12 USD (Paypal / Kofi / Binance)