Ffs

class Ffs(apiToken: String, url: String, liveUpdates: Boolean) : Client<Map<String, Boolean>>

Frontend library for FFS that synchronizes rules and their evaluations.

Constructors

Link copied to clipboard
fun Ffs(apiToken: String, url: String)
Link copied to clipboard
fun Ffs(apiToken: String, liveUpdates: Boolean)
Link copied to clipboard
fun Ffs(apiToken: String, url: String = DEFAULT_URL, liveUpdates: Boolean = DEFAULT_LIVE_UPDATES)

Functions

Link copied to clipboard
open override fun all(): Map<String, Boolean>
Link copied to clipboard
open fun initialize(onInitialized: () -> Unit?)
Link copied to clipboard
fun isEnabled(name: String): Boolean
open override fun isEnabled(name: String, default: Boolean): Boolean
Link copied to clipboard
open override fun putBoolean(key: String, value: Boolean): Config
Link copied to clipboard
open override fun putListBoolean(key: String, values: List<Boolean>): Config
Link copied to clipboard
open override fun putListNumber(key: String, values: List<Number>): Config
Link copied to clipboard
open override fun putListString(key: String, values: List<String>): Config
Link copied to clipboard
open override fun putNumber(key: String, value: Number): Config
Link copied to clipboard
open override fun putString(key: String, value: String): Config
Link copied to clipboard
open override fun setDeviceLocale(locale: String): Config
Link copied to clipboard
open override fun setDeviceName(name: String): Config
Link copied to clipboard
open override fun setDeviceOs(os: String): Config
Link copied to clipboard
open override fun setRolloutId(rolloutId: String): Config
Link copied to clipboard
open override fun setUserEmail(email: String): Config
Link copied to clipboard
open override fun setUserId(id: String): Config
Link copied to clipboard
open fun shutdown()

Properties

Link copied to clipboard
open override val apiToken: String
Link copied to clipboard
open override val env: JsonObject
Link copied to clipboard
open override val liveUpdates: Boolean
Link copied to clipboard
open override val url: String

Sources

Link copied to clipboard