FeatureFlag

Immutable snapshot of one feature flag as evaluated by Pushwoosh for this device.

Property getters return the default when the property is absent or its JSON type differs from the getter: a string is never converted to a number and vice versa.

Properties

Link copied to clipboard
val key: String
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
open fun getBool(property: String, defaultValue: Boolean): Boolean
Reads a boolean property.
Link copied to clipboard
open fun getJsonArray(property: String, defaultValue: JSONArray): JSONArray
Reads an array property.
Link copied to clipboard
open fun getJsonObject(property: String, defaultValue: JSONObject): JSONObject
Reads an object property.
Link copied to clipboard
open fun getNumber(property: String, defaultValue: Double): Double
Reads a numeric property; integers and decimals are both returned as double.
Link copied to clipboard
open fun getString(property: String, defaultValue: String): String
Reads a string property.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isEnabled(): Boolean
Returns whether the flag is on for this device and user, as evaluated by Pushwoosh.
Link copied to clipboard
open fun toString(): String