OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / frameworks / base / policy / src / com / android / internal / policy / impl / KeyguardScreen.java
1 /*
2  * Copyright (C) 2008 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.internal.policy.impl;
18
19 /**
20  * Common interface of each {@link android.view.View} that is a screen of
21  * {@link LockPatternKeyguardView}.
22  */
23 public interface KeyguardScreen {
24
25     /**
26      * Return true if your view needs input, so should allow the soft
27      * keyboard to be displayed.
28      */
29     boolean needsInput();
30     
31     /**
32      * This screen is no longer in front of the user.
33      */
34     void onPause();
35
36     /**
37      * This screen is going to be in front of the user.
38      */
39     void onResume();
40
41     /**
42      * This view is going away; a hook to do cleanup.
43      */
44     void cleanUp();
45 }