Difference between revisions of "Camera.availableDevices"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.8<br/> === Description === Returns a list of tables describing each available camera in the system. Each list entry has the follo...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2017.8<br/>
 
'''Available since:''' Gideros 2017.8<br/>
 +
'''Class:''' [[camera]]<br/>
 +
 
=== Description ===
 
=== Description ===
Returns a list of tables describing each available camera in the system. Each list entry has the following fields:
+
Returns a list of tables describing each available camera in the system.
*name* - Internal name of the device
+
<syntaxhighlight lang="lua">
*description* - Description of the device
+
(table) = camera.availableDevices()
*position* - Position of the device, can be 'front','back' or 'unknown'
+
</syntaxhighlight>
<source lang="lua">
+
 
(table), = camera.availableDevices()
+
Each list entry has the following fields:
</source>
+
*'''"name"''': internal name of the device
'''Returns''' (table) List of available cameras<br/>
+
*'''"description"''': description of the device
 +
*'''"position"''': position of the device, can be 'front','back' or 'unknown'
 +
 
 +
=== Return values ===
 +
'''Returns''' (table) list of available cameras<br/>
 +
 
 +
{{Camera}}

Latest revision as of 15:27, 13 July 2023

Available since: Gideros 2017.8
Class: camera

Description

Returns a list of tables describing each available camera in the system.

(table) = camera.availableDevices()

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