CachedFileUpdaterTriggerDetails.CanRequestUserInput Property
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 whether the system can display UI allowing the user to launch provider app in response to the cached file updater trigger.
public:
property bool CanRequestUserInput { bool get(); };
bool CanRequestUserInput();
public bool CanRequestUserInput { get; }
var boolean = cachedFileUpdaterTriggerDetails.canRequestUserInput;
Public ReadOnly Property CanRequestUserInput As Boolean
Property Value
bool
Whether the system can display UI allowing the user to launch provider app in response to the cached file updater trigger.
Remarks
The Cached File Updater pattern allows the provider app to specify that user input is needed to complete the cached file update by setting the Status property of the associated FileUpdateRequest to UserInputNeeded. It is possible that the system may not be able to show UI to the user during the background task, if the app that updated the file is not currently running in the foreground, for example. In this case, CanRequestUserInput will be false. So, you should check this value before requesting for the system to show UI. Setting the FileUpdateRequest status to UserInputNeeded will throw an exception if CanRequestUserInput is false.