Skip to content

Component Communication

qiibeta edited this page Oct 27, 2019 · 4 revisions

Component Communication

Scope

Parent Scene

scope.register(key, object)

Child Scene

scope.getService<T>(key)

Android ViewModel

SceneViewModelProviders.of(Scene).get(Class<T>)

via Object constructor method