Skip to content

Customizing MCamera Screens

Tomasz K. edited this page Dec 13, 2024 · 35 revisions

Dzisiejsze pokolenie ma mocne głowy i zimne serca.

Customizing MCamera Screens

Overview

MCamera is a view object that contains three screens that are displayed in relation to the state of the camera:

  • ErrorScreen, which is shown when the user denies any of the required permissions,
  • CapturedMediaScreen, which is presented when the user captures either an image or video (can be disabled),
  • CameraScreen, which contains all of the camera controls that the user can interact with to adjust and capture images or video.

On this page, we are going to learn how to create your own `MCamera' screen(s) and what methods you can use to make this process as easy as possible for you. For this reason, this page is divided into three separate sections that cover this topic and provide a code example to help you easily get started with customizing your own camera screens.

MCameraErrorScreen

Overview

By definition, it's a screen that displays an error message when one or more camera permissions are denied by the user. The default screen can be replaced by creating a structure conforming to MCameraErrorScreen and setting it as the error screen during MCamera initialization.

Step-By-Step Guide

MCapturedMediaScreen

MCameraScreen

See also

Clone this wiki locally