init
fun init(context: Context, apiKey: String, siteKey: String, shakeEnabled: Boolean = true, baseUrl: String? = null)
Deprecated
Context is no longer required. Call initialize(apiKey, siteKey, ...) instead.
Replace with
initialize(apiKey, siteKey, shakeEnabled, baseUrl)Content copied to clipboard
Initializes the MCPFeedback SDK.
Parameters
context
Application or Activity context
apiKey
Your MCPFeedback API key
siteKey
Your site identifier
shakeEnabled
Whether shake-to-report is enabled (default: true)
baseUrl
Custom API base URL (default: https://app.mcpfeedback.com)