Namespace: SSPhotos

SSPhotos

Collection of app.SSPhoto objects

Source:

Members


<private, static> _curIdx :int

Current index into _photos

Type:
  • int
Source:

<private, static, constant> _photos :Array.<app.SSPhoto>

The array of photos

Type:
Source:

Methods


<static> addFromSource(source)

Add the photos from an app.PhotoSource.Photos

Parameters:
Name Type Description
source app.PhotoSource.Photos
Source:

<static> get(idx) → {app.SSPhoto}

Get the app.SSPhoto at the given index

Parameters:
Name Type Description
idx int

The index

Source:
Returns:
Type
app.SSPhoto

<static> getCount() → {int}

Get number of photos

Source:
Returns:

The number of photos

Type
int

<static> getCurrentIndex() → {int}

Get current index into _photos

Source:
Returns:

index

Type
int

<static> getNextUsable() → {app.SSPhoto}

Get the next app.SSPhoto that is usable

Source:
Returns:
Type
app.SSPhoto

<static> hasUsable() → {boolean}

Do we have photos that aren't bad

Source:
Returns:

true if at least one photo is good

Type
boolean

<static> incCurrentIndex() → {int}

Increment current index into _photos

Source:
Returns:

new current index

Type
int

<static> setCurrentIndex(idx)

Set current index into _photos

Parameters:
Name Type Description
idx int

The index

Source:

<static> shuffle()

Randomize the photos

Source: