closeWindowContainer

fun Context.closeWindowContainer(id: String, tag: String? = null)

Closes a WindowContainer by id and optional tag.

This method is open for android platform. And SpatialNavigator.closeWindowContainer is recommended to use in SpatialUI DSL.

Parameters

id

Id of window container that you want to close.

tag

When tag is null, all opened window containers with the same id are closed. When set, only the window with the same id and tag is closed.