Package 

Interface Action


  • @RequiresApi(value = Build.VERSION_CODES.LOLLIPOP) 
    public interface Action
    
                        

    The Action class encapsulates logic for completing an action in a Camera2 environment. In this case, we are often interested in constantly receiving the CaptureResult and CaptureRequest callbacks, as well as applying changes to a CaptureRequest.Builder and having them applied to the sensor. The Action class receives the given callbacks and can operate over the engine through the ActionHolder object. Each Action operates on a given state in a given moment. This base class offers the STATE_COMPLETED state which is common to all actions. See BaseAction for a base implementation.