use of org.kde.kdeconnect.NetworkPacket in project kdeconnect-android by KDE.
the class RemoteKeyboardPlugin method notifyKeyboardState.
public void notifyKeyboardState(boolean state) {
Log.d("RemoteKeyboardPlugin", "Keyboardstate changed to " + state);
NetworkPacket np = new NetworkPacket(PACKET_TYPE_MOUSEPAD_KEYBOARDSTATE);
np.set("state", state);
device.sendPacket(np);
}
use of org.kde.kdeconnect.NetworkPacket in project kdeconnect-android by KDE.
the class RunCommandPlugin method runCommand.
public void runCommand(String cmdKey) {
NetworkPacket np = new NetworkPacket(PACKET_TYPE_RUNCOMMAND_REQUEST);
np.set("key", cmdKey);
device.sendPacket(np);
}
Aggregations