package android.view import android.content.Context import android.graphics.SurfaceTexture import android.graphics.Matrix class Surface(texture: SurfaceTexture) { fun release() {} } class TextureView(context: Context) { var alpha = 1f; var isOpaque = true val isAvailable = true; val surfaceTexture = SurfaceTexture() val width = 480; val height = 848 var surfaceTextureListener: SurfaceTextureListener? = null fun setTransform(matrix: Matrix) {} interface SurfaceTextureListener { fun onSurfaceTextureAvailable(texture: SurfaceTexture,w: Int,h: Int) fun onSurfaceTextureSizeChanged(texture: SurfaceTexture,w: Int,h: Int) fun onSurfaceTextureUpdated(texture: SurfaceTexture) fun onSurfaceTextureDestroyed(texture: SurfaceTexture): Boolean } }