public class

LicenseResult

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.license.LicenseResult

Class Overview

Class containing license activation/deactivation result data.

Since
API level 35
KNOX 3.8

Summary

Nested Classes
enum LicenseResult.Type These constants indicate whether the result refers to a ELM_ACTIVATION, KLM_ACTIVATION or KLM_DEACTIVATION
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
int getErrorCode()
API to retrieve the result error code.
ArrayList<String> getGrantedPermissions()
API to retrieve all permissions that were granted to the caller application.
String getLicenseKey()
API to retrieve the license key of the given ELM_ACTIVATION, KLM_ACTIVATION or KLM_DEACTIVATION.
String getPackageName()
API to retrieve the package name of given ELM_ACTIVATION, KLM_ACTIVATION or KLM_DEACTIVATION.
LicenseResult.Type getType()
API to retrieve the LicenseResult.Type the result refers to.
boolean isActivation()
API to check whether given result is originated from an activation.
boolean isSuccess()
API to check whether if the given LicenseResult.Type was sucessfully performed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public int getErrorCode ()

Since: API level 36

API to retrieve the result error code.

Returns
Since
API level 35
KNOX 3.8

public ArrayList<String> getGrantedPermissions ()

Since: API level 36

API to retrieve all permissions that were granted to the caller application.

Returns
  • all permissions of the activated license that were granted to the caller application
Since
API level 35
KNOX 3.8

public String getLicenseKey ()

Since: API level 36

API to retrieve the license key of the given ELM_ACTIVATION, KLM_ACTIVATION or KLM_DEACTIVATION.

Returns
Since
API level 35
KNOX 3.8

public String getPackageName ()

Since: API level 36

API to retrieve the package name of given ELM_ACTIVATION, KLM_ACTIVATION or KLM_DEACTIVATION.

Returns
Since
API level 35
KNOX 3.8

public LicenseResult.Type getType ()

Since: API level 36

API to retrieve the LicenseResult.Type the result refers to.

Returns
Since
API level 35
KNOX 3.8

public boolean isActivation ()

Since: API level 36

API to check whether given result is originated from an activation.

Returns
Since
API level 35
KNOX 3.8

public boolean isSuccess ()

Since: API level 36

API to check whether if the given LicenseResult.Type was sucessfully performed.

Returns
Since
API level 35
KNOX 3.8