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
Device:unpackArchive (archive, extract_to) Unpack an archive.


Functions

Device:performHapticFeedback (type)
Device specific method for performing haptic feedback.

Parameters:

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:

Returns:

    boolean
Device:unpackArchive (archive, extract_to)
Unpack an archive. Extract the contents of an archive, detecting its format by filename extension. Inspired by luarocks archive_unpack()

Parameters:

  • archive string: Filename of archive.
  • extract_to string: Destination directory.

Returns:

    boolean or (boolean, string): true on success, false and an error message on failure.
generated by LDoc 1.4.6 Last updated 2021-07-27 19:04:04