IKnoxLicenceCallback

interface IKnoxLicenceCallback

IKnoxLicenceCallback

Description :

This interface represent the interface of the API to recover all the keys necessary for the operation of the module.

Example of use :

  • Implementation :
    
    
    
    private IKnoxLicenceCallback mDeviceKeyCallback = new IKnoxLicenceCallback() {
    
    public String xCoverLicence() {
    return "";//licence activation key for XCover Field pro device
    }
    };
                
  • Registration:
    to register your callback you must call :
    
    
    
        STWSupportedDeviceManager.getInstance().registerToDeviceLicence(mDeviceKeyCallback);
    
  • Unregister:
    to unregister your callback you must call :
    
    
    
        STWSupportedDeviceManager.getInstance().unregisterForXCoverReceiver();
    

Functions

Link copied to clipboard
abstract fun isForRestrictedNetwork(): Boolean
Link copied to clipboard
abstract fun knoxLicenceKey(): String
Callback triggered to recover XCover Licence key
Link copied to clipboard
abstract fun onAppBecomeAllowedToRestrictedNetwork(isAllowed: Boolean)
Link copied to clipboard
abstract fun onLicenseStateChanged(newState: Boolean)
Callback to trigger when the status of the license is changed - Status is enabled - Status is disabled