- Prototope Documentation
- Animator
- Border
- CameraLayer
- CameraPosition
- Color
- Gesture
- Heartbeat
- Image
- Layer
- LayerAnimatorStore
- Math
- PanGesture
- Particle
- ParticleEmitter
- ParticlePreset
- Point
- Rect
- Shadow
- Size
- Sound
- TapGesture
- Timestamp
- TouchSample
- TouchSequence
- Tunable
- View as:
- Swift
- JavaScript
CameraPosition
Specifies one of the device’s camera by its position. Used with CameraLayer
.
public enum CameraPosition: Printable {
/** The device's front-facing camera. */
case Front
/** The device's back-facing camera. */
case Back
}
CameraPosition.Front // the device's front camera
CameraPosition.Back // the device's back camera