UIStoreData
@interface UIStoreData
Package: dev.joid.lib.ui.core.hook.store · Module: core · Source: UIStoreData.java
Annotation that gives a store its scope and the name of its file.
Description
Section titled “Description”Every UIStore subclass needs it.
Learn more
Section titled “Learn more”Elements
Section titled “Elements”| Type | Element | Default | Summary |
|---|---|---|---|
String | id | "" | Name of the file of a PERMANENT store, store/<id>.store in the data folder; empty uses the full name of the class. |
UIStoreScope | scope | UIStoreScope.LOCAL | How long the store lives and who shares it. |
Element details
Section titled “Element details”String id() default ""
Name of the file of a PERMANENT store, store/<id>.store in the data folder; empty uses the full name of the class.
UIStoreScope scope() default UIStoreScope.LOCAL
How long the store lives and who shares it.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
