Camera.queryCamera

From GiderosMobile
Revision as of 15:12, 18 August 2021 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2021.8<br/> '''<translate>Class</translate>:''' camera<br/> === <tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2021.8
Class: camera

Description

Returns the capabilities of a camera, as a table containing the following fields:

  • previewSizes: an array of integers listing the supported preview dimensions (two integers, width and height, per dimension)
  • pictureSizes: same as above but for full picture dimensions
  • flashModes: an array of integers listing the supported flash modes
(table) = camera.queryCamera(device)

Parameters

device (string) The camera device name, or nil to query the default one

Return values

Returns (table) The camera capabilities