unregisterPopGestureCallback static method

void unregisterPopGestureCallback(
  1. BuildContext context
)

注销左滑返回手势的回调函数

参数:

  • context: 注册回调时使用的 BuildContext

示例:

PopscopeIos.registerPopGestureCallback(() {
  print('手势触发');
}, context);

// 组件销毁时注销
PopscopeIos.unregisterPopGestureCallback(context);

Implementation

static void unregisterPopGestureCallback(BuildContext context) {
  PopscopeIosPlatform.instance.unregisterPopGestureCallback(context);
  PopscopeLogger.info(
    'unregisterPopGestureCallback context: ${context.hashCode}',
  );
}