Speedify SDK for Android
15.0.0
|
In your Application class, implement SpeedifySDK.AutoConstruct:
Before you use the Speedify SDK in your app, you must initialize VPN permission.
When you want to start the Speedify SDK, call this to get an instance of the SDK.
The Speedify SDK starts up a background process to run the VPN. If you initialize other components in your Application's onCreate, you may need to return early to avoid initializing them in this process as well.
If you do not specify a custom SpeedifyHandler in getSpeedifySDK, you can call setHandler on your SpeedifySDK object to set one later. Note that some callbacks on the ISpeedifyHandler happen in Speedify SDK's background process. If you want to implement these, use the SpeedifySDK.AutoConstruct method above.
To close down the SDK entirely without exiting your application, call SpeedifySDK.ForceExit(context). To restart the SDK, you must either obtain a new SpeedifySDK object or call restartServices on your old SpeedifySDK object.