Skip to content

Commit

Permalink
Merge pull request #376 from malverick/suppported_platforms
Browse files Browse the repository at this point in the history
Add list of supported platforms to facade
  • Loading branch information
kiok46 committed Nov 1, 2017
2 parents 4c0a635 + 8d15fc0 commit ddd09fd
Show file tree
Hide file tree
Showing 26 changed files with 99 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plyer/facades/accelerometer.py
Expand Up @@ -26,6 +26,10 @@
>>> accelerometer.acceleration
(-10.048464775085449, 6.825869083404541, 7.7260890007019043)
Supported Plaforms
------------------
Android, iOS, OS X, Linux
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/audio.py
Expand Up @@ -39,6 +39,10 @@
>>> audio.play()
Supported Platforms
-------------------
Android
'''


Expand Down
2 changes: 2 additions & 0 deletions plyer/facades/barometer.py
Expand Up @@ -9,6 +9,8 @@ class Barometer(object):
Use property `pressure` to get current air pressure in hPa.
.. versionadded:: 1.2.5
Supported Platforms:: Android
'''

@property
Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/battery.py
Expand Up @@ -16,6 +16,10 @@
>>> battery.status
{'percentage': 82.0, 'isCharging': False}
Supported Platforms
-------------------
Android, iOS, Windows, OS X, Linux
'''


Expand Down
3 changes: 3 additions & 0 deletions plyer/facades/brightness.py
Expand Up @@ -21,6 +21,9 @@
>>> from plyer import brightness
>>> brightness.set_level(50)
Supported Platforms
-------------------
Android, iOS, Linux
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/call.py
Expand Up @@ -23,6 +23,10 @@
>>> call.dialcall()
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/camera.py
Expand Up @@ -35,6 +35,10 @@
>>> camera.take_video(filename=file_name,
>>> on_complete=camera_callback)
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
5 changes: 5 additions & 0 deletions plyer/facades/compass.py
Expand Up @@ -29,6 +29,11 @@
# a,b,c denote the Geomagnetic field strength
# (without hard iron calibration) along the three axes.
# x,y,z denote the Iron bias estimation along the three axes.
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/email.py
Expand Up @@ -23,6 +23,10 @@
>>> # opens email interface where user can change the content.
Supported Platforms
-------------------
Android, iOS, Windows, OS X, Linux
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/filechooser.py
Expand Up @@ -30,6 +30,10 @@
Important: these methods will return only after user interaction.
Use threads or you will stop the mainloop if your app has one.
Supported Platforms
-------------------
Windows, OS X, Linux
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/flash.py
Expand Up @@ -31,6 +31,10 @@
>>> flash.release()
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
5 changes: 5 additions & 0 deletions plyer/facades/gps.py
Expand Up @@ -37,6 +37,11 @@ def print_locations(**kwargs):
gps.start()
# later
gps.stop()
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
3 changes: 3 additions & 0 deletions plyer/facades/gravity.py
Expand Up @@ -2,6 +2,9 @@ class Gravity(object):
'''Gravity facade.
.. versionadded:: 1.2.5
Supported Platforms:: Android
'''

@property
Expand Down
5 changes: 5 additions & 0 deletions plyer/facades/gyroscope.py
Expand Up @@ -33,6 +33,11 @@
where the first three values show the rate of rotation w/o drift
compensation and the last three show the estimated drift along the three
axes.
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/irblaster.py
Expand Up @@ -27,6 +27,10 @@
>>> irblaster.exists()
True/False
Supported Platforms
-------------------
Android
'''


Expand Down
2 changes: 2 additions & 0 deletions plyer/facades/light.py
Expand Up @@ -10,6 +10,8 @@ class Light(object):
Use property `illumination` to get current illumination in lx.
.. versionadded:: 1.2.5
Supported Platforms:: Android
'''

@property
Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/notification.py
Expand Up @@ -15,6 +15,10 @@
>>> message = 'This is an example.'
>>> notification.notify(title=title, message=message)
Supported Platforms
-------------------
Android, Windows, OS X, Linux
'''


Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/orientation.py
Expand Up @@ -28,6 +28,10 @@
>>> orientation.set_sensor()
Supported Platforms
-------------------
Android
'''


Expand Down
2 changes: 2 additions & 0 deletions plyer/facades/proximity.py
Expand Up @@ -12,6 +12,8 @@ class Proximity(object):
property `proximity`. It returns `True` when object is close.
.. versionadded:: 1.2.5
Supported Platforms::Android
'''

@property
Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/sms.py
Expand Up @@ -21,6 +21,10 @@
>>> message = 'This is an example.'
>>> sms.send(recipient=recipient, message=message)
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
2 changes: 2 additions & 0 deletions plyer/facades/spatialorientation.py
Expand Up @@ -29,6 +29,8 @@ def orientation(self):
The range of values is -π/2 to π/2.
Returns (None, None, None) if no data is currently available.
Supported Platforms:: Android
'''
return self._get_orientation() or (None, None, None)

Expand Down
3 changes: 3 additions & 0 deletions plyer/facades/temperature.py
Expand Up @@ -11,6 +11,9 @@ class Temperature(object):
Use property `temperature` to get ambient air temperature in degree C.
.. versionadded:: 1.2.5
Supported Platforms:: Android
'''

@property
Expand Down
4 changes: 4 additions & 0 deletions plyer/facades/tts.py
Expand Up @@ -13,6 +13,10 @@
>>> from plyer import tts
>>> tts.speak(message=message)
Supported Platforms
-------------------
Android, iOS, Windows, OS X, Linux
'''


Expand Down
5 changes: 5 additions & 0 deletions plyer/facades/uniqueid.py
Expand Up @@ -21,6 +21,11 @@
.. versionchanged:: 1.2.4
On Android returns Android ID instead of IMEI.
Supported Platforms
-------------------
Android, iOS, Windows, OS X, Linux
'''


Expand Down
5 changes: 5 additions & 0 deletions plyer/facades/vibrator.py
Expand Up @@ -30,6 +30,11 @@
>>> vibrator.cancel()
Supported Platforms
-------------------
Android, iOS
'''


Expand Down
5 changes: 5 additions & 0 deletions plyer/facades/wifi.py
Expand Up @@ -59,6 +59,11 @@
>>> return wifi.get_available_wifi()
This returns all the available wifi networks near the device.
Supported Platforms
-------------------
Windows, OS X, Linux
'''


Expand Down

0 comments on commit ddd09fd

Please sign in to comment.