setOpacity

fun setOpacity(key: String, opacity: Float)(source)

Sets one layer's opacity; LAYER_OPACITY_OPAQUE removes its entry rather than storing the default.