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

UseCaseEventConfig

interface UseCaseEventConfig
androidx.camera.core.internal.UseCaseEventConfig

Configuration containing options pertaining to EventCallback object.

Summary

Nested classes

abstract

Builder for a UseCaseEventConfig.

Public methods

abstract EventCallback?
getUseCaseEventCallback(@Nullable valueIfMissing: EventCallback?)

Returns the EventCallback.

abstract EventCallback

Returns the EventCallback.

Properties

static Option<EventCallback!>!

Option: camerax.

Public methods

getUseCaseEventCallback

@Nullable abstract fun getUseCaseEventCallback(@Nullable valueIfMissing: EventCallback?): EventCallback?

Returns the EventCallback.

Parameters
valueIfMissing EventCallback?: The value to return if this configuration option has not been set.
Return
EventCallback? The stored value or valueIfMissing if the value does not exist in this configuration.

getUseCaseEventCallback

@NonNull abstract fun getUseCaseEventCallback(): EventCallback

Returns the EventCallback.

Return
EventCallback The stored value, if it exists in this configuration.

Properties

OPTION_USE_CASE_EVENT_CALLBACK

static val OPTION_USE_CASE_EVENT_CALLBACK: Option<EventCallback!>!

Option: camerax.core.useCaseEventCallback