Since: API level 19
public class

SdpUtil

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.sdp.SdpUtil

Deprecated in API level 33

Class Overview

SDP utility class.

Since
API level 19
KNOX 2.6

Summary

Public Methods
SdpEngineInfo getEngineInfo(String alias)
Deprecated in API level 33
static SdpUtil getInstance()
Deprecated in API level 33
static boolean isKnoxWorkspace(int userId)
Deprecated in API level 33
boolean isSdpSupported()
Deprecated in API level 33
boolean registerListener(String alias, SdpStateListener listener)
Deprecated in API level 33
boolean unregisterListener(String alias, SdpStateListener listener)
Deprecated in API level 33
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public SdpEngineInfo getEngineInfo (String alias)

Since: API level 19

Deprecated in API level 33

API returns the SdpEngineInfo with the given alias.

Usage:

        An Application Developer can use this API to get the instance of SdpEngineInfo with the given alias.


     try {

         String alias = "alias";

         SdpEngineInfo info = SdpUtil.getInstance().getEngineInfo(alias);

     } catch (SdpException e) {

         e.printStackTrace();

     }

 

Parameters
alias SdpEngine alias.
Returns
  • SdpEngine information on success.
Throws
SdpException thrown when SDP engine doesn't exist, license activation is required or internal error has occurred.
Since
API level 19
KNOX 2.6
Multiuser Environment
User Scope

public static SdpUtil getInstance ()

Since: API level 19

Deprecated in API level 33

Static factory accessor for SdpUtil instance.

Usage:

        An application developer can use this API to get the instance of SdpUtil.


     SdpUtil sUtil = SdpUtil.getInstance();

 

Returns
  • The instance of SdpUtil class to call utility methods.
Since
API level 19
KNOX 2.6
Multiuser Environment
User Scope
See Also

public static boolean isKnoxWorkspace (int userId)

Since: API level 19

Deprecated in API level 33

API checks if the given user id is a Knox user.

Parameters
userId Android user id.
Returns
  • true if user is a Knox user, otherwise false.
Since
API level 19
KNOX 2.6
Multiuser Environment
User Scope
See Also

public boolean isSdpSupported ()

Since: API level 19

Deprecated in API level 33

API checks if the SDP is supported on the device.

Usage:

        An application developer can use this API to check whether SDP is supported on the device or not.

 

     if(SdpUtil.getInstance().isSdpSupported()) {

         Log.d(TAG, "SDP Supported device!");

     }

 

Returns
  • true if SDP is supported, otherwise false.
Since
API level 19
KNOX 2.6
Multiuser Environment
User Scope

public boolean registerListener (String alias, SdpStateListener listener)

Since: API level 19

Deprecated in API level 33

API registers a SdpStateListener to the SdpEngine.

Usage:

        The SdpStateListener is being set to the SdpEngine.

 

      SdpUtil.getInstance().registerListener(mEngineAlias, mListener);

 

Parameters
alias SdpEngine alias attached to the SdpStateListener.
listener SdpStateListener instance.
Returns
Since
API level 19
KNOX 2.6
Multiuser Environment
User Scope

public boolean unregisterListener (String alias, SdpStateListener listener)

Since: API level 19

Deprecated in API level 33

API unregisters a SdpStateListener from the SdpEngine.

Usage:

        The SdpStateListener is being unregistered from the SdpEngine.


      SdpUtil.getInstance().unregisterListener(mEngineAlias, mListener);

 

Parameters
alias SdpEngine alias attached to the SdpStateListener.
listener SdpStateListener instance.
Returns
Since
API level 19
KNOX 2.6
Multiuser Environment
User Scope