Class: Licensing

Licensing()

Functions to deal with licensing QBrowser

Constructor

new Licensing()

Source:

Methods

(static) this.display()

Pops up a dialog with current license information, registration status, expiration date.
Source:

(static) this.getInformation(licenseInfo)

Returns information about QBrowser's license such as key, expiration date, is registered, etc.
Parameters:
Name Type Description
licenseInfo function JavaScript function that will be called with the detailed license information. The format of the function is: function licenseInfo(info). Available fields are: - info.registered(boolean) - true if QBrowser is registered, false otherwise - info.key(string) - QBrowser key, if any - info.enterpriseID(number) - enterprise ID, if any - info.expirationDate(Date) - expiration date
Source:
Example
// Example callback function
function LicenseInfo(info)
{
    // Loop through the information and display it
    var infoStr = "";
    for(var i in info)
    {
        infoStr += i + ": " + info[i] + "\n";
    }
    alert(infoStr)
}

function GetLicenseInfo()
{
    QBrowser.Licensing.getInformation(LicenseInfo);
}

(static) this.registerOffline()

Pops up a dialog box, where you can enter your key data. The key is generated by logging in with your enterprise account on the MobileVision web page and entering the device ID there.
Source:

(static) this.registerOnline()

Navigates to the MobileVision web page, where you can easily register your device.
Source:

(static) this.releaseOffline()

Pops a dialog box, where you can enter your key data. To get the release key you have to log with your enterprise account on the MobileVision web page and enter the device ID there.
Source:

(static) this.releaseOnline()

Navigates to the MobileVision web page and unregisters your device
Source:

(static) this.setKey(key)

Sets/updates QBrowser's activation key
Parameters:
Name Type Description
key string Activation key
Source: