HapticFeedbackConstants.java revision da996f390e17e16f2dfa60e972e7ebc4f868f37e
1/*
2 * Copyright (C) 2009 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
17package android.view;
18
19/**
20 * Constants to be used to perform haptic feedback effects via
21 * {@link View#performHapticFeedback(int)}
22 */
23public class HapticFeedbackConstants {
24
25    private HapticFeedbackConstants() {}
26
27    public static final int LONG_PRESS = 0;
28
29    /** @hide pending API council */
30    public static final int ZOOM_RING_TICK = 1;
31
32    /**
33     * Flag for {@link View#performHapticFeedback(int, int)
34     * View.performHapticFeedback(int, int)}: Ignore the setting in the
35     * view for whether to perform haptic feedback, do it always.
36     */
37    public static final int FLAG_IGNORE_VIEW_SETTING = 0x0001;
38
39    /**
40     * Flag for {@link View#performHapticFeedback(int, int)
41     * View.performHapticFeedback(int, int)}: Ignore the global setting
42     * for whether to perform haptic feedback, do it always.
43     */
44    public static final int FLAG_IGNORE_GLOBAL_SETTING = 0x0002;
45}
46