mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
44 lines
745 B
Python
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()
|