The UI API provides a comprehensive set of tools for creating rich user interfaces and interacting with the Puter desktop environment. It includes window management, dialogs, and desktop integration features.
puter.ui.authenticateWithPuter()
- Authenticate with Puterputer.ui.alert()
- Show alert dialogsputer.ui.prompt()
- Show input promptsputer.ui.createWindow()
- Create new windowsputer.ui.setWindowTitle()
- Set window titleputer.ui.setWindowSize()
- Set window dimensionsputer.ui.setWindowPosition()
- Set window positionputer.ui.setWindowWidth()
- Set window widthputer.ui.setWindowHeight()
- Set window heightputer.ui.setWindowX()
- Set window X positionputer.ui.setWindowY()
- Set window Y positionputer.ui.showOpenFilePicker()
- Show file open dialogputer.ui.showSaveFilePicker()
- Show file save dialogputer.ui.showDirectoryPicker()
- Show directory pickerputer.ui.launchApp()
- Launch other applicationsputer.ui.parentApp()
- Get parent application infoputer.ui.exit()
- Exit the applicationputer.ui.setMenubar()
- Set application menubarputer.ui.on()
- Register event handlersputer.ui.onLaunchedWithItems()
- Handle launch with itemsputer.ui.wasLaunchedWithItems()
- Check if launched with itemsputer.ui.onWindowClose()
- Handle window close eventsputer.ui.showColorPicker()
- Show color pickerputer.ui.showFontPicker()
- Show font pickerputer.ui.socialShare()
- Share content socially