FeedbackClientConfig

data class FeedbackClientConfig(val baseUrl: String, val appKey: String, val defaultPlatform: FeedbackPlatform = FeedbackPlatform.current)(source)

Immutable configuration for FeedbackClient.

Contains server connectivity settings, your app's public API credentials from the CupThread developer console, and default device metadata defaults.

Example:

val config = FeedbackClientConfig(
baseUrl = "https://api.cupthread.com",
appKey = "app_live_sampleAppKey123",
defaultPlatform = FeedbackPlatform.ANDROID
)
val client = FeedbackClient(config)

Constructors

Link copied to clipboard
constructor(baseUrl: String, appKey: String, defaultPlatform: FeedbackPlatform = FeedbackPlatform.current)

Properties

Link copied to clipboard

Public app key generated in the CupThread developer dashboard (e.g., app_live_...).

Link copied to clipboard

API root URL (e.g. https://api.cupthread.com). Endpoint paths are appended directly, so this URL should not contain trailing slashes or subpaths.

Link copied to clipboard

Default platform reported on feedback drafts when none is explicitly provided; defaults to FeedbackPlatform.current (FeedbackPlatform.ANDROID).