java.lang.Object | |
↳ | cyanogenmod.externalviews.KeyguardExternalViewProviderService.Provider |
This class provides an interface for the host and service to communicate to each other.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method was deprecated
in API level 5.
As of SDK version
ELDERBERRY
this does nothing.
| |||||||||||
Called when the host view is attached to a window.
| |||||||||||
Called from the host when the keyguard is displaying the security screen for the user to
enter their pin, password, or pattern.
| |||||||||||
Callback used for getting the view to be displayed within the host's content.
| |||||||||||
Called when the host view is detached from a window.
| |||||||||||
Called from the host when the user has unlocked the device.
| |||||||||||
Called from the host when the keyguard is being shown to the user.
| |||||||||||
Called from the host when the user is swiping the lockscreen
to transition into the live lock screen
| |||||||||||
Called from the host when the screen is turned off.
| |||||||||||
Called from the host when the screen is turned on.
| |||||||||||
Request that the keyguard be dismissed.
| |||||||||||
Request that the keyguard be dismissed and the activity provided by the given intent be
started once the keyguard is dismissed.
| |||||||||||
This method should be called when the provided view needs to change from interactive to
non-interactive and vice versa.
| |||||||||||
Call this method when you like to slide in the lockscreen on top of
your live lockscreen.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This method was deprecated
in API level 5.
As of SDK version ELDERBERRY
this does nothing.
Call this method when you would like to take focus and hide the notification panel.
You should call this method if your component requires focus and the users's attention. The user will still be able to bring the notifications back into view by sliding down from the status bar. Calling this method has no effect for non-interactive components.
Called from the host when the keyguard is displaying the security screen for the user to enter their pin, password, or pattern.
Interactive components will no longer have focus when the bouncer is displayed and should enter a paused or idle state while the bouncer is being shown.
showing | True if the bouncer is being show or false when it is dismissed without the device being unlocked. |
---|
Callback used for getting the view to be displayed within the host's content.
Called when the host view is detached from a window.
Called from the host when the user has unlocked the device. Once this is called the lock lock screen is no longer being displayed.
The view component should enter a paused state when this is called, and save any state information that may be needed once the lock screen is displayed again. For example, a non-interactive component that provides animated visuals should pause playback of those animations and save the state, if necessary, of that animation.
Called from the host when the keyguard is being shown to the user.
screenOn | True if the screen is currently on. |
---|
Called from the host when the user is swiping the lockscreen to transition into the live lock screen
swipeProgress | [0-1] represents the progress of the swipe |
---|
Called from the host when the screen is turned off.
The provided view should provided view should pause its activity, if not currently in a paused state, and do any work necessary to be ready when the screen is turned back on. This will allow for a seamless user experience once the screen is turned on.
Called from the host when the screen is turned on.
The provided view should return to a running state when this is called. For example, a non-interactive component that provides animated visuals should resume playback of those animations.
Request that the keyguard be dismissed. Calling this method will dismiss the lock screen, if it is a not secure, or present the user with the security screen for the user to enter their security code to finish dismissing the lock screen.
If the user has a secure lock screen and dismisses the bouncer without entering their
secure code, the lock screen will not be dismissed and
onBouncerShowing(boolean)
will be
called with onShowing
being set to false, indicating that the lock screen was not
dismissed as requested.
Request that the keyguard be dismissed and the activity provided by the given intent be started once the keyguard is dismissed. If a secure lock screen is being used the user will need to enter their correct security code to finish dismissing the lock screen.
If the user has a secure lock screen and dismisses the bouncer without entering their
secure code, the lock screen will not be dismissed and
onBouncerShowing(boolean)
will be
called with onShowing being set to false, indicating that the lock screen was not
dismissed as requested.
intent | An intent specifying an activity to launch. |
---|
This method should be called when the provided view needs to change from interactive to non-interactive and vice versa.
Interactive components can receive input focus and receive user interaction while non-interactive components never receive focus and are purely visual.
Call this method when you like to slide in the lockscreen on top of
your live lockscreen. Only relevant if you use
setInteractivity(boolean)