FeatureFlag

data class FeatureFlag(val id: String, val enabled: Boolean, val propertiesJson: String, val trackingString: String? = null) : IPutIntoJson<JSONObject?> , IPropertiesObject

Represents a Braze Feature Flag with its identifier, enabled state, and properties.

Constructors

Link copied to clipboard
internal constructor(id: String, enabled: Boolean, propertiesJson: String, trackingString: String? = null)
internal constructor(id: String, enabled: Boolean, properties: JSONObject, trackingString: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
open override val properties: JSONObject

The object containing the key-value pairs.

Link copied to clipboard
private val propertiesJson: String
Link copied to clipboard
internal val trackingString: String?

Functions

Link copied to clipboard
internal fun deepcopy(): FeatureFlag
Link copied to clipboard
private fun doesKeyExist(key: String): Boolean
Link copied to clipboard
open override fun forJsonPut(): JSONObject
Link copied to clipboard

Get a boolean property.

Link copied to clipboard
open fun getImageProperty(key: String): String?

Get an image property.

Link copied to clipboard
open fun getJSONProperty(key: String): JSONObject?

Get a JSON property.

Link copied to clipboard

Get a number property.

Link copied to clipboard

Get a string property.

Link copied to clipboard

Get an datetime property.

Link copied to clipboard
private fun getValue(key: String, expectedPropertyType: String): Any?