react-native-navigation的迁移库

Layout.java 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.reactnativenavigation.layouts;
  2. import android.view.View;
  3. import com.facebook.react.bridge.Callback;
  4. import com.reactnativenavigation.params.ContextualMenuParams;
  5. import com.reactnativenavigation.params.FabParams;
  6. import com.reactnativenavigation.params.SnackbarParams;
  7. import com.reactnativenavigation.params.TitleBarButtonParams;
  8. import com.reactnativenavigation.params.TitleBarLeftButtonParams;
  9. import com.reactnativenavigation.screens.Screen;
  10. import com.reactnativenavigation.views.SideMenu.Side;
  11. import java.util.List;
  12. public interface Layout extends ScreenStackContainer {
  13. View asView();
  14. boolean onBackPressed();
  15. void setTopBarVisible(String screenInstanceId, boolean hidden, boolean animated);
  16. void setTitleBarTitle(String screenInstanceId, String title);
  17. void setTitleBarSubtitle(String screenInstanceId, String subtitle);
  18. void setTitleBarRightButtons(String screenInstanceId, String navigatorEventId, List<TitleBarButtonParams> titleBarButtons);
  19. void setTitleBarLeftButton(String screenInstanceId, String navigatorEventId, TitleBarLeftButtonParams titleBarLeftButtonParams);
  20. void setFab(String screenInstanceId, String navigatorEventId, FabParams fabParams);
  21. void toggleSideMenuVisible(boolean animated, Side side);
  22. void setSideMenuVisible(boolean animated, boolean visible, Side side);
  23. void showSnackbar(SnackbarParams params);
  24. void onModalDismissed();
  25. boolean containsNavigator(String navigatorId);
  26. void showContextualMenu(String screenInstanceId, ContextualMenuParams params, Callback onButtonClicked);
  27. void dismissContextualMenu(String screenInstanceId);
  28. Screen getCurrentScreen();
  29. }