Essential Kit
Loading...
Searching...
No Matches
PromptUpdateOptions.Builder

Builder class for constructing PromptUpdateOptions instances.

Public Member Functions

 Builder ()
 Initializes a new instance of the Builder class.
 
Builder SetIsForceUpdate (bool isForceUpdate)
 Sets whether the update is mandatory.
 
Builder SetPromptTitle (string promptTitle)
 Sets the title of the update prompt.
 
Builder SetPromptMessage (string message)
 Sets the message of the update prompt.
 
Builder SetAllowInstallationIfDownloaded (bool allowInstallationIfDownloaded)
 Sets whether the update can be installed if it has already been downloaded.
 
PromptUpdateOptions Build ()
 Builds and returns the PromptUpdateOptions instance.
 

Member Function Documentation

◆ SetIsForceUpdate()

Builder SetIsForceUpdate ( bool isForceUpdate)
Parameters
isForceUpdateTrue if the update is mandatory; otherwise, false.
Returns
The current builder instance.

◆ SetPromptTitle()

Builder SetPromptTitle ( string promptTitle)
Parameters
promptTitleThe title of the prompt.
Returns
The current builder instance.

◆ SetPromptMessage()

Builder SetPromptMessage ( string message)
Parameters
messageThe message of the prompt.
Returns
The current builder instance.

◆ SetAllowInstallationIfDownloaded()

Builder SetAllowInstallationIfDownloaded ( bool allowInstallationIfDownloaded)
Parameters
allowInstallationIfDownloadedTrue if the update can be installed when downloaded; otherwise, false. Default value is true.
Note
If force update is enabled, this option will be considered as true.
Returns
The current builder instance.

◆ Build()

Returns
The constructed PromptUpdateOptions instance.