LockScreenCallEndRequestedEventArgs
LockScreenCallEndRequestedEventArgs
LockScreenCallEndRequestedEventArgs
LockScreenCallEndRequestedEventArgs
Class
Definition
Controls the removal of an app from the lock screen.
public : sealed class LockScreenCallEndRequestedEventArgs : ILockScreenCallEndRequestedEventArgspublic sealed class LockScreenCallEndRequestedEventArgs : ILockScreenCallEndRequestedEventArgsPublic NotInheritable Class LockScreenCallEndRequestedEventArgs Implements ILockScreenCallEndRequestedEventArgs// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.ApplicationModel.Calls.LockScreenCallContract (introduced v1)
|
Remarks
If the app doesn't call GetDeferral to request a deferral, the app is removed from the lock screen as soon as the LockScreenCallUI.EndRequested event handler returns.
Properties
Deadline Deadline Deadline Deadline
Gets the deadline by which the app must complete the deferral.
public : DateTime Deadline { get; }public DateTimeOffset Deadline { get; }Public ReadOnly Property Deadline As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The deadline by which the app must complete the deferral.
Remarks
If the deadline passes and the app hasn't called Complete, the operating system acts as if the deferral completed.
The current deadline is 5 seconds after the user initiates the action that triggers the LockScreenCallUI.EndRequested event.
Methods
GetDeferral() GetDeferral() GetDeferral() GetDeferral()
Requests to defer the default behavior of removing the app from the lock screen.
public : LockScreenCallEndCallDeferral GetDeferral()public LockScreenCallEndCallDeferral GetDeferral()Public Function GetDeferral() As LockScreenCallEndCallDeferral// You can use this method in JavaScript.
When this method completes, it returns a LockScreenCallEndCallDeferral object that signals when the app no longer needs to defer the removal of itself from the lock screen.
Remarks
An app can extend its time on the lock screen by calling GetDeferral to request a deferral. If the app requested a deferral, the app is removed from the lock screen when the deferral completes or the deadline passes.