Share via


CameraCaptureSession.StopRepeating Method

Definition

Cancel any ongoing repeating capture set by either #setRepeatingRequest setRepeatingRequest or #setRepeatingBurst.

[Android.Runtime.Register("stopRepeating", "()V", "GetStopRepeatingHandler")]
public abstract void StopRepeating ();
[<Android.Runtime.Register("stopRepeating", "()V", "GetStopRepeatingHandler")>]
abstract member StopRepeating : unit -> unit
Attributes

Exceptions

if the camera device is no longer connected or has encountered a fatal error

if this session is no longer active, either because the session was explicitly closed, a new session has been created or the camera device has been closed.

Remarks

Cancel any ongoing repeating capture set by either #setRepeatingRequest setRepeatingRequest or #setRepeatingBurst. Has no effect on requests submitted through #capture capture or #captureBurst captureBurst.

Any currently in-flight captures will still complete, as will any burst that is mid-capture. To ensure that the device has finished processing all of its capture requests and is in ready state, wait for the StateCallback#onReady callback after calling this method.

Java documentation for android.hardware.camera2.CameraCaptureSession.stopRepeating().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Android.Hardware.Camera2.CameraCaptureSession.SetRepeatingRequest(Android.Hardware.Camera2.CaptureRequest%2c+.CaptureCallback%2c+.CaptureCallback)>