LockScreenUnlockingDeferral
LockScreenUnlockingDeferral
LockScreenUnlockingDeferral
LockScreenUnlockingDeferral
Class
Definition
Represents an unlock deferral. 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 : sealed class LockScreenUnlockingDeferral : ILockScreenUnlockingDeferralpublic sealed class LockScreenUnlockingDeferral : ILockScreenUnlockingDeferralPublic NotInheritable Class LockScreenUnlockingDeferral Implements ILockScreenUnlockingDeferral// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
Complete() Complete() Complete() Complete()
Notifies the system that your deferral is complete. If your deferral takes too long to complete, your lock screen app will be terminated by the system and potentially removed as the user’s default lock app.
public : void Complete()public void Complete()Public Function Complete() As void// You can use this method in JavaScript.