Configuration (v5)
Online configuration parameters access
val conf = APOnlineConfiguration().load()
val str = conf.parameters["string"] as String
val int = conf.parameters["integer"] as Double
val flt = conf.parameters["float"] as Double
val nul = conf.parameters["null"] as Any?
val bool = conf.parameters["boolean"] as Boolean
val obj = conf.parameters["object"] as Any
val arr = conf.parameters["string_array"] as ArrayList<String>
val empArr = conf.parameters["empty_array"] as ArrayList<String>
val intArr = conf.parameters["integer_array"] as ArrayList<Double>
Updated over 4 years ago