diff --git a/source/includes/_profile.md.erb b/source/includes/_profile.md.erb index 1735f076..23679a8a 100644 --- a/source/includes/_profile.md.erb +++ b/source/includes/_profile.md.erb @@ -61,10 +61,10 @@ val params = hashMapOf( sdk.profile(params) // With callback -sdk.profile(params, object : Api.OnApiCallbackListener { - override fun onSuccess(response: JSONObject) { - Log.i(TAG, "Response: ${response.toString()}") - } +sdk.profile(params, object : OnApiCallbackListener() { + override fun onSuccess(response: JSONObject?) { + Log.i(TAG, "Response: ${response.toString()}") + } }) ```