use of org.kde.kdeconnect.NetworkPackage in project kdeconnect-android by KDE.
the class MousePadPlugin method sendSingleClick.
public void sendSingleClick() {
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_MOUSEPAD_REQUEST);
np.set("singleclick", true);
device.sendPackage(np);
}
use of org.kde.kdeconnect.NetworkPackage in project kdeconnect-android by KDE.
the class MprisPlugin method setVolume.
public void setVolume(int volume) {
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_MPRIS_REQUEST);
np.set("player", player);
np.set("setVolume", volume);
device.sendPackage(np);
}
use of org.kde.kdeconnect.NetworkPackage in project kdeconnect-android by KDE.
the class MousePadPlugin method sendMiddleClick.
public void sendMiddleClick() {
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_MOUSEPAD_REQUEST);
np.set("middleclick", true);
device.sendPackage(np);
}
use of org.kde.kdeconnect.NetworkPackage in project kdeconnect-android by KDE.
the class MprisPlugin method sendAction.
public void sendAction(String player, String action) {
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_MPRIS_REQUEST);
np.set("player", player);
np.set("action", action);
device.sendPackage(np);
}
use of org.kde.kdeconnect.NetworkPackage in project kdeconnect-android by KDE.
the class MprisPlugin method requestPlayerStatus.
private void requestPlayerStatus() {
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_MPRIS_REQUEST);
np.set("player", player);
np.set("requestNowPlaying", true);
np.set("requestVolume", true);
device.sendPackage(np);
}
Aggregations