Module device.generic.device
Generic device abstraction.
This module defines stubs for common methods.
Functions
| Device:performHapticFeedback (type) | Device specific method for performing haptic feedback. |
| Device:canExecuteScript (filename) | Returns true if the file is a script we allow running Basically a helper method to check a specific list of file extensions for executable scripts |
Issues
| Device:performHapticFeedback-todo2 | : Build an IPv6 variant of getDefaultRoute that parses /proc/net/ipv6_route |
Functions
- Device:performHapticFeedback (type)
-
Device specific method for performing haptic feedback.
Parameters:
- type string Type of haptic feedback. See https://developer.android.com/reference/android/view/HapticFeedbackConstants.html.
- Device:canExecuteScript (filename)
-
Returns true if the file is a script we allow running
Basically a helper method to check a specific list of file extensions for executable scripts
Parameters:
- filename string
Returns:
-
boolean