Sideband_CE/sbapp/plyer/facades/bluetooth.py
2022-09-16 18:07:57 +02:00

44 lines
745 B
Python

'''Bluetooth facade.
Returns the following:
* Bluetooth info
Simple Example
--------------
To get the bluetooth status info::
todo: will be extended to get additional bluetooth info
todo: will be extended to allow bluetooth connections etc.
>>> from plyer import bluetooth
>>> bluetooth
'on' or 'off'
Supported Platforms
-------------------
Android, OS X
'''
class Bluetooth:
'''
Bluetooth facade.
'''
@property
def info(self):
'''
Property that returns the info (currently status) of the bluetooth.
'''
return self.get_info()
def get_info(self):
return self._get_info()
# private
def _get_info(self, **kwargs):
raise NotImplementedError()