Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScreensaverElement

Polymer element to display a screensaver

Hierarchy

Index

Constructors

Static constructor

  • Returns ScreensaverElement

Events

Protected onImageError

  • onImageError(ev: CustomEvent): Promise<void>

Properties

Protected MAX_SLIDES

MAX_SLIDES: 10 = 10

Maximum number of slides to create

@remarks Actual number will be the smaller of this and the total number of photos

Protected aniType

aniType: number = ScreensaverElement.getAniType()

Type for between photo animation

Protected delayTime

delayTime: number = 1500

Delay before showing first slide in milli secs

Protected noPhotos

noPhotos: boolean = false

Flag to indicate if we have no valid photos

Protected pages

pages: NeonAnimatedPagesElement

NeonAnimatedPages

Protected paused

paused: boolean = false

Flag to indicate if slideshow is paused

Protected photos

photos: SSPhoto[] = []

Array of SSPhoto in the views

Protected repeatTemplate

repeatTemplate: DomRepeat

Slide repeat template

Protected timeLabel

timeLabel: string = ""

Label for current time

Protected viewType

viewType: number = ScreensaverElement.getViewType()

Type for photo appearance

Accessors

Static template

  • get template(): HTMLTemplateElement

Methods

connectedCallback

  • connectedCallback(): void

disconnectedCallback

  • disconnectedCallback(): void

findLoadedPhoto

  • findLoadedPhoto(idx: number): number

Protected fireEvent

  • fireEvent(name: string, detailValue?: any): void
  • Dispatch an event

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

getMaxSlideCount

  • getMaxSlideCount(): number

getPhotos

getSelectedPhoto

  • getSelectedPhoto(): undefined | SSPhoto

getSelectedSlideIndex

  • getSelectedSlideIndex(): number

getSlide

getSlideCount

  • getSlideCount(): number

Protected hasUsablePhoto

  • hasUsablePhoto(): boolean

isNoPhotos

  • isNoPhotos(): boolean

isSelectedSlideIndex

  • isSelectedSlideIndex(idx: number): boolean

launch

  • launch(): Promise<void>

Protected pausedChanged

  • pausedChanged(newValue: boolean, oldValue: boolean): void

ready

  • ready(): Promise<void>

Protected replaceAllPhotos

  • replaceAllPhotos(): void

replacePhoto

  • replacePhoto(photo: SSPhoto, idx: number): void

setNoPhotos

  • setNoPhotos(): void

setPaused

  • setPaused(paused: boolean): void

setSelectedSlideIndex

  • setSelectedSlideIndex(idx: number): void

Protected setTimeLabel

  • setTimeLabel(): void

Protected setupTime

  • setupTime(): void

Protected updateAllUrls

  • updateAllUrls(photos: IPhoto[]): void

Static Protected getAniType

  • getAniType(): number

Static Protected getViewType

  • getViewType(): number

Static localize

  • localize(name: string, def?: undefined | string): string
  • Localize a string

    Parameters

    • name: string

      name from _locales

    • Optional def: undefined | string

      optional default value if name not found

    Returns string

Static Protected setZoom

  • setZoom(): Promise<void>

Static Protected setupFaceDetect

  • setupFaceDetect(): Promise<void>

Generated using TypeDoc