UNPKG

766 BTypeScriptView Raw
1import Taro from '@tarojs/api';
2/**
3 * 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
4 */
5declare const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6/**
7 * 监听窗口尺寸变化事件
8 */
9declare const onWindowResize: typeof Taro.onWindowResize;
10/**
11 * 取消监听窗口尺寸变化事件
12 */
13declare const offWindowResize: typeof Taro.offWindowResize;
14declare const checkIsPictureInPictureActive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15export { setWindowSize, onWindowResize, offWindowResize, checkIsPictureInPictureActive };