STWKnoxLicenceManager

open class STWKnoxLicenceManager

Functions

Link copied to clipboard
open fun activateKnoxLicense(@NonNull context: Context, @Nullable callback: IKnoxLicenceUpdateCallback): Boolean
Call this method to activate the Knox licenseThis method will start the process of activation of License knox if it is not activated else nothing will happens.
Link copied to clipboard
open fun deactivateKnoxLicense(@NonNull context: Context, @Nullable callback: IKnoxLicenceUpdateCallback): Boolean
Call this method to deactivate license
Link copied to clipboard
open fun enableHardwareButtonsIfNeeded(@NonNull activity: Activity)
Call this method to enable the hardware buttons (PTT &EMERGENCY) are enabled.
Link copied to clipboard
open fun enableKnoxFeature(@NonNull activity: Activity, enableRestrictedNetwork: Boolean)
Call this method to enable the hardware buttons (PTT &EMERGENCY) and to set tha app allowed to restricted network (for the XCover6PRO).
Link copied to clipboard
open fun getInstance(): STWKnoxLicenceManager
Link copied to clipboard
open fun getPackagesAllowedOnRestrictedNetworks(@NonNull context: Context)
Link copied to clipboard
open fun isAppAllowedOnRestrictedNetwork(@NonNull context: Context, packageName: String): Boolean
Link copied to clipboard
open fun isHardwareButtonsEnabled(): Boolean
Call this method to check if the hardware buttons (PTT &EMERGENCY) are enabled.
Link copied to clipboard
open fun registerForKnoxLicenceChanges(@NonNull context: Context, @NonNull callback: IKnoxLicenceCallback): Boolean
Call this method to register for Knox license changes
Link copied to clipboard
open fun unregisterFromKnoxLicenceChanges(@NonNull context: Context)
Call this method to unregister from Knox license changes