mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
890 B
Java
41 lines
890 B
Java
package com.genymobile.scrcpy;
|
|
|
|
public final class DeviceMessage {
|
|
|
|
public static final int TYPE_CLIPBOARD = 0;
|
|
public static final int TYPE_ACK_CLIPBOARD = 1;
|
|
|
|
private int type;
|
|
private String text;
|
|
private long sequence;
|
|
|
|
private DeviceMessage() {
|
|
}
|
|
|
|
public static DeviceMessage createClipboard(String text) {
|
|
DeviceMessage event = new DeviceMessage();
|
|
event.type = TYPE_CLIPBOARD;
|
|
event.text = text;
|
|
return event;
|
|
}
|
|
|
|
public static DeviceMessage createAckClipboard(long sequence) {
|
|
DeviceMessage event = new DeviceMessage();
|
|
event.type = TYPE_ACK_CLIPBOARD;
|
|
event.sequence = sequence;
|
|
return event;
|
|
}
|
|
|
|
public int getType() {
|
|
return type;
|
|
}
|
|
|
|
public String getText() {
|
|
return text;
|
|
}
|
|
|
|
public long getSequence() {
|
|
return sequence;
|
|
}
|
|
}
|