Skip to content

Configuring MCamera

Tomasz K. edited this page Dec 12, 2024 · 29 revisions

We mnie jest dwu ludzi, jeden zupełnie rozsądny, drugi wariat. Który zaś zwycięży?

Configuring MCamera

Overview

There are numerous methods that can be used to modify the initial state of the camera. On this page we'll discuss them all and then I'll show you how to use them correctly.

Available Methods

  • func setCameraOutputType(_ cameraOutputType: CameraOutputType) -> Self
    • Changes the initial camera output type.
  • func setCameraPosition(_ cameraPosition: CameraPosition) -> Self
    • Changes the initial camera position.
    • If the selected camera position is not available, the camera will not be changed.
  • func setAudioAvailability(_ isAvailable: Bool) -> Self
    • Definies whether the audio source is available.
    • If disabled, the camera will not record audio, and will not ask for permission to access the microphone.
  • func setZoomFactor(_ zoomFactor: CGFloat) -> Self
    • Changes the initial camera zoom level.
    • If the zoom factor is out of bounds, it will be set to the closest available value.
  • func setFlashMode(_ flashMode: CameraFlashMode) -> Self
    • Changes the initial camera flash mode.
    • If the selected flash mode is not available, the flash mode will not be changed.

Step-by-Step Guide

See also

Clone this wiki locally