Saves changes to the Today item in the device registry and refreshes the Today screen.
Application object
Integer appname.TodaySave ( )
Argument |
Description |
---|---|
controlname |
The name of the application for which you want to save and display changes to the Today screen |
Integer. Returns 1 for success, -1 if there is an error.
Use the TodaySave function to permanently save any property changes to the custom Today item. When you call this function, any changes you make to the custom item’s display text, to its order in the Today screen, or to its display or run application, are saved to the registry. After the user restarts the device, the properties of the custom item are initialized to the changed values in the device registry.
The following example updates the registry for a Today item display text associated with the SyncDisplay application:
SyncDisplay.TodayDisplayText="Sync Update Count is " &
+ string(counter)
li_rtn = SyncDisplay.TodaySave()