Debian Codegraph @

libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/OneHandedTransitionCallback.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.android.wm.shell.onehanded;
18
19 import android.graphics.Rect;
20
21 /**
22 * The start or stop one handed transition callback for gesture to get latest timing to handle
23 * touch region.(e.g: one handed activated, user tap out regions of displayArea to stop one handed)
24 */
25 public interface OneHandedTransitionCallback {
26 /**
27 * Called when one handed mode entering or exiting transition starting
28 */
29 default void onStartTransition(boolean isEntering) {
30 }
31
32 /**
33 * Called when start one handed transition finished
34 */
35 default void onStartFinished(Rect bounds) {
36 }
37
38 /**
39 * Called when stop one handed transition finished
40 */
41 default void onStopFinished(Rect bounds) {
42 }
43 }