public static class ViewfinderDefaults


Provides default values and configurations for viewfinder components.

Summary

Public fields

static @NonNull ViewfinderDefaults

Public methods

static final @NonNull ImplementationMode

The default ImplementationMode chosen based on device compatibility.

Public fields

INSTANCE

Added in 1.6.0-alpha01
public static @NonNull ViewfinderDefaults INSTANCE

Public methods

getImplementationMode

Added in 1.6.0-alpha01
public static final @NonNull ImplementationMode getImplementationMode()

The default ImplementationMode chosen based on device compatibility.

This value is determined by checking for known device quirks and API level limitations. It will be ImplementationMode.EMBEDDED on devices with known issues (such as on API level 24 and below), and the higher-performance ImplementationMode.EXTERNAL otherwise.