Class: CCSource

CCSource

A potential source of photos from Chromecast


new CCSource(useKey, photosKey, type, desc, isDaily, isArray [, loadArg])

Create a new photo source

Parameters:
Name Type Argument Default Description
useKey string

The key for if the source is selected

photosKey string

The key for the collection of photos

type string

A descriptor of the photo source

desc string

A human readable description of the source

isDaily boolean

Should the source be updated daily

isArray boolean

Is the source an Array of photo Arrays

loadArg Object <optional>
<nullable>
null

optional arg for load function

Source:

Methods


fetchPhotos() → {Promise.<Array.<app.PhotoSource.Photo>>}

Fetch the photos for this source

Source:
Returns:

Array of photos

Type
Promise.<Array.<app.PhotoSource.Photo>>