EULA: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
m Ghenne moved page NSB.EULA to EULA
Line 5: Line 5:
== Description ==
== Description ==


NSB.ShowProgress displays ''message'' to the user near the bottom middle of the screen. It can be dismissed or updated at any time by the program. The user can also dismiss it. Use it to provide the user with information during execution without interrupting execution.
The EULA property in Project Properties lets you specify a End User License Agreement when your app starts up. If the user agrees to it, LocalStorage.EULA will be True. If not, it will be False.  


To dismiss an NSB.showProgress message, call it with no arguments.
In your code, you should check this value. If the value is False, you cannot terminate the app, but you can put up a warning message asking the user to restart the app and agree to the EULA before the app can be used. (The reason you cannot terminate the app is that it will break the User Interface Guidelines from the manufacturers.)
 
To enable the EULA, put your EULA text into the 'EULA' property in Project Properties. The text can be formatted HTML.


== Example ==
== Example ==

Revision as of 15:07, 8 January 2013

NSB.ShowProgress(message)

Description

The EULA property in Project Properties lets you specify a End User License Agreement when your app starts up. If the user agrees to it, LocalStorage.EULA will be True. If not, it will be False.

In your code, you should check this value. If the value is False, you cannot terminate the app, but you can put up a warning message asking the user to restart the app and agree to the EULA before the app can be used. (The reason you cannot terminate the app is that it will break the User Interface Guidelines from the manufacturers.)

To enable the EULA, put your EULA text into the 'EULA' property in Project Properties. The text can be formatted HTML.

Example

No code is needed to display the EULA. If you would like to reset the EULA so it appears next time the app is run, use this code:

'this function shows you how to reset the EULA setting.
Function Button1_onclick()
  localStorage.EULA="false"
End Function

Output

(depends on use. See nsbShowProgress sample)

Related Items