Allan Wang
07/14/2018, 5:07 AMclass BoardDefaults(private val context: Context) {
private val res = context.resources
...
}
Though you probably won’t want to hold a reference to resources since you already have context.
Keep in mind that kotlin objects are used for singletons, and they need empty constructors.