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