Method
ValentDevicesend_packet
unstable since: 1.0
Declaration [src]
void
valent_device_send_packet (
ValentDevice* device,
JsonNode* packet,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Send a KDE Connect packet to the device.
Call valent_device_send_packet_finish()
to get the result.
If device
is disconnected or unpaired when this method is called,
G_IO_ERROR_NOT_CONNECTED
or G_IO_ERROR_PERMISSION_DENIED
will be set on the
result, respectively.
Available since: 1.0
This method completes asynchronously. Use valent_device_send_packet_finish()
inside the GAsyncReadyCallback
to obtain the result of the operation.
Parameters
packet
-
Type:
JsonNode
A KDE Connect packet.
The data is owned by the caller of the method. cancellable
-
Type:
GCancellable
A
GCancellable
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
.The argument can be NULL
. user_data
-
Type:
gpointer
User supplied data.
The argument can be NULL
.The data is owned by the caller of the method.