DrawerBuilder

Functions

Link copied to clipboard
fun action(@StringRes label: Int, icon: ToolkitIcon, @StringRes shortLabel: Int? = null, onClick: (Context) -> Unit)

An entry that runs onClick instead of navigating.

Link copied to clipboard
fun footer(builder: DrawerBuilder.() -> Unit)

Entries that always close the drawer, after every other entry and pinned to its bottom edge, such as the Toolkit's Settings, Help, Updates and Share. An entry the app adds later, even in a later drawer { } call, still comes before them.

Link copied to clipboard
fun link(key: NavKey, @StringRes label: Int, icon: ToolkitIcon, @StringRes shortLabel: Int? = null)

An entry that opens key, normally a page.

Link copied to clipboard
fun settings()

The settings list, with the Toolkit's standard label and its animated settings icon. The settings feature registers the page.

Link copied to clipboard
fun spacer()

Pins every entry after it to the bottom of the drawer.

Link copied to clipboard
fun supportUs()

The Support page: rating, sharing and donations. The support feature registers it.