Plyer is a platform-independent api to use features commonly found on various platforms, notably mobile ones, in Python.
Plyer tries not to reinvent the wheel, and will call for external libraries to implement the api in the easiest way, depending on the current platform.
- on python-for-android, pyjnius is used
- on kivy-ios, pyobjus is used
- on windows/mac/linux, commonly found libraries and programs will be used
Platform | Android < 4.0 | Android > 4.0 | iOS | Windows | OSX | Linux |
---|---|---|---|---|---|---|
Accelerometer Camera (taking picture) GPS Notifications |
X X X X |
X X X X |
X X |
X |
X X |
X X |
Text to speech | X | X | X | X | X | X |
Email (open mail client) Vibrator Sms (send messages) Compass |
X X X X |
X X X X |
X X |
X |
X |
X |
Unique ID (IMEI or SN) Gyroscope |
X X |
X X |
X X |
X |
X |
X |
Battery Native file chooser Orientation Audio recording |
X X X |
X X X |
X |
X X |
X X |
X X |