OptionalDependencyBehavior

Controls the behavior of optional dependencies on a per-compilation basis.

Entries

Link copied to clipboard

Disable all optional dependencies. Default values are allowed on parameters but ignored by the compiler.

Link copied to clipboard

In this mode, the presence of a default value on a parameter alone indicates that dependency is optional.

Link copied to clipboard

In this mode, all optional dependencies must be annotated with @OptionalDependency (in both graph accessors as well as injected parameters). This can be desirable for consistency with accessors and/or to otherwise make the behavior more explicit.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.