MrShi
9 天以前 7c93550a244fcc74678344628c229b42438c729f
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
export declare const apiName = "device.screen.setAutoOrientation";
/**
 * 开启H5屏幕旋转 请求参数定义
 * @apiName device.screen.setAutoOrientation
 */
export interface IDeviceScreenSetAutoOrientationParams {
    /** true开启屏幕旋转,false停止自动旋转(会重置为竖屏) */
    enable: boolean;
    /** Android是否隐藏状态栏,仅在横屏模式下适用,竖屏模式下强制展示状态栏;iOS横屏下默认隐藏状态栏 */
    showStatusBar?: boolean;
    /** 横屏是是否显示导航栏 */
    showNavBar?: boolean;
}
/**
 * 开启H5屏幕旋转 返回结果定义
 * @apiName device.screen.setAutoOrientation
 */
export interface IDeviceScreenSetAutoOrientationResult {
}
/**
 * 开启H5屏幕旋转
 * @apiName device.screen.setAutoOrientation
 * @supportVersion ios: 6.0.16 android: 6.0.16
 * @author Android:零封; iOS:无最
 */
export declare function setAutoOrientation$(params: IDeviceScreenSetAutoOrientationParams): Promise<IDeviceScreenSetAutoOrientationResult>;
export default setAutoOrientation$;