Since: API level 35
public class

KnoxPushServiceResult

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.kpm.KnoxPushServiceResult

Class Overview

This class provides values and methods to handle knox push service result.

Since
API level 35
KNOX 3.8

Summary

Constants
int ERROR_BAD_REQUEST Bad request error occurred on the Knox Server.
int ERROR_BIND_FAIL Bind fail error occurred.
int ERROR_CB_EMPTY Callback is empty.
int ERROR_CONFLICT Request conflict error occurred on the Knox Server.
int ERROR_DEVICE_NOT_SUPPORTED Device is not supported.
int ERROR_FORBIDDEN Forbidden error occurred on the Knox Server.
int ERROR_FW Framework related error occurred.
int ERROR_INTERNAL Knox Push Service internal error occurred.
int ERROR_INTERNAL_SERVER Knox Server internal error occured.
int ERROR_NETWORK Network unavailable error occurred.
int ERROR_NONE Succeed status.
int ERROR_NOT_FOUND Not found error occurred on the Knox Server.
int ERROR_PERMISSION Permission error occurred.
int ERROR_REQUEST_NOT_FINISHED Previous request is not finished.
int ERROR_SERVICE_UNAVAILABLE Temporary server unavailable error occurred on the Knox Server.
int ERROR_UNAUTHORIZED Unauthorized error occurred on the Knox Server.
int ERROR_UNKNOWN Unknown error occured.
int NOT_REGISTERED Device is not registered.
int REGISTERED Device is registered.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
String getDeviceId()
Get deviceId of the knox push service result.
int getError()
Get error code or registratation status of the knox push service result.
String getReason()
Get detail error reason of the knox push service result.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int ERROR_BAD_REQUEST

Since: API level 35

Bad request error occurred on the Knox Server. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 400 (0x00000190)

public static final int ERROR_BIND_FAIL

Since: API level 35

Bind fail error occurred. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -2 (0xfffffffe)

public static final int ERROR_CB_EMPTY

Since: API level 35

Callback is empty. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -9 (0xfffffff7)

public static final int ERROR_CONFLICT

Since: API level 35

Request conflict error occurred on the Knox Server. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 409 (0x00000199)

public static final int ERROR_DEVICE_NOT_SUPPORTED

Since: API level 35

Device is not supported. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -7 (0xfffffff9)

public static final int ERROR_FORBIDDEN

Since: API level 35

Forbidden error occurred on the Knox Server. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 403 (0x00000193)

public static final int ERROR_FW

Since: API level 35

Framework related error occurred. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -5 (0xfffffffb)

public static final int ERROR_INTERNAL

Since: API level 35

Knox Push Service internal error occurred. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -6 (0xfffffffa)

public static final int ERROR_INTERNAL_SERVER

Since: API level 35

Knox Server internal error occured. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 500 (0x000001f4)

public static final int ERROR_NETWORK

Since: API level 35

Network unavailable error occurred. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -8 (0xfffffff8)

public static final int ERROR_NONE

Since: API level 35

Succeed status. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 0 (0x00000000)

public static final int ERROR_NOT_FOUND

Since: API level 35

Not found error occurred on the Knox Server. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 404 (0x00000194)

public static final int ERROR_PERMISSION

Since: API level 35

Permission error occurred. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -3 (0xfffffffd)

public static final int ERROR_REQUEST_NOT_FINISHED

Since: API level 35

Previous request is not finished. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -4 (0xfffffffc)

public static final int ERROR_SERVICE_UNAVAILABLE

Since: API level 35

Temporary server unavailable error occurred on the Knox Server. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 503 (0x000001f7)

public static final int ERROR_UNAUTHORIZED

Since: API level 35

Unauthorized error occurred on the Knox Server. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 401 (0x00000191)

public static final int ERROR_UNKNOWN

Since: API level 35

Unknown error occured. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: -1 (0xffffffff)

public static final int NOT_REGISTERED

Since: API level 35

Device is not registered. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 2 (0x00000002)

public static final int REGISTERED

Since: API level 35

Device is registered. Possible value for errorCode.

Since
API level 35
KNOX 3.8
Constant Value: 1 (0x00000001)

Public Methods

public String getDeviceId ()

Since: API level 35

Get deviceId of the knox push service result. The deviceId can be used to point target device when Server to Server request.

Since
API level 35
KNOX 3.8

public int getError ()

Since: API level 35

Get error code or registratation status of the knox push service result.

Since
API level 35
KNOX 3.8

public String getReason ()

Since: API level 35

Get detail error reason of the knox push service result.

Since
API level 35
KNOX 3.8