# LocalParticipantAdapter

## Field Summary

| Type                     | Field                                                                                          |
| ------------------------ | ---------------------------------------------------------------------------------------------- |
| ParticipantTypeAdapter   | The participantType represents a type of local user - full participant, viewer or broadcaster. |
| AVCaptureDevice.Position | The cameraPosition is a value indicating whether the back or front camera is currently active. |
| VideoQualityAdapter      | The videoQuality represents a video quality - low, default or high.                            |
| frameRate                | The frameRate represents a video frame rate value with range 10-60                             |

## Public Method Summary

| Return type                     | Methods                                        | Description                                                                                              | Parameters                                                                                                                      |
| ------------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| void                            | startCameraPreview() -> UIView                 | Start capturing video from the camera.                                                                   |                                                                                                                                 |
| LocalParticipantSnapshotAdapter | takeSnapshot()                                 | <p>Returns the snapshot of local participant settings.</p><p>You can't read and edit snapshot object</p> |                                                                                                                                 |
| void                            | set(snapshot: LocalParticipantSnapshotAdapter) |                                                                                                          | **snapshot** - is parameter with participant settings                                                                           |
| void                            | set(orientation: AVCaptureVideoOrientation)    |                                                                                                          | **orientation** - [AVCaptureVideoOrientation](https://developer.apple.com/documentation/avfoundation/avcapturevideoorientation) |
