create
Creates a new ContextType and adds it to the context list for checking context inputs.
Return
ContextType instance
Author
fzzyhmstrs
Since
0.6.0
Parameters
id
Unique string id for this type. Duplicate ids will throw an exception.
input Type
ContextInput what type of input this type monitors.
relevant Check
Relevant instance that checks inputs for type relevance.
fun create(id: String, inputType: ContextInput, addToContextList: Boolean, relevantCheck: ContextType.Relevant): ContextType
Creates a new ContextType
Return
ContextType instance
Author
fzzyhmstrs
Since
0.6.0
Parameters
id
Unique string id for this type. Duplicate ids will throw an exception.
input Type
ContextInput what type of input this type monitors.
add To Context List
If true, will be added to the type list for monitoring inputs; if false, will act only as a map Key, and won't ever present itself as relevant when using getRelevantContext
relevant Check
Relevant instance that checks inputs for type relevance.