2017-02-15 23:49:16 +08:00
|
|
|
---
|
|
|
|
title: "system api"
|
2018-09-25 22:09:28 +08:00
|
|
|
description: "system API provides some basic functions and values for current os."
|
2017-02-15 23:49:16 +08:00
|
|
|
---
|
|
|
|
|
2018-06-03 10:40:11 +08:00
|
|
|
# [Available APIs](../) >> system
|
2017-02-17 21:02:14 +08:00
|
|
|
|
2017-02-15 23:49:16 +08:00
|
|
|
## values
|
|
|
|
|
2018-06-03 10:40:11 +08:00
|
|
|
| name | values | description |
|
|
|
|
| --------- | :----: | -------------------------- |
|
|
|
|
| isWindows | 0 or 1 | check if the os is windows |
|
|
|
|
| isLinux | 0 or 1 | check if the os is linux |
|
|
|
|
| isOSX | 0 or 1 | check if the os is OSX |
|
|
|
|
| isDarwin | 0 or 1 | check if the os is Darwin |
|
2017-02-16 23:14:23 +08:00
|
|
|
|
2017-02-15 23:49:16 +08:00
|
|
|
## functions
|
2018-06-03 10:40:11 +08:00
|
|
|
|
|
|
|
| name | description |
|
|
|
|
| ---------- | -------------------------------------- |
|
|
|
|
| fileformat | return the icon of current file format |
|