public class

ActivationInfo

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

Class Overview

This class provides information about license activations.

Since
API level 33
KNOX 3.7

Summary

Nested Classes
enum ActivationInfo.State Enum representing activation state. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
Date getActivationDate()
String getMaskedLicenseKey()
API to retrieve the license key of given activation.
String getPackageName()
API to retrieve package name of given activation.
ActivationInfo.State getState()
API to retrieve the ActivationInfo.State of given activation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public Date getActivationDate ()

Since: API level 33

Returns
  • Returns the Date the license activation has occurred in UTC timezone.
    If the package/license key combination is already active in the servers but not in the device - after a factory reset for example - this will return the Date the first activation occurred.
Since
API level 33
KNOX 3.7

public String getMaskedLicenseKey ()

Since: API level 33

API to retrieve the license key of given activation.

Returns
  • Returns the license key masked as KLM12-*****-*****-*****-*****-12345
Since
API level 33
KNOX 3.7

public String getPackageName ()

Since: API level 33

API to retrieve package name of given activation.

Returns
  • Returns the package name of given activation
Since
API level 33
KNOX 3.7

public ActivationInfo.State getState ()

Since: API level 33

API to retrieve the ActivationInfo.State of given activation.

Returns
Since
API level 33
KNOX 3.7