IoConfig

@RequiresApi(21) interface IoConfig : ReadableConfig
androidx.camera.core.internal.IoConfig

Configuration containing IO related options.

Summary

Nested classes
abstract

Builder for a IoConfig.

Public methods
open Executor?
getIoExecutor(@Nullable valueIfMissing: Executor?)

Returns the executor that will be used for IO tasks.

open Executor

Returns the executor that will be used for IO tasks.

Inherited functions
Properties
static Config.Option<Executor!>!

Option: camerax.

Public methods

getIoExecutor

@Nullable open fun getIoExecutor(@Nullable valueIfMissing: Executor?): Executor?

Returns the executor that will be used for IO 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.

getIoExecutor

@NonNull open fun getIoExecutor(): Executor

Returns the executor that will be used for IO 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_IO_EXECUTOR

static val OPTION_IO_EXECUTOR: Config.Option<Executor!>!

Option: camerax.core.io.ioExecutor