Skip to content

Porting from 2.x to 3.x

Giorgio Antonioli edited this page May 24, 2019 · 4 revisions

The version 3.x introduces the following breaking change:

  • The return type of VisibilityManager#itemVisibility has been changed to VisibilityManager.VisibilityType

Porting of VisibilityManager

You should replace the occurrences of the following constants with the following enum values:

  • VisibilityManager.SHOW_ALL -> VisibilityManager.VisibilityType.ALL
  • VisibilityManager.SHOW_ITEMS_ONLY -> VisibilityManager.VisibilityType.ITEMS_ONLY
  • VisibilityManager.SHOW_GROUPS_ONLY -> VisibilityManager.VisibilityType.GROUP_ONLY
  • VisibilityManager.SHOW_NONE -> VisibilityManager.VisibilityType.NONE