Scoop API

scoop:scoop.window:0.1.0

NativeMenuLease

class NativeMenuLease

source · line 6
public
public class NativeMenuLease internal constructor(
    internal val menu: MenuOwner,
    public val id: NativeMenuUseId,
    private var closeCallback: (() -> Unit)?
) : Closeable

An explicit native use of a menu owned by a separate Cone.

function cancel

source · line 95
public
public fun cancel(): Unit

Retires this use immediately; the borrower still ends tracking and closes it.

function itemForNativeCommand

source · line 71
public
@Unsafe
    public fun itemForNativeCommand(command: Int): MenuItemId?

Maps the actual native command number; never truncates a public identity.