new Gyphymanager(some)
Aquires a set of Gif Files Giphy, based on tags, and allows choosing from that.
Giphy Example on codepen:
codepen
Like the FileManager, the Giphymanager aquires a set of gif files between which you can choose. It connects to a Gifsource.
Parameters:
Name | Type | Description |
---|---|---|
some |
GifSource | available gifsource source |
- Implements:
- Source:
Example
var gifsource1 = new GifSource( renderer, {} )
var gifmanager1 = new GiphyManager( gifsource1 )
gifmanager1.search('vj', function(){ // search giphy and do the callback
gifmanager1.change(); // changes from one giffile to the other in the set
})
Thee is a working example on codepen: https://codepen.io/xangadix/pen/vqmWzN
Methods
change()
changes the gif file for another one in the collection
loaded by search()
- Source:
changez()
same as change()
- Source:
needle(query)
same as search
Parameters:
Name | Type | Description |
---|---|---|
query |
string | Search term |
- Source:
search(query)
loads a set of gif files from giphy based on
Parameters:
Name | Type | Description |
---|---|---|
query |
string | Search term |
- Source:
setSrc(file)
loads a set of gif files from giphy based on
Parameters:
Name | Type | Description |
---|---|---|
file |
string | set filename |
- Source: