keyguard学习--KeyguardScreen

KeyguardScreen.java这个文件定义了一个接口,这个接口中定义了四个方法,是各个锁屏界面都要用到的。源码如下:

public interface KeyguardScreen {

    /**
     * Return true if your view needs input, so should allow the soft
     * keyboard to be displayed.
     */
    boolean needsInput();
    
    /**
     * This screen is no longer in front of the user.
     */
    void onPause();

    /**
     * This screen is going to be in front of the user.
     */
    void onResume();

    /**
     * This view is going away; a hook to do cleanup.
     */
    void cleanUp();
}


keyguard学习--KeyguardScreen_第1张图片



你可能感兴趣的:(keyguard学习--KeyguardScreen)