Since: API level 12
public class

LightweightConfigurationType

extends KnoxConfigurationType
java.lang.Object
   ↳ com.samsung.android.knox.container.KnoxConfigurationType
     ↳ com.samsung.android.knox.container.LightweightConfigurationType

Deprecated in API level 36
NOTE: This API is not available since Android 13.

Class Overview

Interface for managing a light weight container configuration type.

Usage

LightweightConfigurationType class is used to manage a configuration type only targeted for a special container, commonly refered as LWC (Light weight container). An instance of this type can be created by cloning (clone(String)) an instance of LightweightConfigurationType object.

A pre-provisioned LightweightConfigurationType, with a name "knox-b2b-lwc" is available for MDMs to use or clone from. Another way to access these pre-provisioned objects would be to access getConfigurationTypes() and then going over each object and checking the instantiating class using instanceOf operator. Please refer to KnoxConfigurationType for more details.

Since
API level 12
KNOX 2.1

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
LightweightConfigurationType clone(String name)
API to return a new LightweightConfigurationType object by cloning it from another existing LightweightConfigurationType object.
String getFolderHeaderTitle()
API to get the folder header title for light weight container.
void setFolderHeaderTitle(String title)
API to set the folder header title for light weight container.
[Expand]
Inherited Methods
From class com.samsung.android.knox.container.KnoxConfigurationType
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public LightweightConfigurationType clone (String name)

Since: API level 12

API to return a new LightweightConfigurationType object by cloning it from another existing LightweightConfigurationType object.

Usage


 try {

     LightweightConfigurationType predefinedConfiguration = KnoxContainerManager.getConfigurationTypeByName("knox-b2b-lwc");

     LightweightConfigurationType newConfig = predefinedConfiguration.clone("custom-configuration"); //Clones and assigns a new name

     ArrayList appList = newConfig.getAppInstallationList();

     appList.add("com.custom.app");

     newConfig.setAppInstallationList(appList);

     KnoxContainerManager.addConfigurationType(newConfig);

 } catch (RemoteException e) {

     Log.e(TAG, "UnsupportedOperationException: " + e);

 }

 

Since
API level 12
KNOX 2.1

public String getFolderHeaderTitle ()

Since: API level 12

API to get the folder header title for light weight container.

Since
API level 12
KNOX 2.1

public void setFolderHeaderTitle (String title)

Since: API level 12

API to set the folder header title for light weight container.

Since
API level 12
KNOX 2.1