android-components / / Facts


object Facts (source)

Global API for collecting Fact objects and forwarding them to FactProcessor instances.


Name Summary
clearProcessors fun clearProcessors(): Unit
collect fun collect(fact: Fact): Unit
Collects a Fact and forwards it to all registered FactProcessor instances.
registerProcessor fun registerProcessor(processor: FactProcessor): Facts
Registers a new FactProcessor.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.