Trevixal API
    Preparing search index...
    • Take a photo with the camera: a dialog shows the live picture, Take photo freezes it, and Insert hands it back (Retake goes live again). Resolves with the photo as a PNG file, or null when cancelled or when there is no camera. The camera is released as soon as the photo is taken.

      Parameters

      Returns Promise<File | null>