ReadableConfig

@RequiresApi(21) interface ReadableConfig : Config
androidx.camera.core.impl.ReadableConfig

Interface that can be extended to create APIs for reading specific options.

ReadableConfig objects are also Config objects, so can be passed to any method that expects a Config.

Summary

Public methods
open Boolean
containsOption(@NonNull id: Config.Option<*>)

open Unit
findOptions(@NonNull idSearchString: String, @NonNull matcher: Config.OptionMatcher)

abstract Config

Returns the underlying immutable Config object.

open Config.OptionPriority
getOptionPriority(@NonNull opt: Config.Option<*>)

open MutableSet<Config.OptionPriority!>
getPriorities(@NonNull option: Config.Option<*>)

open MutableSet<Config.Option<*>!>

open ValueT?
retrieveOption(@NonNull id: Config.Option<ValueT>)

open ValueT?
retrieveOption(@NonNull id: Config.Option<ValueT>, @Nullable valueIfMissing: ValueT?)

open ValueT?
retrieveOptionWithPriority(@NonNull id: Config.Option<ValueT>, @NonNull priority: Config.OptionPriority)

Public methods

containsOption

open fun containsOption(@NonNull id: Config.Option<*>): Boolean

findOptions

open fun findOptions(
    @NonNull idSearchString: String,
    @NonNull matcher: Config.OptionMatcher
): Unit

getConfig

@NonNull abstract fun getConfig(): Config

Returns the underlying immutable Config object.

Return
Config The underlying Config object.

getOptionPriority

@NonNull open fun getOptionPriority(@NonNull opt: Config.Option<*>): Config.OptionPriority

getPriorities

@NonNull open fun getPriorities(@NonNull option: Config.Option<*>): MutableSet<Config.OptionPriority!>

listOptions

@NonNull open fun listOptions(): MutableSet<Config.Option<*>!>

retrieveOption

@Nullable open fun <ValueT : Any!> retrieveOption(@NonNull id: Config.Option<ValueT>): ValueT?

retrieveOption

@Nullable open fun <ValueT : Any!> retrieveOption(
    @NonNull id: Config.Option<ValueT>,
    @Nullable valueIfMissing: ValueT?
): ValueT?

retrieveOptionWithPriority

@Nullable open fun <ValueT : Any!> retrieveOptionWithPriority(
    @NonNull id: Config.Option<ValueT>,
    @NonNull priority: Config.OptionPriority
): ValueT?