react-native-navigation的迁移库

BaseScreenParams.java 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.reactnativenavigation.params;
  2. import android.os.Bundle;
  3. import java.util.List;
  4. public class BaseScreenParams {
  5. public String screenId;
  6. public String title;
  7. public String subtitle;
  8. public NavigationParams navigationParams;
  9. public List<TitleBarButtonParams> rightButtons;
  10. public TitleBarLeftButtonParams leftButton;
  11. public FabParams fabParams;
  12. public boolean overrideBackPressInJs;
  13. public StyleParams styleParams;
  14. public String fragmentCreatorClassName;
  15. public Bundle fragmentCreatorPassProps;
  16. public boolean animateScreenTransitions;
  17. public boolean isFragmentScreen() {
  18. return fragmentCreatorClassName != null;
  19. }
  20. public String getScreenInstanceId() {
  21. return navigationParams.screenInstanceId;
  22. }
  23. public String getNavigatorId() {
  24. return navigationParams.navigatorId;
  25. }
  26. public String getNavigatorEventId() {
  27. return navigationParams.navigatorEventId;
  28. }
  29. public boolean hasCollapsingTopBar() {
  30. return styleParams.collapsingTopBarParams != null;
  31. }
  32. public FabParams getFab() {
  33. return fabParams;
  34. }
  35. }