Skip to content

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.

Every UIStore subclass needs it.

TypeElementDefaultSummary
Stringid""Name of the file of a PERMANENT store, store/<id>.store in the data folder; empty uses the full name of the class.
UIStoreScopescopeUIStoreScope.LOCALHow long the store lives and who shares it.

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

Report a problem with this page