<

{{title}}

{{file.summary.functions.pct}}%

Functions
{{file.summary.functions.covered}}/{{file.summary.functions.total}}

{{file.summary.branches.pct}}%

Branches
{{file.summary.branches.covered}}/{{file.summary.branches.total}}

{{file.summary.lines.pct}}%

Lines
{{file.summary.lines.covered}}/{{file.summary.lines.total}}
          
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                
import { SignResult } from './SignResult'; 
import { SdkEvent } from './SdkEvent'; 
 
/** 
 * `qianapp://` 协议命中时触发,SDK 自动取消该次 WebView 导航。 
 * 
 * 业务方在此决定下一步动作(关闭页面 / 跳转其他流程 / 留在原地 等)。 
 */ 
export type OnSignResult = (result: SignResult) => void; 
 
/** 容器层非协议事件回调,可选实现。 */ 
export type OnSdkEvent = (event: SdkEvent) => void; 
 
/** 
 * 渲染进程连续崩溃且 SDK 放弃自动恢复(永久白屏终态)时触发。 
 * 
 * 与 `OnSdkEvent` 的 `RenderProcessGoneEvent` 语义互补:后者是「每次崩溃」, 
 * 本回调是「已放弃恢复的终态」。宿主据此显示错误页 / 返回 / 提示重试。 
 */ 
export type OnRenderUnrecoverable = () => void; 
 
/** 
 * H5 标题 / 可后退状态变化回调(`onPageEnd` 快照)。 
 * 
 * 供嵌入模式(`TencentQianWebViewComponent`)宿主自绘顶栏更新标题与返回按钮禁用态。 
 * 注意:`canGoBack` 为整页导航快照,SPA 软路由不刷新;需要实时值请用 
 * `TencentQianWebViewController.canGoBack()`。 
 */ 
export type OnTitleChanged = (title: string, canGoBack: boolean) => void; 
 
/** 
 * 加载进度变化回调。`progress` 取值 0~100;`visible` 表示进度条是否应显示。 
 * 
 * 供嵌入模式(`TencentQianWebViewComponent`)宿主自绘进度条。 
 */ 
export type OnProgressChanged = (progress: number, visible: boolean) => void; 

              
Code coverage generated by bjc at {{date}}