This app stores all of its state as fields of the Camera object. Please make this a property rather than a variable.  Refer to it as this._screenLock in the code below.