create

fun create(id: String, inputType: ContextInput, relevantCheck: ContextType.Relevant): ContextType

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.

inputType

ContextInput what type of input this type monitors.

relevantCheck

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.

inputType

ContextInput what type of input this type monitors.

addToContextList

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

relevantCheck

Relevant instance that checks inputs for type relevance.