Skip to content
Davide Steduto edited this page Jan 11, 2017 · 2 revisions

Useful and predefined events triggered by FlexibleAdapter.

/**
 * Payload occurs only for notifyItemChanged().
 * The value of this enumeration will be provided to the bind method to optimize the view
 * binding in order to update only the inner views interested for the change.
 * You can still pass your own Object instead of one of these values.
 */
public enum Payload {
	/** for the Parent/Header item */
	CHANGE,
	/** when no more load is triggered */
	NO_MORE_LOAD,
	/** when the filter has changed and item is still visible */
	FILTER,
	/** when header or parent receive back its child after the restoration */
	UNDO,
	/** when a subItem is added to the siblings below a parent */
	SUB_ITEM,
	/** when item has been moved, the header/parent receive this notification */
	MOVE,
	/** when linking a header from a sectionable item */
	LINK,
	/** when un-linking a header from a sectionable item */
	UNLINK,
	/** when items are notified after a merge */
	MERGE,
	/** when items are notified due to Selecting All items / Clearing Selection) */
	SELECTION,
	/** when items are notified after a split */
	SPLIT,
	/** when an item is expanded by the user */
	EXPANDED,
	/** when an item is collapsed by the user */
	COLLAPSED
}
Clone this wiki locally