1 /** 2 * Copyright (c) 2021, 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 android.gui; 18 19 20 /** 21 * Input event drop modes: Input event drop options for windows and its children. 22 * 23 * @hide 24 */ 25 @Backing(type="int") 26 enum DropInputMode { 27 /** 28 * Default mode, input events are sent to the target as usual. 29 */ 30 NONE, 31 32 /** 33 * Window and its children will not receive any input even if it has a valid input channel. 34 * Touches and keys will be dropped. If a window is focused, it will remain focused but will 35 * not receive any keys. If the window has a touchable region and is the target of an input 36 * event, the event will be dropped and will not go to the window behind. ref: b/197296414 37 */ 38 ALL, 39 40 /** 41 * Similar to DROP but input events are only dropped if the window is considered to be 42 * obscured. ref: b/197364677 43 */ 44 OBSCURED 45 } 46