提交 7642a0ce 编写于 作者: Q qiang

feat(App): onThemeChange

上级 cc59d526
......@@ -5774,6 +5774,12 @@ var serviceContext = (function (vue) {
}
}, StartSoterAuthenticationProtocols, StartSoterAuthenticationOptions);
const onThemeChange = defineOnApi(ON_THEME_CHANGE, () => {
UniServiceJSBridge.on(ON_THEME_CHANGE, res => {
UniServiceJSBridge.invokeOnCallback(ON_THEME_CHANGE, res);
});
});
const getImageInfo = defineAsyncApi(API_GET_IMAGE_INFO, (options, { resolve, reject }) => {
const path = TEMP_PATH + '/download/';
plus.io.getImageInfo(extend(options, {
......@@ -10525,6 +10531,7 @@ var serviceContext = (function (vue) {
checkIsSupportSoterAuthentication: checkIsSupportSoterAuthentication,
checkIsSoterEnrolledInDevice: checkIsSoterEnrolledInDevice,
startSoterAuthentication: startSoterAuthentication,
onThemeChange: onThemeChange,
getImageInfo: getImageInfo,
getVideoInfo: getVideoInfo,
previewImage: previewImage,
......
import { ON_THEME_CHANGE } from '@dcloudio/uni-shared'
import { defineOnApi } from '@dcloudio/uni-api'
export const onThemeChange = defineOnApi<typeof uni.onThemeChange>(
ON_THEME_CHANGE,
() => {
UniServiceJSBridge.on(ON_THEME_CHANGE, (res) => {
UniServiceJSBridge.invokeOnCallback(ON_THEME_CHANGE, res)
})
}
)
......@@ -13,6 +13,7 @@ export * from './device/clipboard'
export * from './device/network'
export * from './device/soterAuthentication'
export * from './device/scanCode'
export * from './device/theme'
export * from './media/getImageInfo'
export * from './media/getVideoInfo'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册