PinShortcutRequester

Requests pinned shortcuts from composition; obtain one with rememberPinShortcutRequester.

Properties

Link copied to clipboard

Whether the current launcher supports pin requests at all.

Functions

Link copied to clipboard
fun request(id: String, block: PinnedShortcutSpec.() -> Unit): Boolean

Asks the launcher to pin a shortcut described by block, exactly like com.mehdi.shortcut.ShortcutsScope.pinned. Unless block sets its own PinnedShortcutSpec.resultCallback, the requester installs one so the onResult callback passed to rememberPinShortcutRequester fires when the user confirms.