Skip to content

Commit

Permalink
Update documentation to add upsertItem method
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroule committed Sep 30, 2018
1 parent f6e3ee3 commit 6b3ad76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/COMPONENT_DIALOGS_LIST.MD
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ When your models are ready to be used by adapter, you can simply add them to the
* adapter.addItems(List<DIALOG> items) - adds a new dialog list to the end of the list;
* adapter.addItem(DIALOG dialog) - adds one dialog to the end of the list
* adapter.addItem(int position, DIALOG dialog) - adds a new dialog to the specified position.
* adapter.upsertItem(DIALOG dialog) - adds one dialog to the end of the list if not exists, otherwise updates the existing dialog.
#### Updating dialogs
If dialog has changed, you can update it by position in list by calling `adapter.updateItem(int position, DIALOG item)` or update it by dialog id by calling `adapter.updateItemById(DIALOG item)`
Expand Down

0 comments on commit 6b3ad76

Please sign in to comment.