Scope

enum Scope : Enum<Scope>

Enum defining available Scopes in PopKorn BY_APP -> Instance will be created only once, for hence this instance will live forever BY_USE -> Instance will be created if no one is using it, meaning that instances will live as long as others are using it BY_HOLDER -> Instance will be created if used with a different holder, so will live as long as its holder (container) BY_NEW -> Instance will be created every time is needed, so won't live at all

Author

Pau Corbella

Since

1.0.0

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Scope

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.

Properties

Link copied to clipboard
Link copied to clipboard