Class Giphy
Inheritance
System.Object
Giphy
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public class Giphy : MonoBehaviour
Fields
GIPHY_BASE_URL
Declaration
public const string GIPHY_BASE_URL = "http://giphy.com/gifs/"
Field Value
Type | Description |
---|---|
System. |
GIPHY_UPLOAD_PATH
Declaration
public const string GIPHY_UPLOAD_PATH = "https://upload.giphy.com/v1/gifs"
Field Value
Type | Description |
---|---|
System. |
Properties
Instance
Declaration
public static Giphy Instance { get; }
Property Value
Type | Description |
---|---|
Giphy |
IsUsingAPI
Declaration
public static bool IsUsingAPI { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Upload(String, String, GiphyUploadParams, Action<Single>, Action<String>, Action<String>)
Uploads a GIF image to your channel using your Giphy username and your app's API key. The GIF file can be stored on the local storage or at a provided URL.
Declaration
public static void Upload(string username, string apiKey, GiphyUploadParams content, Action<float> uploadProgressCallback, Action<string> uploadCompletedCallback, Action<string> uploadFailedCallback)
Parameters
Type | Name | Description |
---|---|---|
System. |
username | Your Giphy username. |
System. |
apiKey | The API key for your app. |
Giphy |
content | Content to upload. |
System. |
uploadProgressCallback | Upload progress callback: the parameter indicates upload progress from 0 to 1. |
System. |
uploadCompletedCallback | Upload completed callback: the parameter is the URL of the uploaded image. |
System. |
uploadFailedCallback | Upload failed callback: the parameter is the error message. |