Bluetooth#
- class ignis.services.bluetooth.BluetoothService None #
A Bluetooth service. Requires
gnome-bluetooth-3.0
.- device_added(*args)#
Signal
Emitted when a Bluetooth device has been added.
- Parameters:
device (
BluetoothDevice
) -- The instance of the Bluetooth device.
- property client: gi.repository.GnomeBluetooth.Client#
read-only
An instance of
GnomeBluetooth.Client
.
- property devices: list[BluetoothDevice]#
read-only
A list of all Bluetooth devices.
- property connected_devices: list[BluetoothDevice]#
read-only
A list of currently connected Bluetooth devices.
- class ignis.services.bluetooth.BluetoothDevice(client: gi.repository.GnomeBluetooth.Client, gdevice: gi.repository.GnomeBluetooth.Device) None #
A Bluetooth device.
- removed()#
Signal
Emitted when the device has been removed.
- property gdevice: gi.repository.GnomeBluetooth.Device#
read-only
The instance of
GnomeBluetooth.Device
for this device.
- property battery_percentage: float#
read-only
The current battery percentage of the device (if available).
- property name: str#
read-only
The complete device name. It is better to use the
alias
property when displaying the device name.
- property device_type: str#
read-only
The type of the device, e.g.,
"mouse"
,"speakers"
.For more device types, see GnomeBluetooth.Type.