The Developer Preview for Android 11 is now available; test it out and share your feedback.

CameraDeviceStateCallbacks

class CameraDeviceStateCallbacks
kotlin.Any
   ↳ androidx.camera.camera2.internal.CameraDeviceStateCallbacks

Different implementations of CameraDevice.StateCallback.

Summary

Public methods

static StateCallback

Returns a device state callback which calls a list of other callbacks.

static StateCallback
createComboCallback(@NonNull vararg callbacks: StateCallback!)

Returns a device state callback which calls a list of other callbacks.

static StateCallback

Returns a device state callback which does nothing.

Public methods

createComboCallback

@NonNull static fun createComboCallback(@NonNull callbacks: MutableList<StateCallback!>): StateCallback

Returns a device state callback which calls a list of other callbacks.

createComboCallback

@NonNull static fun createComboCallback(@NonNull vararg callbacks: StateCallback!): StateCallback

Returns a device state callback which calls a list of other callbacks.

createNoOpCallback

@NonNull static fun createNoOpCallback(): StateCallback

Returns a device state callback which does nothing.