Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
afollestad committed Mar 12, 2019
1 parent 204f443 commit 1e5a58b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ First, declare an Item class:

```kotlin
data class Person(
var name: String,
var name: String,s
var arg: Int
)
```
Expand Down Expand Up @@ -300,19 +300,19 @@ dataSource.deselectAt(1)
dataSource.toggleSelectionAt(1)
val selected: Boolean = dataSource.isSelectedAt(1)

// Mass operations
dataSource.selectAll()
dataSource.deselectAll()

// Item operations, uses index operations under the hood
val item: Any = // ...
dataSource.select(item)
dataSource.deselect(item)
dataSource.toggleSelection(item)
val selected: Boolean = dataSource.isSelected(item)

// Mass operations
dataSource.selectAll()
dataSource.deselectAll()

// Misc operations
val count: Int = dataSource.selectionCount()
val count: Int = dataSource.getSelectionCount()
val hasSelection: Boolean = dataSource.hasSelection()

// Set a callback invoked when something is selected or deselected
Expand Down

0 comments on commit 1e5a58b

Please sign in to comment.