public class

QuirkSettings.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.camera.core.impl.QuirkSettings.Builder

Overview

Builder class for constructing QuirkSettings instances.

Summary

Constructors
publicBuilder()

Methods
public QuirkSettingsbuild()

Builds a new QuirkSettings instance with the configured options.

public QuirkSettings.BuilderforceDisableQuirks(java.util.Set<java.lang.Class> quirks)

Forces the specified quirks to be disabled, regardless of other settings.

public QuirkSettings.BuilderforceEnableQuirks(java.util.Set<java.lang.Class> quirks)

Forces the specified quirks to be enabled, regardless of other settings.

public QuirkSettings.BuildersetEnabledWhenDeviceHasQuirk(boolean enabled)

Sets whether to enable quirks if the device natively exhibits the quirk.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public QuirkSettings.Builder setEnabledWhenDeviceHasQuirk(boolean enabled)

Sets whether to enable quirks if the device natively exhibits the quirk.

public QuirkSettings.Builder forceEnableQuirks(java.util.Set<java.lang.Class> quirks)

Forces the specified quirks to be enabled, regardless of other settings.

public QuirkSettings.Builder forceDisableQuirks(java.util.Set<java.lang.Class> quirks)

Forces the specified quirks to be disabled, regardless of other settings.

public QuirkSettings build()

Builds a new QuirkSettings instance with the configured options.

Returns:

A new `QuirkSettings` instance.