LockScreenUnlockingEventArgs.GetDeferral Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a LockScreenUnlockingDeferral, which defers the unlocking of the device. To show an unlock animation, your lock screen app must:
- Register to be notified of unlocking via the Unlocking event.
- In the Unlocking event handler, call GetDeferral.
- Kick off an animation. + When that animation completes, call Complete on the deferral to end the deferral.
- Note: If the animation takes too long, your lock screen app will be terminated by the system and potentially removed as the user’s default lock app.
public:
virtual LockScreenUnlockingDeferral ^ GetDeferral() = GetDeferral;
LockScreenUnlockingDeferral GetDeferral();
public LockScreenUnlockingDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As LockScreenUnlockingDeferral
Returns
An unlock deferral.