interface.uts 896 字节
Newer Older
DCloud-yyl's avatar
DCloud-yyl 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
import { OnThemeChangeCallback } from '@dcloudio/uni-runtime'

export type OnThemeChange = (callback: OnThemeChangeCallback) => void

export interface Uni {
    /**
     * 取消监听系统主题状态变化。
     *
     * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/on-theme-change.html
     * @uniPlatform {
     *  "app": {
     *    "android": {
     *      "osVer": "5.0",
     *      "uniVer": "3.6.9",
     *      "unixVer": "4.17"
     *    },
     *    "ios": {
     *      "osVer": "12.0",
     *      "uniVer": "2.6.5",
     *      "unixVer": "x"
     *    }
     *  },
     *  "mp": {
     *    "weixin": {
     *      "hostVer": "√",
     *      "uniVer": "√",
     *      "unixVer": "x"
     *    },
     *  },
     *  "web": {
     *    "uniVer": "3.6.9",
     *    "unixVer": "x"
     *  }
     * }
     */
    onThemeChange(callback: OnThemeChangeCallback): void;
}