https://github.com/emilebosch/osx-traykit
A webkit browser in your tray! Inspired from menubar-webkit but in Xamarin.
https://github.com/emilebosch/osx-traykit
Last synced: 3 months ago
JSON representation
A webkit browser in your tray! Inspired from menubar-webkit but in Xamarin.
- Host: GitHub
- URL: https://github.com/emilebosch/osx-traykit
- Owner: emilebosch
- Created: 2014-11-09T21:30:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-10T02:05:24.000Z (over 10 years ago)
- Last Synced: 2025-01-14T03:35:14.819Z (5 months ago)
- Language: C#
- Homepage:
- Size: 144 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OSX-Traykit in Xamarin
Embed simple sites in your tray! Inspired by the excellent menubar-webkit.
## Exposed JS methods
Following methods are exposed to control the traykit from JS via the `window.tray`
Show the tray
```
window.tray.show()
```Hide the tray
```
window.tray.window.hide()
```Make the tray permanent
```
window.tray.setPinned(true/false)
```Set the user agent
```
window.tray.setUserAgent('useragentstring')
```Alert the user
````
window.tray.alert('title','message')
````Send a notificaiton to the notification center
```
window.tray.notify('title','message')
```Set a hotkey
```
window.tray.setHotkey({key:'', cb: func(){})
```