support custom close block for cameraview