provide String Defaults
fun provideStringDefaults(event: Event?, vararg replacements: TextReplacements?): HashMap<String, String?>
Provides a prefilled HashMap
of specified replacements, given the necessary other parameters. The returned map can be directly used, as it is a text-placeholder (String) keyed version.
Return
A prefilled map of replacements.
Parameters
event
An optional event, that can provide context-based replacements. If null, context-based replacements will not be included in the returned map.
replacements
The replacements that should be included in the returned map. If null, an empty map will be returned. If the ALL constant is included in this array, it will include all predefined replacements, but should not be used in combination with others.