2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-05 08:35:10 +00:00

Document (in brief) SharePlugin.java, Device.java and BackgroundJobHandler.java

This commit is contained in:
Philip Cohn-Cort
2019-07-21 11:29:14 -04:00
parent 83e084a712
commit 79e4f62605
3 changed files with 22 additions and 0 deletions

View File

@@ -672,6 +672,14 @@ public class Device implements BaseLink.PacketReceiver {
}
}
/**
* Send {@code np} over one of this device's connected {@link #links}.
*
* @param np the packet to send
* @param callback a callback that can receive realtime updates
* @return true if the packet was sent ok, false otherwise
* @see BaseLink#sendPacket(NetworkPacket, SendPacketStatusCallback)
*/
@WorkerThread
public boolean sendPacketBlocking(final NetworkPacket np, final SendPacketStatusCallback callback) {