Difference between revisions of "Camera.availableDevices"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Returns a list of tables describing each available camera in the system. | Returns a list of tables describing each available camera in the system. | ||
− | < | + | <syntaxhighlight lang="lua"> |
(table) = camera.availableDevices() | (table) = camera.availableDevices() | ||
</source> | </source> |
Revision as of 14:26, 13 July 2023
Available since: Gideros 2017.8
Class: camera
Description
Returns a list of tables describing each available camera in the system. <syntaxhighlight lang="lua"> (table) = camera.availableDevices() </source>
Each list entry has the following fields:
- "name": internal name of the device
- "description": description of the device
- "position": position of the device, can be 'front','back' or 'unknown'
Return values
Returns (table) list of available cameras