Delen via


LockScreenUnlockingEventArgs.GetDeferral Method

Definition

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.

Applies to