UNPKG

swipe-back-control

Version:

Capacitor plugin to enable or disable the swipe back gesture on iOS devices for specific pages.

23 lines (22 loc) 659 B
import { WebPlugin } from '@capacitor/core'; import type { SwipeBackControlPlugin } from './definitions'; export declare class SwipeBackControlWeb extends WebPlugin implements SwipeBackControlPlugin { private disabledPages; constructor(); private setupBackButtonHandler; enableSwipeBack(options: { enabled: boolean; currentPage: string; }): Promise<void>; disableSwipeBack(): Promise<void>; shouldBlockBackButton(): Promise<{ shouldBlock: boolean; currentPage: string; }>; private handlePopState; echo(options: { value: string; }): Promise<{ value: string; }>; }