Delen via


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 ref class LockScreenUnlockingDeferral sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class LockScreenUnlockingDeferral final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class LockScreenUnlockingDeferral
Public NotInheritable Class LockScreenUnlockingDeferral
Inheritance
Object Platform::Object IInspectable LockScreenUnlockingDeferral
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Methods

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.

Applies to