提交 5b67a933 编写于 作者: D DCloud_LXH

feat: uts 平台对象和 API

上级 b809689f
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
* [Error](buildin-object-api/error.md) * [Error](buildin-object-api/error.md)
* [Console](buildin-object-api/console.md) * [Console](buildin-object-api/console.md)
* [全局](buildin-object-api/global.md) * [全局](buildin-object-api/global.md)
* 平台对象和 API
* [UTSAndroid](utsandroid.md)
* [UTSiOS](utsios.md)
* [关键词](keywords.md) * [关键词](keywords.md)
<!-- * [学习资料](learning.md) --> <!-- * [学习资料](learning.md) -->
* uts插件 * uts插件
......
# UTSAndroid
## 实例方法
### onAppConfigChange(callback)
<!-- UTSJSON.UTSAndroid.onAppConfigChange.description -->
<!-- UTSJSON.UTSAndroid.onAppConfigChange.param -->
<!-- UTSJSON.UTSAndroid.onAppConfigChange.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppConfigChange.compatibility -->
### offAppConfigChange(callback?)
<!-- UTSJSON.UTSAndroid.offAppConfigChange.description -->
<!-- UTSJSON.UTSAndroid.offAppConfigChange.param -->
<!-- UTSJSON.UTSAndroid.offAppConfigChange.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppConfigChange.compatibility -->
### onAppTrimMemory(callback?)
<!-- UTSJSON.UTSAndroid.onAppTrimMemory.description -->
<!-- UTSJSON.UTSAndroid.onAppTrimMemory.param -->
<!-- UTSJSON.UTSAndroid.onAppTrimMemory.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppTrimMemory.compatibility -->
### offAppTrimMemory(callback?)
<!-- UTSJSON.UTSAndroid.offAppTrimMemory.description -->
<!-- UTSJSON.UTSAndroid.offAppTrimMemory.param -->
<!-- UTSJSON.UTSAndroid.offAppTrimMemory.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppTrimMemory.compatibility -->
### onAppActivityPause(callback)
<!-- UTSJSON.UTSAndroid.onAppActivityPause.description -->
<!-- UTSJSON.UTSAndroid.onAppActivityPause.param -->
<!-- UTSJSON.UTSAndroid.onAppActivityPause.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppActivityPause.compatibility -->
### offAppActivityPause(callback?)
<!-- UTSJSON.UTSAndroid.offAppActivityPause.description -->
<!-- UTSJSON.UTSAndroid.offAppActivityPause.param -->
<!-- UTSJSON.UTSAndroid.offAppActivityPause.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppActivityPause.compatibility -->
### onAppActivityResume(callback)
<!-- UTSJSON.UTSAndroid.onAppActivityResume.description -->
<!-- UTSJSON.UTSAndroid.onAppActivityResume.param -->
<!-- UTSJSON.UTSAndroid.onAppActivityResume.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppActivityResume.compatibility -->
### offAppActivityResume(callback?)
<!-- UTSJSON.UTSAndroid.offAppActivityResume.description -->
<!-- UTSJSON.UTSAndroid.offAppActivityResume.param -->
<!-- UTSJSON.UTSAndroid.offAppActivityResume.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppActivityResume.compatibility -->
### onAppActivityDestroy(callback)
<!-- UTSJSON.UTSAndroid.onAppActivityDestroy.description -->
<!-- UTSJSON.UTSAndroid.onAppActivityDestroy.param -->
<!-- UTSJSON.UTSAndroid.onAppActivityDestroy.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppActivityDestroy.compatibility -->
### offAppActivityDestroy(callback?)
<!-- UTSJSON.UTSAndroid.offAppActivityDestroy.description -->
<!-- UTSJSON.UTSAndroid.offAppActivityDestroy.param -->
<!-- UTSJSON.UTSAndroid.offAppActivityDestroy.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppActivityDestroy.compatibility -->
### onAppActivityResult(callback)
<!-- UTSJSON.UTSAndroid.onAppActivityResult.description -->
<!-- UTSJSON.UTSAndroid.onAppActivityResult.param -->
<!-- UTSJSON.UTSAndroid.onAppActivityResult.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppActivityResult.compatibility -->
### offAppActivityResult(callback?)
<!-- UTSJSON.UTSAndroid.offAppActivityResult.description -->
<!-- UTSJSON.UTSAndroid.offAppActivityResult.param -->
<!-- UTSJSON.UTSAndroid.offAppActivityResult.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppActivityResult.compatibility -->
### onAppActivityBack(callback)
<!-- UTSJSON.UTSAndroid.onAppActivityBack.description -->
<!-- UTSJSON.UTSAndroid.onAppActivityBack.param -->
<!-- UTSJSON.UTSAndroid.onAppActivityBack.returnValue -->
<!-- UTSJSON.UTSAndroid.onAppActivityBack.compatibility -->
### offAppActivityBack(callback?)
<!-- UTSJSON.UTSAndroid.offAppActivityBack.description -->
<!-- UTSJSON.UTSAndroid.offAppActivityBack.param -->
<!-- UTSJSON.UTSAndroid.offAppActivityBack.returnValue -->
<!-- UTSJSON.UTSAndroid.offAppActivityBack.compatibility -->
### getAppContext()
<!-- UTSJSON.UTSAndroid.getAppContext.description -->
<!-- UTSJSON.UTSAndroid.getAppContext.param -->
<!-- UTSJSON.UTSAndroid.getAppContext.returnValue -->
<!-- UTSJSON.UTSAndroid.getAppContext.compatibility -->
### getUniActivity()
<!-- UTSJSON.UTSAndroid.getUniActivity.description -->
<!-- UTSJSON.UTSAndroid.getUniActivity.param -->
<!-- UTSJSON.UTSAndroid.getUniActivity.returnValue -->
<!-- UTSJSON.UTSAndroid.getUniActivity.compatibility -->
### getResourcePath(resourceName)
<!-- UTSJSON.UTSAndroid.getResourcePath.description -->
<!-- UTSJSON.UTSAndroid.getResourcePath.param -->
<!-- UTSJSON.UTSAndroid.getResourcePath.returnValue -->
<!-- UTSJSON.UTSAndroid.getResourcePath.compatibility -->
### exit()
<!-- UTSJSON.UTSAndroid.exit.description -->
<!-- UTSJSON.UTSAndroid.exit.param -->
<!-- UTSJSON.UTSAndroid.exit.returnValue -->
<!-- UTSJSON.UTSAndroid.exit.compatibility -->
### getDispatcher(threadName)
<!-- UTSJSON.UTSAndroid.getDispatcher.description -->
<!-- UTSJSON.UTSAndroid.getDispatcher.param -->
<!-- UTSJSON.UTSAndroid.getDispatcher.returnValue -->
<!-- UTSJSON.UTSAndroid.getDispatcher.compatibility -->
### getAppId()
<!-- UTSJSON.UTSAndroid.getAppId.description -->
<!-- UTSJSON.UTSAndroid.getAppId.param -->
<!-- UTSJSON.UTSAndroid.getAppId.returnValue -->
<!-- UTSJSON.UTSAndroid.getAppId.compatibility -->
### getOsTheme()
<!-- UTSJSON.UTSAndroid.getOsTheme.description -->
<!-- UTSJSON.UTSAndroid.getOsTheme.param -->
<!-- UTSJSON.UTSAndroid.getOsTheme.returnValue -->
<!-- UTSJSON.UTSAndroid.getOsTheme.compatibility -->
### isUniMp()
<!-- UTSJSON.UTSAndroid.isUniMp.description -->
<!-- UTSJSON.UTSAndroid.isUniMp.param -->
<!-- UTSJSON.UTSAndroid.isUniMp.returnValue -->
<!-- UTSJSON.UTSAndroid.isUniMp.compatibility -->
### getAppName()
<!-- UTSJSON.UTSAndroid.getAppName.description -->
<!-- UTSJSON.UTSAndroid.getAppName.param -->
<!-- UTSJSON.UTSAndroid.getAppName.returnValue -->
<!-- UTSJSON.UTSAndroid.getAppName.compatibility -->
### getAppVersion()
<!-- UTSJSON.UTSAndroid.getAppVersion.description -->
<!-- UTSJSON.UTSAndroid.getAppVersion.param -->
<!-- UTSJSON.UTSAndroid.getAppVersion.returnValue -->
<!-- UTSJSON.UTSAndroid.getAppVersion.compatibility -->
### getInnerVersion()
<!-- UTSJSON.UTSAndroid.getInnerVersion.description -->
<!-- UTSJSON.UTSAndroid.getInnerVersion.param -->
<!-- UTSJSON.UTSAndroid.getInnerVersion.returnValue -->
<!-- UTSJSON.UTSAndroid.getInnerVersion.compatibility -->
### isUniAppX()
<!-- UTSJSON.UTSAndroid.isUniAppX.description -->
<!-- UTSJSON.UTSAndroid.isUniAppX.param -->
<!-- UTSJSON.UTSAndroid.isUniAppX.returnValue -->
<!-- UTSJSON.UTSAndroid.isUniAppX.compatibility -->
\ No newline at end of file
# UTSiOS
## 实例方法
### getCurrentViewController()
<!-- UTSJSON.UTSiOS.getCurrentViewController.description -->
<!-- UTSJSON.UTSiOS.getCurrentViewController.param -->
<!-- UTSJSON.UTSiOS.getCurrentViewController.returnValue -->
<!-- UTSJSON.UTSiOS.getCurrentViewController.compatibility -->
### getKeyWindow()
<!-- UTSJSON.UTSiOS.getKeyWindow.description -->
<!-- UTSJSON.UTSiOS.getKeyWindow.param -->
<!-- UTSJSON.UTSiOS.getKeyWindow.returnValue -->
<!-- UTSJSON.UTSiOS.getKeyWindow.compatibility -->
### colorWithString(value)
<!-- UTSJSON.UTSiOS.colorWithString.description -->
<!-- UTSJSON.UTSiOS.colorWithString.param -->
<!-- UTSJSON.UTSiOS.colorWithString.returnValue -->
<!-- UTSJSON.UTSiOS.colorWithString.compatibility -->
### getResourcePath(resourceName)
<!-- UTSJSON.UTSiOS.getResourcePath.description -->
<!-- UTSJSON.UTSiOS.getResourcePath.param -->
<!-- UTSJSON.UTSiOS.getResourcePath.returnValue -->
<!-- UTSJSON.UTSiOS.getResourcePath.compatibility -->
### isSimulator()
<!-- UTSJSON.UTSiOS.isSimulator.description -->
<!-- UTSJSON.UTSiOS.isSimulator.param -->
<!-- UTSJSON.UTSiOS.isSimulator.returnValue -->
<!-- UTSJSON.UTSiOS.isSimulator.compatibility -->
### getDeviceId()
<!-- UTSJSON.UTSiOS.getDeviceId.description -->
<!-- UTSJSON.UTSiOS.getDeviceId.param -->
<!-- UTSJSON.UTSiOS.getDeviceId.returnValue -->
<!-- UTSJSON.UTSiOS.getDeviceId.compatibility -->
### getModel()
<!-- UTSJSON.UTSiOS.getModel.description -->
<!-- UTSJSON.UTSiOS.getModel.param -->
<!-- UTSJSON.UTSiOS.getModel.returnValue -->
<!-- UTSJSON.UTSiOS.getModel.compatibility -->
### getUserAgent()
<!-- UTSJSON.UTSiOS.getUserAgent.description -->
<!-- UTSJSON.UTSiOS.getUserAgent.param -->
<!-- UTSJSON.UTSiOS.getUserAgent.returnValue -->
<!-- UTSJSON.UTSiOS.getUserAgent.compatibility -->
### getAppId()
<!-- UTSJSON.UTSiOS.getAppId.description -->
<!-- UTSJSON.UTSiOS.getAppId.param -->
<!-- UTSJSON.UTSiOS.getAppId.returnValue -->
<!-- UTSJSON.UTSiOS.getAppId.compatibility -->
### getDataPath()
<!-- UTSJSON.UTSiOS.getDataPath.description -->
<!-- UTSJSON.UTSiOS.getDataPath.param -->
<!-- UTSJSON.UTSiOS.getDataPath.returnValue -->
<!-- UTSJSON.UTSiOS.getDataPath.compatibility -->
### isUniMp()
<!-- UTSJSON.UTSiOS.isUniMp.description -->
<!-- UTSJSON.UTSiOS.isUniMp.param -->
<!-- UTSJSON.UTSiOS.isUniMp.returnValue -->
<!-- UTSJSON.UTSiOS.isUniMp.compatibility -->
### getAppName()
<!-- UTSJSON.UTSiOS.getAppName.description -->
<!-- UTSJSON.UTSiOS.getAppName.param -->
<!-- UTSJSON.UTSiOS.getAppName.returnValue -->
<!-- UTSJSON.UTSiOS.getAppName.compatibility -->
### getAppVersion()
<!-- UTSJSON.UTSiOS.getAppVersion.description -->
<!-- UTSJSON.UTSiOS.getAppVersion.param -->
<!-- UTSJSON.UTSiOS.getAppVersion.returnValue -->
<!-- UTSJSON.UTSiOS.getAppVersion.compatibility -->
### getAppVersionCode()
<!-- UTSJSON.UTSiOS.getAppVersionCode.description -->
<!-- UTSJSON.UTSiOS.getAppVersionCode.param -->
<!-- UTSJSON.UTSiOS.getAppVersionCode.returnValue -->
<!-- UTSJSON.UTSiOS.getAppVersionCode.compatibility -->
### getOsLanguage()
<!-- UTSJSON.UTSiOS.getOsLanguage.description -->
<!-- UTSJSON.UTSiOS.getOsLanguage.param -->
<!-- UTSJSON.UTSiOS.getOsLanguage.returnValue -->
<!-- UTSJSON.UTSiOS.getOsLanguage.compatibility -->
### getAppWgtVersion()
<!-- UTSJSON.UTSiOS.getAppWgtVersion.description -->
<!-- UTSJSON.UTSiOS.getAppWgtVersion.param -->
<!-- UTSJSON.UTSiOS.getAppWgtVersion.returnValue -->
<!-- UTSJSON.UTSiOS.getAppWgtVersion.compatibility -->
### getHostLanguage()
<!-- UTSJSON.UTSiOS.getHostLanguage.description -->
<!-- UTSJSON.UTSiOS.getHostLanguage.param -->
<!-- UTSJSON.UTSiOS.getHostLanguage.returnValue -->
<!-- UTSJSON.UTSiOS.getHostLanguage.compatibility -->
### getHostVersion()
<!-- UTSJSON.UTSiOS.getHostVersion.description -->
<!-- UTSJSON.UTSiOS.getHostVersion.param -->
<!-- UTSJSON.UTSiOS.getHostVersion.returnValue -->
<!-- UTSJSON.UTSiOS.getHostVersion.compatibility -->
### getHostName()
<!-- UTSJSON.UTSiOS.getHostName.description -->
<!-- UTSJSON.UTSiOS.getHostName.param -->
<!-- UTSJSON.UTSiOS.getHostName.returnValue -->
<!-- UTSJSON.UTSiOS.getHostName.compatibility -->
### getHostPackageName()
<!-- UTSJSON.UTSiOS.getHostPackageName.description -->
<!-- UTSJSON.UTSiOS.getHostPackageName.param -->
<!-- UTSJSON.UTSiOS.getHostPackageName.returnValue -->
<!-- UTSJSON.UTSiOS.getHostPackageName.compatibility -->
### getHostTheme()
<!-- UTSJSON.UTSiOS.getHostTheme.description -->
<!-- UTSJSON.UTSiOS.getHostTheme.param -->
<!-- UTSJSON.UTSiOS.getHostTheme.returnValue -->
<!-- UTSJSON.UTSiOS.getHostTheme.compatibility -->
### getInnerVersion()
<!-- UTSJSON.UTSiOS.getInnerVersion.description -->
<!-- UTSJSON.UTSiOS.getInnerVersion.param -->
<!-- UTSJSON.UTSiOS.getInnerVersion.returnValue -->
<!-- UTSJSON.UTSiOS.getInnerVersion.compatibility -->
### getSystemSetting()
<!-- UTSJSON.UTSiOS.getSystemSetting.description -->
<!-- UTSJSON.UTSiOS.getSystemSetting.param -->
<!-- UTSJSON.UTSiOS.getSystemSetting.returnValue -->
<!-- UTSJSON.UTSiOS.getSystemSetting.compatibility -->
### isBaseIpa()
<!-- UTSJSON.UTSiOS.isBaseIpa.description -->
<!-- UTSJSON.UTSiOS.isBaseIpa.param -->
<!-- UTSJSON.UTSiOS.isBaseIpa.returnValue -->
<!-- UTSJSON.UTSiOS.isBaseIpa.compatibility -->
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册