MCPFeedback

Main public API for the MCPFeedback Android SDK. Singleton object providing single-call setup and feedback flow management.

Usage:

MCPFeedback.init(context, apiKey = "...", siteKey = "...")

Types

Link copied to clipboard
data class MCPFeedbackConfig(val apiKey: String, val siteKey: String, val shakeEnabled: Boolean, val baseUrl: String)

SDK configuration data class.

Functions

Link copied to clipboard
fun destroy()

Stops the SDK, releases resources, and unregisters the shake detector.

Link copied to clipboard
fun init(context: Context, apiKey: String, siteKey: String, shakeEnabled: Boolean = true, baseUrl: String? = null)

Initializes the MCPFeedback SDK.

Link copied to clipboard
fun initialize(apiKey: String, siteKey: String, shakeEnabled: Boolean = true, baseUrl: String? = null)

Context-less initialization (AND-LIFE-02). Reads applicationContext captured by com.mcpfeedback.sdk.internal.SdkInitializer via androidx.startup. Idempotent — safe to call redundantly. Throws IllegalStateException if called before the InitializationProvider has fired (only possible if the consumer has disabled it or calls this from pre-Application code).

Link copied to clipboard

Observe the progress of an ongoing upload by its UploadId. Additive public API introduced in v2.1 (AND-THREAD-03).

Link copied to clipboard
fun show(activity: Activity)

Opens the feedback flow for the given Activity. Captures a screenshot, then launches the annotation editor.

Link copied to clipboard

Submit feedback asynchronously via coroutines (AND-THREAD-03). Additive — does NOT replace the existing internal submission flow used by the in-SDK feedback form. Routes through SdkComponent.feedbackRepository.