Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 819 Bytes

devsettings.md

File metadata and controls

50 lines (32 loc) · 819 Bytes
id title officialDoc
devsettings
DevSettings

DevSettings provides methods for developers.

Types

handler

Alias for unit => unit.

reason

Alias for string.

title

Alias for string.

Methods

addMenuItem

To add a custom entry to the developer menu. As arguments, takes a title (of type string) and a handler function (of type unit => unit) to be called when the menu item is pressed.

addMenuItem: (title, handler) => unit

reload

To trigger a reload of the application.

reload: unit => unit

reloadWithReason

To trigger a reload of the application, with a reason (of type string) which may be useful for debugging.

reloadWithReason: reason => unit