public interface

UseCase.EventCallback

 androidx.camera.core.UseCase.EventCallback

Subclasses:

PreviewExtender.PreviewExtenderAdapter, ImageCaptureExtender.ImageCaptureAdapter

Overview

Callback for when a UseCase transitions between attach/detach states.

Summary

Methods
public voidonAttach(CameraInfo cameraInfo)

Called when use case is attached to a camera.

public voidonDetach()

Called when use case is detached from the camera to clear additional resources used for the UseCase.

Methods

public void onAttach(CameraInfo cameraInfo)

Called when use case is attached to a camera.

Parameters:

cameraInfo: that current used.

public void onDetach()

Called when use case is detached from the camera to clear additional resources used for the UseCase.