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

above

the layer id to be added above to

at

the index to be added at

below

the layer id to be added below to

layer

the layer to add