Camera state machine sample.
Implementation of the "State" design pattern at example of a typical camera workflow.