public class RemoteDesktopInfo
extends java.lang.Object
┌─────────────────────────────▲──────────────────────────────────────┐
│ │ Remote Desktop Screen │
│ app_window_top_offset │
│ │ │
│◀────────────────────────────┼──────────────────────────────┐ │
│ app_window_left_offset │ Cloud APP window you see │ │
│ │ │ │
│ │ │ │
│ │ │ │
screen_height │ │ │
│ └──────────────────────────────┘ │
│ │
│ │
│ │
└──────screen_width ─────────────────────────────────────────────────┘
Modifier and Type | Field and Description |
---|---|
int |
mAppWindowLeftOffset
Offset of the horizontal axis of the remote desktop.
|
int |
mAppWindowTopOffset
Vertical offset of the remote desktop.
|
boolean |
mCursorShowing
cursor show status true:showing false:hidden.
|
int |
mScreenHeight
The height of the remote desktop, which is used to calculate the ratio of the local and remote coordinate
transformations
|
int |
mScreenWidth
The width of the remote desktop, which is used to calculate the ratio of the local and remote coordinate
transformations
|
Constructor and Description |
---|
RemoteDesktopInfo(boolean mCursorShowing,
int left,
int top,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public boolean mCursorShowing
When the remote device mouse is displayed, you need to send absolute (Mouse#onMoveTo(int, int)) coordinates to the remote device.
When the remote device mouse is hidden, you need to send relative (Mouse#onDeltaMove(int, int)) coordinates to the remote device
public int mAppWindowLeftOffset
The picture received locally is an offset picture, so the coordinates to be sent need to be converted according to the width of the remote desktop and an offset needs to be added.
public int mAppWindowTopOffset
The image received locally is an offset image, so the coordinates to be sent need to be converted according to the height of the remote desktop and then offset.
public int mScreenWidth
public int mScreenHeight