layerAtPosition

fun layerAtPosition(layer: Layer, above: String? = null, below: String? = null, at: Int? = null): Pair<Layer, LayerPosition>

Convenient function to combine Layer and LayerPosition into Pair<Layer, LayerPosition>.

Return

Pair<Layer, LayerPosition>

Parameters

layer

the layer to add

above

the layer id to be added above to

below

the layer id to be added below to

at

the index to be added at