Constructor
# new AppMenu(context, params)
Create new desktop app menu.
Parameters:
Name | Type | Description |
---|---|---|
context |
BrowserWindow
|
the electron browser window |
params |
Object
|
|
register |
boolean
|
immediately register the menu or defer |
handlers |
Object
|
game handlers to attach e.g. storage |
Methods
# attach(handler, instance) → {void}
Attach handlers for the menu for callback behaviour
Parameters:
Name | Type | Description |
---|---|---|
handler |
string
|
the handler key |
instance |
Object
|
the handler instance |
void