🔥 文档网站
EdgerOS Web-SDK is a front-end development kit that provides various interactive interfaces for the front end of EdgerOS App, and the front end of EdgerOS App correctly uses Web-SDK.
EdgerOS Web-SDK supports both JavaScript
and TypeScript
development.
you can use command: npm i @edgeros/web-sdk
to install EdgerOS Web-SDK.
- TypeScript
import '@edgeros/web-sdk'
- JavaScript
<script src="\\PATH/sdk.min.js"></script>
After the @edgeros/web-sdk
module is correctly import, the browser window
object will contain the edger
member:
console.log(window.edger); // Web-SDK object show
Most Web-SDK functions return Promise
objects, for example, the following function obtains the Web-SDK version:
edger.version().then(data => {
console.log('Version:', data.version);
}).catch(error => {
console.error(error);
});
- App front-end and back-end secure communication specifications See details: Security
- Front-end state and gestures. See details: State
- Web-SDK provides information about users who are currently accessing EdgerOS device. See details: Account
- App calls this interface to pop up system notify information. See details: Notify
- App front end can obtain and check related permissions by using these functions. See details: Permission
- Apps can share messages with each other by using these functions. See details: Share
- These functions provide current EdgerOS device network working information. See details: Network
- App can get EdgerOS current language information. See details: Language
- Get the current display theme of EdgerOS, the App can dynamically select its own display style according to the theme information. See details: Theme
- Obtain and control the current display orientation of EdgerOS. See details: Orientation
- Operate current mobile functions, such as camera, etc. See details: Mobile
- EdgerOS online payment system 翼辉支付. This payment system uses WeChat Pay or Alipay payment channels. App can use this payment system to complete on-site payments. See details: AcoPay
- EdgerOS App can get current safeArea information. SafeArea
- EdgerOS provides download function. See details: Download
- EdgerOS provides filesystem function. See details: Filesystem