Class
AstalBluetoothDevice
Description
class AstalBluetooth.Device : GObject.Object
{
/* No available fields */
}
Object representing a device.
Instance methods
astal_bluetooth_device_connect_device
This is a generic method to connect any profiles the remote device supports that can be connected to.
Possible errors: NotReady, Failed, InProgress, AlreadyConnected.
astal_bluetooth_device_disconnect_device
This method gracefully disconnects all connected profiles.
Possible errors: NotConnected.
astal_bluetooth_device_connect_profile
This method connects a specific profile of this device. The UUID provided is the remote service UUID for the profile.
Possible errors: Failed, InProgress, InvalidArguments, NotAvailable, NotReady.
astal_bluetooth_device_disconnect_profile
This method disconnects a specific profile of this device.
Possible errors: Failed, InProgress, InvalidArguments, NotSupported.
astal_bluetooth_device_pair
This method will connect to the remote device and initiate pairing.
Possible errors: InvalidArguments, Failed, AlreadyExists, AuthenticationCanceled, AuthenticationFailed, AuthenticationRejected,
AuthenticationTimeout, ConnectionAttemptFailed.
astal_bluetooth_device_cancel_pairing
This method can be used to cancel a pairing operation initiated by astal_bluetooth_device_pair().
Possible errors: DoesNotExist, Failed.
Properties
AstalBluetooth.Device:legacy-pairing
true if the device only supports the pre-2.1 pairing mechanism.
AstalBluetooth.Device:rssi
Received Signal Strength Indicator of the remote device (inquiry or advertising).
AstalBluetooth.Device:modalias
Remote Device ID information in modalias format used by the kernel and udev.
AstalBluetooth.Device:name
The Bluetooth remote name.
It is always better to use AstalBluetoothDevice:alias.
AstalBluetooth.Device:blocked
If set to true any incoming connections from the device will be immediately rejected.
AstalBluetooth.Device:battery-percentage
The percentage of battery left on the device if it has one, else -1.
AstalBluetooth.Device:alias
The name alias for the remote device.
In case no alias is set, it will return the remote device AstalBluetoothDevice:name.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.