returnがエラーがでています。「data」をStringで取得しようとしていますが、どうすればいいでしょうか?
kotlin
1 fun getkIsLogin() { 2 //Volleyライブラリ(Cookieヘッダを送信,セッションの確認) 3 val requestQueue = getRequestQueue() 4 val importUri = Uri.withAppendedPath(Constants.kUriApiRoot, Constants.kIsLoginPath) 5 6 val jsonRequest = DefaultJsonObjectRequest(Method.GET, importUri.toString(), null, object: Listener<JSONObject> { 7 8 override public fun onResponse(response: JSONObject?): String { 9 10 val data = response?.getJSONObject(KeyName.Data)!!.getString(KeyName.Name) 11 12 return data 13 } 14 }, object: ErrorListener {
あなたの回答
tips
プレビュー