SdkFeatures

data class SdkFeatures(val feedback: Boolean = true, val featureRequests: Boolean = true, val roadmap: Boolean = true, val changelog: Boolean = true)(source)

Feature availability switches configured remotely in the CupThread developer console.

Example:

val features = SdkFeatures(feedback = true, roadmap = false)
if (features.isEnabled(SdkFeature.ROADMAP)) {
// Render roadmap tab
}

Constructors

Link copied to clipboard
constructor(feedback: Boolean = true, featureRequests: Boolean = true, roadmap: Boolean = true, changelog: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the What's-New changelog screens and overlays are enabled.

Link copied to clipboard

Whether the feature request board and voting are enabled.

Link copied to clipboard

Whether the feedback composer surface is enabled.

Link copied to clipboard

Whether the public roadmap kanban board is enabled.

Functions

Link copied to clipboard

Checks if the given feature is enabled for this app.