getPreferredSize

open fun getPreferredSize(context: Context, pluginId: String, instanceId: Int): Size?

Returns the plugin UI content's preferred Android pixel size before host decoration.