setSurfaceSize

abstract fun setSurfaceSize(width: Int, height: Int, scaleFactor: Double)

Tells the plugin how large a surface it is drawing into, and at what scale.