|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.app.Listener
danger.ui.View
danger.ui.Container
danger.lock.CustomKeyGuardView
public abstract class CustomKeyGuardView
Override this to create your own custom keyguard screen, complete with anything you want. When you're finished, use SystemLockManager.registerKeyGuardView().
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CustomKeyGuardView()
|
|
| Method Summary | |
|---|---|
boolean |
blocksSystemSleep()
Override and return true if you want to prevent the device from entering system sleep during keyguard. |
ResourceDatabase |
getResources()
Get the resources of the app that instantiated this class. |
void |
onEnter()
Override to have specific code run when your keyguard window is shown. |
void |
onExit()
Override to have specific code run when your keyguard window is hidden. |
void |
setAcceptFocus(boolean accept)
It is not valid to call setAcceptFocus() here. |
void |
setHeight(int height)
It is not valid to call setHeight() here. |
void |
setSize(int width,
int height)
It is not valid to call setSize() here. |
void |
setWidth(int width)
It is not valid to call setWidth() here. |
| Methods inherited from class danger.app.Listener |
|---|
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomKeyGuardView()
| Method Detail |
|---|
public boolean blocksSystemSleep()
public final ResourceDatabase getResources()
public final void setSize(int width,
int height)
setSize in class Viewpublic final void setWidth(int width)
setWidth in class Viewpublic final void setHeight(int height)
setHeight in class Viewpublic final void setAcceptFocus(boolean accept)
setAcceptFocus in class Viewpublic void onEnter()
public void onExit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||