Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23856

iOS/Android: Add support for the cameraTorchMode

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      iOS & android

      Description

      There are 3 flash modes available: (off, on & auto) it will be a good thing to have the torch mode also.

      iOS have 2 separated class for managing this properties:

      AVCaptureFlashMode

      AVCaptureTorchMode

      It would be nice to add the CAMERA_FLASH_TORCH constant.

      android.Camera.Parameters.FLASH_MODE_TORCH

      • Added in API level 5
      • String FLASH_MODE_TORCH
      • Constant emission of light during preview, auto-focus and snapshot. This can also be used for video recording.
      • Constant Value: "torch"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ricardo_jcp Ricardo Pereira
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code