Skip to content

Group Basic Usage

qiibeta edited this page Oct 27, 2019 · 6 revisions

Basic Operation

Add

val scene = EmptyScene()
add(R.id.scene_container, scene, "TAG")

Remove

remove(scene)

Hide

hide(scene)

Show

show(scene)

Replace

val scene = EmptyScene()
replace(R.id.scene_container, scene, "TAG")

And and Hide

val scene = EmptyScene()
beginTransaction()
add(R.id.scene_container, scene, "TAG")
hide(scene)
commitTransaction()

Others

find Scene instance via tag

findSceneByTag(tag)

find tag via Scene instance

findTagSceneBy(tag)

check whether Scene is added

isAdded(scene)

check whether Scene is visible

isShow(scene)

get child Scene instance list

List<Scene> getSceneList()