Screen.setIosSwipeBack
函数式 API
setIosSwipeGestureEnabled也可以通过它使用相同的功能。
功能说明
开启或关闭在 iOS 上通过滑动屏幕返回的功能。 isEnabled为 true如果为真,就可以通过滑动返回, false如果为假,则会停用。
类型
Screen.setIosSwipeBack(options: SetIosSwipeGestureEnabledOptions): Promise<void>;Params
interface SetIosSwipeGestureEnabledOptions {
isEnabled: boolean;
}Response
无。
示例代码
import { Screen } from "@apps-in-toss/web-framework";
// 想关闭滑动返回时
await Screen.setIosSwipeBack({ isEnabled: false });
// 想再次开启滑动返回时
await Screen.setIosSwipeBack({ isEnabled: true });这有帮助吗?