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();
}

本文详细解读了KeyguardScreen接口,阐述了其在不同锁屏界面中的作用及使用方法,包括输入需求判断、界面暂停与恢复、界面清理等关键方法的应用场景。
2849

被折叠的 条评论
为什么被折叠?



