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

feat(App): onThemeChange

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