layerAtPosition

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

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