Debian Codegraph @

plyer/facades/bluetooth.py

raw symbols SCIP
1 '''Bluetooth facade.
2
3 Returns the following:
4
5 * Bluetooth info
6
7 Simple Example
8 --------------
9
10 To get the bluetooth status info::
11 todo: will be extended to get additional bluetooth info
12 todo: will be extended to allow bluetooth connections etc.
13
14 >>> from plyer import bluetooth
15 >>> bluetooth
16 'on' or 'off'
17
18 Supported Platforms
19 -------------------
20 Android, OS X
21
22 '''
23
24
25 class Bluetooth:
26 '''
27 Bluetooth facade.
28 '''
29
30 @property
31 def info(self):
32 '''
33 Property that returns the info (currently status) of the bluetooth.
34 '''
35 return self.get_info()
36
37 def get_info(self):
38 return self._get_info()
39
40 # private
41
42 def _get_info(self, **kwargs):
43 raise NotImplementedError()