Search in sources :

Example 1 with Key

use of com.zhuinden.simplestackdemomultistack.application.Key in project simple-stack by Zhuinden.

the class CloudSyncView method clickButton.

@OnClick(R.id.first_button)
public void clickButton(View view) {
    Key key = Backstack.getKey(getContext());
    key.selectDelegate(getContext()).getBackstack().goTo(AnotherKey.create());
}
Also used : AnotherKey(com.zhuinden.simplestackdemomultistack.presentation.paths.main.cloudsync.another.AnotherKey) Key(com.zhuinden.simplestackdemomultistack.application.Key) OnClick(butterknife.OnClick)

Example 2 with Key

use of com.zhuinden.simplestackdemomultistack.application.Key in project simple-stack by Zhuinden.

the class Multistack method restoreViewFromState.

public void restoreViewFromState(View view) {
    Key key = Backstack.getKey(view.getContext());
    BackstackDelegate backstackDelegate = key.selectDelegate(view.getContext());
    backstackDelegate.restoreViewFromState(view);
}
Also used : BackstackDelegate(com.zhuinden.simplestack.BackstackDelegate) Key(com.zhuinden.simplestackdemomultistack.application.Key)

Example 3 with Key

use of com.zhuinden.simplestackdemomultistack.application.Key in project simple-stack by Zhuinden.

the class Multistack method persistViewToState.

public void persistViewToState(View view) {
    if (view != null) {
        Key key = Backstack.getKey(view.getContext());
        BackstackDelegate backstackDelegate = key.selectDelegate(view.getContext());
        backstackDelegate.persistViewToState(view);
    }
}
Also used : BackstackDelegate(com.zhuinden.simplestack.BackstackDelegate) Key(com.zhuinden.simplestackdemomultistack.application.Key)

Aggregations

Key (com.zhuinden.simplestackdemomultistack.application.Key)3 BackstackDelegate (com.zhuinden.simplestack.BackstackDelegate)2 OnClick (butterknife.OnClick)1 AnotherKey (com.zhuinden.simplestackdemomultistack.presentation.paths.main.cloudsync.another.AnotherKey)1