public static enum TcrSession.Event extends java.lang.Enum<TcrSession.Event>
Observer#onEvent(Event, Object)
Enum Constant and Description |
---|
ARCHIVE_LOAD_STATUS
This event indicates the status of the archive loading in the server.
The associated event data is of type String in json format: |
ARCHIVE_SAVE_STATUS
This event indicates the status of the archive saving in the server.
The associated event data is of type String in json format: |
CAMERA_STATUS_CHANGED
This event indicates that the camera status of the server has changed.
|
CLIENT_IDLE
This event indicates that the user is in an idle state, that is, the user does not operate the mouse,
keyboard or screen for a while.
This event has no associated data. |
CLIENT_LOW_FPS
This event indicates that the frame rate remains low for a while.
|
CLIENT_STATS
This event indicates that the performance data is updated.
|
CURSOR_IMAGE_INFO
This event indicates that the remote cursor image information is updated.
|
CURSOR_STATE_CHANGE
This event indicates that the showing status of cloud cursor is changed.
|
GAME_PROCESS_STOPPED
This event indicates that the status of the game process on the server has been stopped.
The associated event data is of type String in json format: |
GAME_START_COMPLETE
This event indicates that the status of the game process on the server has been changed.
The associated event data is of type String in json format: |
INPUT_STATE_CHANGE
This event indicates that the status of the remote input box has changed.
|
INPUT_STATUS_CHANGED
This event indicates that the input status of the server has changed.
|
MIC_STATUS_CHANGED
This event indicates that the mic status of the server has changed.
|
MULTI_USER_ROLE_APPLY
This event indicates that some user request to change seat.
|
MULTI_USER_SEAT_INFO
This event indicates that the multi user seat info is updated.
|
OPEN_URL
This event indicates that an openable url link was clicked.
|
REMOTE_DESKTOP_INFO
This event indicates that the cloud PC desktop information is updated.
|
SCREEN_CONFIG_CHANGE
This event indicates that the configuration of the cloud phone screen configuration has been changed.
The associated event data is of type ScreenConfig . |
START_AUTO_LOGIN
This event indicates that someone has called
LoginHelper.startAutoLogin(String, String, AsyncCallback) .After calling this method, the cloud will start a login script to input the account and password. The associated data of this type is an Integer value, with the following meanings: // Valid values: // `0`: Execution of automatic login succeeded (Please note that this only means that the execution // process has started successfully and does not imply that login result has succeeded). |
STATE_CLOSED
This event indicates that the session is closed, and thus it can not be used any more.
The associated event data is of type Integer.For the value range, refer to TcrCode.SessionStop . |
STATE_CONNECTED
This event indicates that the session is connected.
This event has no associated data. |
STATE_INITED
This event indicates that the session has been initialized.
The associated event data is of type String and represents the ClientSession which is further
used as a parameter to call the Cloud API CreateSession. |
STATE_RECONNECTING
This event indicates that the session is reconnecting.
|
VIDEO_STREAM_CONFIG_CHANGED
This event indicates that the cloud Mobile screen information is updated.
The associated event data is of type VideoStreamConfig . |
Modifier and Type | Method and Description |
---|---|
static TcrSession.Event |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TcrSession.Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TcrSession.Event STATE_INITED
ClientSession
which is further
used as a parameter to call the Cloud API CreateSession.public static final TcrSession.Event STATE_CONNECTED
public static final TcrSession.Event STATE_RECONNECTING
public static final TcrSession.Event STATE_CLOSED
TcrCode.SessionStop
.public static final TcrSession.Event CLIENT_STATS
StatsInfo
.public static final TcrSession.Event CLIENT_IDLE
public static final TcrSession.Event CLIENT_LOW_FPS
TcrSessionConfig.Builder.lowFpsThreshold(int, int)
.public static final TcrSession.Event GAME_START_COMPLETE
{
user_id: String // The user ID
game_id: String // The game ID
app_id: number
request_id: string
status: number // The game start error code. Valid values:
// `0`: Started the game successfully;
// `1`: Failed to start the game;
}
public static final TcrSession.Event GAME_PROCESS_STOPPED
{
user_id: String // The user ID
game_name: String // The game name
timestamp: number // stop time stamp
message: String // stop message
}
public static final TcrSession.Event ARCHIVE_LOAD_STATUS
{
user_id: String // The user ID
game_id: String // The game ID
name: String // The eventual filename of the archive
url: String // The archive download address
status: number // The error code of the archive loading status.
// Valid values:
// `0`: loaded the archive successfully;
// `1`: Failed to download the archive;
// `2`: Failed to verify the archive;
// `3`: Failed to extract the archive;
// `4`: Other error;
// `5`: The archive was being downloaded.
save_type: String // "`Auto` or `Normal`",
category_id: String // The archive category ID
archive_size: number // The archive size
loaded_size: number // The size of the downloaded archive
}
public static final TcrSession.Event ARCHIVE_SAVE_STATUS
{
user_id: String // The user ID
game_id: String // The game ID
name: String // The eventual filename of the archive
md5: String // The MD5 value of the archive
status: number // The error code of the archive saving status.
// Valid values:
// `0`: saved the archive successfully;
// `1`: Failed to save the archive;
// `2`: Failed to compress the archive;
// `3`: Other error;
// `4`: The archive was being uploaded;
// `5`: The archive could not be found;
// `6`: The archive operations were too frequent.
save_type: String // "`Auto` or `Normal`",
category_id: String // The archive category ID
archive_size: number // The archive size
saved_size: number // The size of the saved archive
}
public static final TcrSession.Event INPUT_STATUS_CHANGED
{
status: String // If the status distributed by the cloud is `disabled`, input is disabled.
}
public static final TcrSession.Event CAMERA_STATUS_CHANGED
{
status: String // The server's camera status
// Valid values:
// `open_back`: Activates the back camera.
// `open_front`: Activates the front camera.
// `close`: Deactivates the camera.
width: number // The width of the camera's resolution
height: number // The height of the camera's resolution
}
public static final TcrSession.Event MIC_STATUS_CHANGED
{
status: String // The server's camera status
// Valid values:
// `open`: Activates the mic.
// `close`: Deactivates the mic.
}
public static final TcrSession.Event REMOTE_DESKTOP_INFO
RemoteDesktopInfo
.public static final TcrSession.Event SCREEN_CONFIG_CHANGE
ScreenConfig
.public static final TcrSession.Event VIDEO_STREAM_CONFIG_CHANGED
VideoStreamConfig
.public static final TcrSession.Event CURSOR_IMAGE_INFO
CursorImageInfo
.public static final TcrSession.Event CURSOR_STATE_CHANGE
CursorState
.public static final TcrSession.Event MULTI_USER_SEAT_INFO
MultiUserSeatInfo
.public static final TcrSession.Event MULTI_USER_ROLE_APPLY
RoleApplyInfo
.public static final TcrSession.Event INPUT_STATE_CHANGE
{
field_type: String // the type input box
// Valid values:
// `normal_input`: This type represents the input box of a regular window gaining
// focus.
//
// `autologin_input`: This value has been deprecated.
//
// `unfocused`: This type represents the focus being moved out of the window.
text: String // The text content in the remote input box.<br>
// This field is only supported when the cloud application is an Android application
}
public static final TcrSession.Event START_AUTO_LOGIN
LoginHelper.startAutoLogin(String, String, AsyncCallback)
.public static final TcrSession.Event OPEN_URL
{
url: String // The clicked url link
}
public static TcrSession.Event[] values()
for (TcrSession.Event c : TcrSession.Event.values()) System.out.println(c);
public static TcrSession.Event valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null