Esempio n. 1
0
 public void LogPageView()
 {
     NativeGateway.dispatch(
         BUNCH,
         "logPageView",
         null
         );
 }
Esempio n. 2
0
 public void EndSession()
 {
     Debug.Log("EndSession");
     NativeGateway.dispatch(
         BUNCH,
         "endSession",
         null
         );
 }
Esempio n. 3
0
    public static Dictionary <string, object> dispatch(string bunch, string method, Dictionary <string, object> parameters)
    {
        Dictionary <string, object> dict = NativeGateway.createDictForMethod(bunch, method);

        if (parameters == null)
        {
            parameters = new Dictionary <string, object> ();
        }
        return(dispatch(NativeGateway.addParams(dict, parameters)));
    }
Esempio n. 4
0
 public void SetAppVersion(string appVersion)
 {
     NativeGateway.dispatch(
         BUNCH,
         "setAppVersion",
         new Dictionary <string, object> ()
     {
         { "appVersion", appVersion }
     }
         );
 }
Esempio n. 5
0
 public void SetAge(int age)
 {
     NativeGateway.dispatch(
         BUNCH,
         "setAge",
         new Dictionary <string, object> ()
     {
         { "age", age }
     }
         );
 }
Esempio n. 6
0
 public void SetUserId(string userId)
 {
     NativeGateway.dispatch(
         BUNCH,
         "setUserId",
         new Dictionary <string, object> ()
     {
         { "userId", userId }
     }
         );
 }
Esempio n. 7
0
 public void SetDebugLogEnabled(bool enabled)
 {
     NativeGateway.dispatch(
         BUNCH,
         "setDebugLogEnabled",
         new Dictionary <string, object> ()
     {
         { "enabled", enabled }
     }
         );
 }
Esempio n. 8
0
 public void SetContinueSessionMillis(long milliseconds)
 {
     NativeGateway.dispatch(
         BUNCH,
         "setContinueSessionMillis",
         new Dictionary <string, object> ()
     {
         { "milliseconds", milliseconds }
     }
         );
 }
Esempio n. 9
0
 public static void registerBunch(string bunch)
 {
     NativeGateway.dispatch(
         MANAGER_BUNCH,
         "registerBunch",
         new Dictionary <string, object> ()
     {
         { "bunch", bunch }
     }
         );
 }
Esempio n. 10
0
 public void ShareText(string text)
 {
     NativeGateway.dispatch(
         BUNCH,
         "shareText",
         new Dictionary <string, object> ()
     {
         { "text", text }
     }
         );
 }
Esempio n. 11
0
 public void LogEvent(string eventId, Dictionary <string, string> parameters)
 {
     NativeGateway.dispatch(
         BUNCH,
         "logEvent",
         new Dictionary <string, object> ()
     {
         { "eventId", eventId },
         { "parameters", parameters }
     }
         );
 }
Esempio n. 12
0
 public void StartSession(string apiKey)
 {
     Debug.Log("StartSession");
     NativeGateway.dispatch(
         BUNCH,
         "startSession",
         new Dictionary <string, object> ()
     {
         { "apiKey", apiKey }
     }
         );
 }
Esempio n. 13
0
 public void LogError(string errorId, string message, Dictionary <string, string> parameters)
 {
     NativeGateway.dispatch(
         BUNCH,
         "logError",
         new Dictionary <string, object> ()
     {
         { "errorId", errorId },
         { "message", message },
         { "parameters", parameters }
     }
         );
 }