Skip to content

Commit

Permalink
Update headers in README
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed Jun 3, 2021
1 parent bd09ff1 commit 09fd2c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Types that requireKTX provides extensions for:
- [NavBackStackEntry](#navbackstackentry)
- [WorkManager Data](#workmanager-data)

### Why?
## Why?

Take the example of grabbing a Fragment argument bundle and reading a String ID from it that should always be there: you have two choices, and none of them are great:

Expand Down Expand Up @@ -38,7 +38,7 @@ To make the nullable case more obvious and explicit, requireKTX also includes `g
val userId: String? = requireArguments().getStringOrNull("user_id")
```

### Dependencies
## Dependencies

requireKTX is available from MavenCentral.

Expand All @@ -59,6 +59,8 @@ dependencies {
}
```

## Available modules and extensions

### Bundle

Given a `Bundle`, you can require the following types of values:
Expand Down Expand Up @@ -145,7 +147,7 @@ class SomeWorker : Worker() {
}
```

### License
## License

Copyright 2021 Márton Braun

Expand Down

0 comments on commit 09fd2c6

Please sign in to comment.