Jaa


CachedFileUpdaterTriggerDetails.CanRequestUserInput Property

Definition

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

Boolean

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.

Applies to