public interface

Observable.Observer<T>

 androidx.camera.core.Observable.Observer<T>

Overview

A callback that can receive new values and errors from an Observable.

Summary

Methods
public voidonError(java.lang.Throwable t)

Called when the stream emits an error.

public voidonNewData(java.lang.Object value)

Called when the stream emits a new piece of data.

Methods

public void onNewData(java.lang.Object value)

Called when the stream emits a new piece of data.

Parameters:

value: The new data value

public void onError(java.lang.Throwable t)

Called when the stream emits an error.

Parameters:

t: The error.