diff --git a/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets b/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets index af3b918ed7608f91120ebe20963d9bd6996b03b1..1bca2fa8a241f9df7c1eb81b341c9eb58e4e8509 100644 --- a/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets +++ b/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets @@ -1,3 +1,23 @@ +/* +* Copyright (c) 2024 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* +* FAQ: 如何在Navigation页面中实现侧滑事件拦截 +*/ + +// [Start SideSlipEventInterception] import { ShowDialogSuccessResponse } from '@kit.ArkUI'; @Entry @@ -61,7 +81,9 @@ struct SideslipIntercept { console.info('Saving') } }) - return true ; + return true; }) } -} \ No newline at end of file +} + +// [End SideSlipEventInterception] \ No newline at end of file