| java.lang.Object | |
| ↳ | com.samsung.android.knox.sdp.SdpUtil |
Deprecated in API level 33
SDP utility class.
| API level 19 |
| KNOX 2.6 |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 33
| |||||||||||
Deprecated
in API level 33
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
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();
}
| alias | SdpEngine alias. |
|---|
| SdpException | thrown when SDP engine doesn't exist, license activation is required or internal error has occurred. |
|---|
| API level 19 |
| KNOX 2.6 |
| User Scope |
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();
| API level 19 |
| KNOX 2.6 |
| User Scope |
Deprecated in API level 33
API checks if the given user id is a Knox user.
| userId | Android user id. |
|---|
true if user is a Knox user, otherwise false.| API level 19 |
| KNOX 2.6 |
| User Scope |
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!");
}
true if SDP is supported, otherwise false.| API level 19 |
| KNOX 2.6 |
| User Scope |
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);
| alias | SdpEngine alias attached to the SdpStateListener. |
|---|---|
| listener | SdpStateListener instance. |
true if SdpStateListener is successfully registered, otherwise false.| API level 19 |
| KNOX 2.6 |
| User Scope |
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);
| alias | SdpEngine alias attached to the SdpStateListener. |
|---|---|
| listener | SdpStateListener instance. |
true if SdpStateListener is successfully unregistered, otherwise false.| API level 19 |
| KNOX 2.6 |
| User Scope |