WhiteSlideAppParams Class Reference
- iOS
更新时间不可用
Whiteboard iOS SDK 2.16.147 公开接口。
@interface WhiteSlideAppParams: WhiteObject
成员
- showRenderError
- debug
- enableGlobalClick
- minFPS
- maxFPS
- resolution
- maxResolutionLevel
- forceCanvas
- bgColor
- invisibleBehavior
- resourceMaxRetries
- enableScale
- syncEventQueuePolicy
- navigationButtonMode
showRenderError
@property (nonatomic, assign) BOOL showRenderError;是否显示 Slide 中的错误提示
- `YES`:显示。
- `NO`:不显示 (默认)。Declared in SDK/WhiteSlideAppParams.h
debug
@property (nonatomic, assign) BOOL debug;是否开启 Debug 模式 (默认 NO)。Declared in SDK/WhiteSlideAppParams.h
enableGlobalClick
@property (nonatomic, assign) BOOL enableGlobalClick;是否可以通过点击 ppt 画面执行下一步功能 (默认 YES)。Declared in SDK/WhiteSlideAppParams.h
minFPS
@property (nonatomic, strong, nullable) NSNumber *minFPS;设置最小 fps, 应用会尽量保证实际 fps 高于此值, 此值越小, cpu 开销越小。未设置时由内嵌 Bridge 根据 WebView UA 决定。Declared in SDK/WhiteSlideAppParams.h
maxFPS
@property (nonatomic, strong, nullable) NSNumber *maxFPS;设置最大 fps, 应用会保证实际 fps 低于此值, 此值越小, cpu 开销越小。未设置时由内嵌 Bridge 根据 WebView UA 决定。Declared in SDK/WhiteSlideAppParams.h
resolution
@property (nonatomic, strong, nullable) NSNumber *resolution;渲染分辨倍率, 原始 ppt 有自己的像素尺寸,当在 2k 或者 4k 屏幕下,如果按原始 ppt 分辨率显示,画面会比较模糊。可以调整此值,使画面更清晰,同时性能开销也变高。
未设置时由内嵌 Bridge 根据 WebView UA 决定。Declared in SDK/WhiteSlideAppParams.h
maxResolutionLevel
@property (nonatomic, strong, nullable) NSNumber *maxResolutionLevel;Used to set the maximum display resolution. This value not only affects the canvas rendering resolution, but also affects the texture quality.
On low-end devices, reducing this value can greatly improve memory usage and image black screen phenomenon.
[0] 640 * 360
[1] 960 * 540;
[2] Normal 1280 * 720; --- default setting for mobile devices.
[3] HD 1920 * 1080;
[4] 3K 3200 × 1800, greater than 4 is calculated as 4; --- default setting for PC devices.
If unset, the embedded Bridge chooses a value based on the WebView user agent.Declared in SDK/WhiteSlideAppParams.h
forceCanvas
@property (nonatomic, assign) BOOL forceCanvas;Whether to force the use of 2D rendering, forcing the use of 2D rendering will lose some 3D, filters, and effects. (默认 NO)。Declared in SDK/WhiteSlideAppParams.h
bgColor
@property (nonatomic, copy, nullable) NSString *bgColor;background color for slide animations. ex. "#ff0000" (默认 nil)。Declared in SDK/WhiteSlideAppParams.h
invisibleBehavior
@property (nonatomic, copy, nullable) PPTInvisibleBehaviorKey invisibleBehavior;Specify the behavior after hiding the slide; Freeze will destroy the slide and replace it with a snapshot, while Pause simply pauses the slide @default: 'frozen'Declared in SDK/WhiteSlideAppParams.h
resourceMaxRetries
@property (nonatomic, strong) NSNumber *resourceMaxRetries;设置 Slide 资源加载最大重试次数 (默认 3)。Declared in SDK/WhiteSlideAppParams.h
enableScale
@property (nonatomic, assign) BOOL enableScale;是否允许缩放 Slide 内容 (默认 NO)。Declared in SDK/WhiteSlideAppParams.h
syncEventQueuePolicy
@property (nonatomic, copy, nullable) WhiteSlideSyncEventQueuePolicy syncEventQueuePolicy;fifo(默认)或 latest-pending-render;后者仅合并待执行的渲染页,不中断正在执行的任务。
Slide 同步事件队列策略。`fifo` 按顺序处理全部事件;`latest-pending-render` 允许交互模式跳过积压的中间页面渲染。未设置时由 Slide 使用 `fifo`。Declared in SDK/WhiteSlideAppParams.h
navigationButtonMode
@property (nonatomic, copy, nullable) WhiteSlideNavigationButtonMode navigationButtonMode;page(默认)按页,step 按动画步骤;控制 Slide 底部按钮。
Slide 底部前后导航按钮的行为。未设置时由 Slide 使用按页切换。Declared in SDK/WhiteSlideAppParams.h