CustomLayer

fun CustomLayer(layerId: String, host: CustomLayerHost)

Parameters

layerId

mandatory custom layer id.

host

an instance of user-defined OpenGL ES renderer. Note: there is no API to get instance of CustomLayerHost from CustomLayer after setting it here so this instance should be cached on user's end if needed.