Methods
-
<private> _checkPermissions() → {Promise.<boolean>}
-
Try to get permissions, if not already authorized - may block
- Source:
Returns:
true if we have permissions
- Type
- Promise.<boolean>
-
<private> _chromeBackgroundTapped()
-
Event: Process the background permission
- Source:
-
<private> _computeAlbumIconDisabled(useGoogle, isAlbumMode) → {boolean}
-
Computed binding: Calculate mode tooltip
Parameters:
Name Type Description useGoogleboolean true if using Google Photos
isAlbumModeboolean true if album mode
- Source:
Returns:
true if album icons should be disabled
- Type
- boolean
-
<private> _computeHidden(waitForLoad, permPicasa) → {boolean}
-
Computed property: Hidden state of main interface
Parameters:
Name Type Description waitForLoadboolean true if loading
permPicasastring permission state
- Source:
Returns:
true if hidden
- Type
- boolean
-
<private> _computeLargeTimeDisabled(enabled, showTimeValue) → {boolean}
-
Computed binding: Set disabled state of largeTime toggle
Parameters:
Name Type Description enabledboolean enabled state of screensaver
showTimeValuenumber showTime value
- Source:
Returns:
true if disabled
- Type
- boolean
-
<private> _computeMailToUrl(subject) → {string}
-
computed binding: Get a mailto url
Parameters:
Name Type Description subjectstring email subject
- Source:
Returns:
url
- Type
- string
-
<private> _computeMenuHidden(selectedTab) → {boolean}
-
Computed property: Set menu icons visibility
Parameters:
Name Type Description selectedTabint the current tab
- Source:
Returns:
true if menu should be visible
- Type
- boolean
-
<private> _computeModeIcon(isAlbumMode) → {string}
-
Computed binding: Calculate mode icon
Parameters:
Name Type Description isAlbumModeboolean true if album mode
- Source:
Returns:
an icon
- Type
- string
-
<private> _computeModeTooltip(isAlbumMode) → {string}
-
Computed binding: Calculate mode tooltip
Parameters:
Name Type Description isAlbumModeboolean true if album mode
- Source:
Returns:
page title
- Type
- string
-
<private> _computePhotoLabel(count) → {string}
-
Computed binding: Set photo count label on an album
Parameters:
Name Type Description countint number of photos in album
- Source:
Returns:
i18n label
- Type
- string
-
<private> _computePhotoSizingMenu() → {Array}
-
Computed binding: photo sizing values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computePhotoTransitionMenu() → {Array}
-
Computed binding: photo transition values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computeStack(lastError) → {string}
-
Computed Binding
Parameters:
Name Type Description lastErrorChrome.Storage.LastError the error
- Source:
Returns:
stack trace
- Type
- string
-
<private> _computeTimeFormatMenu() → {Array}
-
Computed binding: time format values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computeTitle(lastError) → {string}
-
Computed Binding
Parameters:
Name Type Description lastErrorChrome.Storage.LastError the error
- Source:
Returns:
page title
- Type
- string
-
<private> _computeTitle(isAlbumMode) → {string}
-
Computed binding: Calculate page title
Parameters:
Name Type Description isAlbumModeboolean true if album mode
- Source:
Returns:
page title
- Type
- string
-
<private> _computeTransitionTimeUnits() → {Array}
-
Computed binding: transition time values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _computeVersion() → {string}
-
computed binding: Get the extension version
- Source:
Returns:
Version of the extension
- Type
- string
-
<private> _computeWaitTimeUnits() → {Array}
-
Computed binding: idle time values
- Source:
Returns:
Array of menu items
- Type
- Array
-
<private> _deselectAllTapped()
-
Event: deselect all app.PhotoSource objects tapped
- Source:
-
<private> _initIsAlbumMode()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _initPermPicasa()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _initUseGoogleAlbums()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _initUseGooglePhotos()
-
Initialize value if it is not in localStorage
- Source:
-
<private> _onAlbumSelectChanged(event)
-
Event: Album checkbox state changed
Parameters:
Name Type Description eventEvent tap event
Properties
Name Type Description model.albumapp.GoogleSource.Album the album
- Source:
-
<private> _onDeselectAllTapped()
-
Event: Handle tap on deselect all albums icon
- Source:
-
<private> _onEmailTapped()
-
Event: Email support
- Source:
-
<private> _onModeTapped()
-
Event: Handle tap on mode icon
- Source:
-
<private> _onRefreshTapped()
-
Event: Handle tap on refresh album list icon
- Source:
-
<private> _onRemoveTapped()
-
Event: Remove the error
- Source:
-
<private> _onSelectAllTapped()
-
Event: Handle tap on select all albums icon
- Source:
-
<private> _onUseGoogleChanged()
-
Event: checked state changed on main toggle changed
- Source:
-
<private> _restoreDefaultsTapped()
-
Event: restore default settings tapped
- Source:
-
<private> _selectAlbums()
-
Set the checked state of the stored albums
- Source:
-
<private> _selectAllTapped()
-
Event: select all app.PhotoSource objects tapped
- Source:
-
<private> _setPhotoSourceChecked(useName, state)
-
Set checked state of a app.PhotoSource
Parameters:
Name Type Description useNamestring source name
stateboolean checked state
- Source:
-
<private> _setPhotoSourcesChecked(state)
-
Set checked state of all app.PhotoSource objects
Parameters:
Name Type Description stateboolean checked state
- Source:
-
<private> _setUseKeys(useGoogle, isAlbumMode)
-
Set keys for photo sources
Parameters:
Name Type Description useGoogleboolean Google Photos use enabled
isAlbumModeboolean Are we in album mode
- Source:
-
<private> _showStorageErrorDialog(method)
-
Exceeded storage limits error
Parameters:
Name Type Description methodstring function that caused error
- Source:
-
<private> _uncheckAll()
-
Uncheck all albums
- Source:
-
deselectPhotoSource(useName)
-
Deselect the given app.PhotoSource
Parameters:
Name Type Description useNamestring Name of
- Source:
-
loadAlbumList()
-
Query Picasa for the list of the users albums
- Source: