FileDocCategorySizeDatePackage
ViewMediatorCallback.javaAPI DocAndroid 5.1 API2349Thu Mar 12 22:22:42 GMT 2015com.android.keyguard

ViewMediatorCallback

public interface ViewMediatorCallback
The callback used by the keyguard view to tell the {@link KeyguardViewMediator} various things.

Fields Summary
Constructors Summary
Methods Summary
public booleanisInputRestricted()

return
true if and only if Keyguard is showing or if Keyguard is disabled by an external app (legacy API)

public voidkeyguardDone(boolean authenticated)
Report that the keyguard is done.

param
authenticated Whether the user securely got past the keyguard. the only reason for this to be false is if the keyguard was instructed to appear temporarily to verify the user is supposed to get past the keyguard, and the user fails to do so.

public voidkeyguardDoneDrawing()
Report that the keyguard is done drawing.

public voidkeyguardDonePending()
Report that the keyguard is dismissable, pending the next keyguardDone call.

public voidkeyguardGone()
Report when keyguard is actually gone

public voidonUserActivityTimeoutChanged()
Tell view mediator that the keyguard view's desired user activity timeout has changed and needs to be reapplied to the window.

public voidplayTrustedSound()
Play the "device trusted" sound.

public voidreadyForKeyguardDone()
Report when the UI is ready for dismissing the whole Keyguard.

public voidsetNeedsInput(boolean needsInput)
Tell ViewMediator that the current view needs IME input

param
needsInput

public voiduserActivity()
Reports user activity and requests that the screen stay on.