1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
'''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()
|