Join us for ⁠#Android11: The Beta Launch Show on June 3!

ThreadConfig

interface ThreadConfig
androidx.camera.core.internal.ThreadConfig

Configuration containing options pertaining to threads used by the configured object.

Summary

Nested classes

abstract

Builder for a ThreadConfig.

Public methods

abstract Executor?
getBackgroundExecutor(@Nullable valueIfMissing: Executor?)

Returns the executor that will be used for background tasks.

abstract Executor

Returns the executor that will be used for background tasks.

Properties

static Option<Executor!>!

Option: camerax.

Public methods

getBackgroundExecutor

@Nullable abstract fun getBackgroundExecutor(@Nullable valueIfMissing: Executor?): Executor?

Returns the executor that will be used for background tasks.

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

getBackgroundExecutor

@NonNull abstract fun getBackgroundExecutor(): Executor

Returns the executor that will be used for background tasks.

Return
Executor The stored value, if it exists in this configuration.
Exceptions
IllegalArgumentException if the option does not exist in this configuration.

Properties

OPTION_BACKGROUND_EXECUTOR

static val OPTION_BACKGROUND_EXECUTOR: Option<Executor!>!

Option: camerax.core.thread.backgroundExecutor