local Disconnect
open fun localDisconnect(@NonNull context: Context, @Nullable callBack: STWDisconnectCallBack)
Content copied to clipboard
Call this method to do a local disconnect (simulate the system FORCE-STOP application) It is required, before invoke this method, to : - close ALL activities - cancel ALL notifications - stop services (or foreground services) - unregister from any broadcast receiver An event STWAutomaticDisconnectListener will be delegated when the disconnection process started or finished. The kill of the app process must be done when the local disconnect process is done using "android.os.Process.killProcess(android.os.Process.myPid());"
Parameters
context
The application context