Easy Mobile API Reference 2.4
  • Basic
    • Pro
    • Basic

    Show / Hide Table of Contents

    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.String

    GIPHY_UPLOAD_PATH

    Declaration
    public const string GIPHY_UPLOAD_PATH = "https://upload.giphy.com/v1/gifs"
    Field Value
    Type Description
    System.String

    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.Boolean

    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.String username

    Your Giphy username.

    System.String apiKey

    The API key for your app.

    GiphyUploadParams content

    Content to upload.

    System.Action<System.Single> uploadProgressCallback

    Upload progress callback: the parameter indicates upload progress from 0 to 1.

    System.Action<System.String> uploadCompletedCallback

    Upload completed callback: the parameter is the URL of the uploaded image.

    System.Action<System.String> uploadFailedCallback

    Upload failed callback: the parameter is the error message.

    In This Article
    • Fields
      • GIPHY_BASE_URL
      • GIPHY_UPLOAD_PATH
    • Properties
      • Instance
      • IsUsingAPI
    • Methods
      • Upload(String, String, GiphyUploadParams, Action<Single>, Action<String>, Action<String>)