-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# nodegui-os-utils | ||
|
||
A nodegui helper module which will contain OS specific native features which Qt doesnt support and hence requires native code in respective operting systems. | ||
|
||
# Installation | ||
|
||
``` | ||
npm install @nodegui/nodegui-os-utils | ||
``` | ||
|
||
# Usage | ||
|
||
```js | ||
import { Dock } from "@nodegui/nodegui-os-utils"; | ||
|
||
console.log("Showing the Dock Icon on MacOS"); | ||
Dock.show(); | ||
console.log("Hiding the Dock Icon on MacOS"); | ||
Dock.hide(); | ||
``` | ||
|
||
# Supported APIs | ||
|
||
## MacOS | ||
|
||
- Dock | ||
- `show()` - static method - Shows the dock icon of the nodegui app on macos. Noop on other platforms. | ||
- `hide()` - static method - Hides the dock icon of the nodegui app on macos. Noop on other platforms. | ||
|
||
# License | ||
|
||
MIT |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters