ClassRandom.kt 385 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.example.tolucagraphics

import android.view.View
import android.widget.TextView
import okhttp3.WebSocket
import okhttp3.WebSocketListener

class ClassRandom :WebSocketListener() {
    override fun onMessage(webSocket: WebSocket, text: String) {
        super.onMessage(webSocket, text)
        var view : View?=null
        view?.findViewById<TextView>(R.id.textID)
    }
}