Google is committed to advancing racial equity for Black communities. See how.

Config.UpdateMode

public static final enum Config.UpdateMode

Selects the behavior of Session.update().

Inherited Methods

Enum Values

public static final Config.UpdateMode BLOCKING

update() will normally wait until a new camera image is available. On most devices the camera is configured to capture 30 frames per second.

Note: If the camera image does not arrive by the built-in timeout (currently 66ms), then update() will instead return the most recent Frame object.

public static final Config.UpdateMode LATEST_CAMERA_IMAGE

update() will return immediately without blocking. If no new camera image is available, then update() will return the most recent Frame object.