Adapter - Type of the Adapter to which will be this data set action listener attached.public interface OnDataSetActionListener<Adapter>
| Modifier and Type | Method and Description |
|---|---|
boolean |
onDataSetActionSelected(Adapter adapter,
int action,
int position,
long id,
Object payload)
Invoked whenever the specified action was selected for the specified position
within the passed adapter in which is this callback registered.
|
boolean onDataSetActionSelected(@NonNull Adapter adapter, int action, int position, long id, @Nullable Object payload)
adapter - The adapter in which was the specified action selected.action - The action that was selected.position - The position for which was the specified action selected.id - An id of the item at the specified position within the current data set of the
passed adapter.payload - Additional payload data for the selected action. May be null if no
payload has been specified.True if the action has been handled, false otherwise.