Manage the extensions data
- Source:
Members
-
<private, static, constant> _DATA_VERSION :int
-
Version of localStorage - update when items are added, removed, changed
Type:
- int
- Default Value:
-
- 17
- Source:
-
<private, static, constant> _DEF_VALUES :app.Data.LocalStorage
-
Default values in localStorage
Type:
- Source:
Methods
-
<private, static> _addDefaults()
-
Save the _DEF_VALUES items, if they do not already exist
- Source:
-
<private, static> _convertSliderValue(key)
-
Convert a setting-slider value due to addition of units
Parameters:
Name Type Description keystring localStorage key
- Source:
-
<private, static> _getTimeFormat() → {int}
-
Get default time format based on locale
- Source:
Returns:
12 or 24
- Type
- int
-
<private, static> _processEnabled()
-
Set state based on screensaver enabled flag Note: this does not effect the keep awake settings so you could use the extension as a display keep awake scheduler without using the screensaver
- Source:
-
<private, static> _processIdleTime()
-
Set wait time for screen saver display after machine is idle
- Source:
-
<private, static> _processKeepAwake()
-
Set power scheduling features
- Source:
-
<private, static> _setOS() → {Promise}
-
Set the 'os' value
- Source:
Returns:
err on failure
- Type
- Promise
-
<static> initialize()
-
Initialize the data saved in localStorage
- Source:
-
<static> processState( [key])
-
Process changes to localStorage items
Parameters:
Name Type Argument Default Description keystring <optional>
'all' the item that changed
- Source:
-
<static> restoreDefaults()
-
Restore default values for data saved in localStorage
- Source:
-
<static> update()
-
Update the data saved in localStorage
- Source:
Type Definitions
-
LocalStorage
-
Values for items in localStorage
Type:
- Object
- Source:
Properties:
Name Type Description versionint version of data
enabledboolean is screensaver enabled
permPicasastring optional permission for Picasa
permBackgroundstring optional permission to run in bg
allowBackgroundboolean run Chrome in background
idleTimeapp.Data.UnitValue idle time to display screensaver
transitionTimeapp.Data.UnitValue time between photos
skipboolean ignore extreme aspect ratio photos
shuffleboolean randomize photo order
photoSizingint photo display type
photoTransitionint transition animation
interactiveboolean vcr controls for screensaver
showTimeint time display format
largeTimeboolean display larger time label
showPhotogboolean display name on own photos
showLocationboolean display photo location
backgroundstring background image
keepAwakeboolean manage computer poser settings
chromeFullscreenboolean don't display over fullscreen
allDisplaysboolean show on all displays
activeStartstring Keep Wake start time '00:00' 24 hr
activeStopstring Keep Wake stop time '00:00' 24 hr
allowSuspendboolean let computer sleep
allowPhotoClicksboolean show photo source on left click
useSpaceRedditboolean use this photo source
useEarthRedditboolean use this photo source
useAnimalRedditboolean use this photo source
useEditors500pxboolean use this photo source
usePopular500pxboolean use this photo source
useYesterday500pxboolean use this photo source
useInterestingFlickrboolean use this photo source
useChromecastboolean use this photo source
useAuthorsboolean use this photo source
useSpaceRedditboolean use this photo source
fullResGoogleboolean true for actual size Google photos
isAlbumModeboolean true if Google Photos album mode
useGoogleboolean use this photo source
useGoogleAlbumsboolean use this photo source
albumSelectionsArray user's selected Google Photos albums
useGooglePhotosboolean use this photo source
-
UnitValue
-
A number and associated units
Type:
- Object
- Source:
Properties:
Name Type Description basenumber value in base unit
displaynumber value in display unit
unitint display unit