FileDocCategorySizeDatePackage
KeyguardSecurityView.javaAPI DocAndroid 5.1 API3165Thu Mar 12 22:22:42 GMT 2015com.android.keyguard

KeyguardSecurityView

public interface KeyguardSecurityView

Fields Summary
public static final int
SCREEN_ON
public static final int
VIEW_REVEALED
Constructors Summary
Methods Summary
public KeyguardSecurityCallbackgetCallback()
Get {@link KeyguardSecurityCallback} for the given object

return
KeyguardSecurityCallback

public voidhideBouncer(int duration)
Place the security view into non-bouncer mode. Animate transisiton if duration is non-zero.

param
duration millisends for the transisiton animation.

public booleanneedsInput()
Inquire whether this view requires IME (keyboard) interaction.

return
true if IME interaction is required.

public voidonPause()
Emulate activity life cycle within the view. When called, the view should clean up and prepare to be removed.

public voidonResume(int reason)
Emulate activity life cycle within this view. When called, the view should prepare itself to be shown.

param
reason the root cause of the event.

public voidreset()
Reset the view and prepare to take input. This should do things like clearing the password or pattern and clear error messages.

public voidsetKeyguardCallback(KeyguardSecurityCallback callback)
Interface back to keyguard to tell it when security

param
callback

public voidsetLockPatternUtils(com.android.internal.widget.LockPatternUtils utils)
Set {@link LockPatternUtils} object. Useful for providing a mock interface.

param
utils

public voidshowBouncer(int duration)
Place the security view into bouncer mode. Animate transisiton if duration is non-zero.

param
duration millisends for the transisiton animation.

public voidshowUsabilityHint()
Instruct the view to show usability hints, if any.

public voidstartAppearAnimation()
Starts the animation which should run when the security view appears.

public booleanstartDisappearAnimation(java.lang.Runnable finishRunnable)
Starts the animation which should run when the security view disappears.

param
finishRunnable the runnable to be run when the animation ended
return
true if an animation started and {@code finishRunnable} will be run, false if no animation started and {@code finishRunnable} will not be run