public interface SourceListExpansionListener
SourceListItem and SourceListCategory.boolean shouldExpandSourceListItem(SourceListItem item)
SourceListItem in a SourceList.
Determines whether an item is allowed to be expanded or notitem - the item that requests to be expanded.void sourceListItemExpanded(SourceListItem item)
SourceListItem is expanded in a SourceList.
The method will only be called if shouldExpandSourceListItem(SourceListItem)
returns true.item - the item that was expanded.boolean shouldCollapseSourceListItem(SourceListItem item)
SourceListItem in a SourceList.
Determines whether an item is allowed to be collapsed or notitem - the item that requests to be collapsed.void sourceListItemCollapsed(SourceListItem item)
SourceListItem is collapsed in a SourceList.
The method will only be called if shouldCollapseSourceListItem(SourceListItem)
returns true.item - the item that was collapsed.boolean shouldExpandSourceListCategory(SourceListCategory category)
SourceListCategory in a SourceList.
Determines whether a category is allowed to be expanded or notcategory - the category that requests to be expanded.void sourceListCategoryExpanded(SourceListCategory category)
SourceListCategory is expanded in a SourceList.
The method will only be called if shouldExpandSourceListCategory(SourceListCategory)
returns true.category - the category that was expanded.boolean shouldToCollapseSourceListCategory(SourceListCategory category)
SourceListCategory in a SourceList.
Determines whether a category is allowed to be collapsed or notcategory - the category that requests to be collapsed.void sourceListCategoryCollapsed(SourceListCategory category)
SourceListCategory is collapsed in a SourceList.
The method will only be called if shouldToCollapseSourceListCategory(SourceListCategory)
returns true.category - the category that was collapsed.