Example #1
0
        public static void LogPurchase(string productId, string currencyCode, decimal price, int quantity, Dictionary <string, object> properties)
        {
            var javaPrice = new AndroidJavaObject("java.math.BigDecimal", price.ToString());
            AndroidJavaObject appboyProperties = ParsePropertiesToAppboyProperties(properties);

            Appboy.Call("logPurchase", productId, currencyCode, javaPrice, quantity, appboyProperties);
        }
Example #2
0
        public static void LogPurchase(string productId, string currencyCode, decimal price, int quantity)
        {
            object[]          args = new object[] { price.ToString() };
            AndroidJavaObject obj2 = new AndroidJavaObject("java.math.BigDecimal", args);

            object[] objArray2 = new object[] { productId, currencyCode, obj2, quantity };
            Appboy.Call <bool>("logPurchase", objArray2);
        }
Example #3
0
 private static AndroidJavaObject GetCurrentUser()
 {
     return(Appboy.Call <AndroidJavaObject>("getCurrentUser"));
 }
 /// <summary>
 /// Requests a refresh of Braze Geofences for the specified GPS coordinate.
 /// </summary>
 /// <param name='latitude'>
 /// A valid GPS latitude in range (-90, 90).
 /// </param>
 /// <param name='longitude'>
 /// A valid GPS longitude in range (-180, 180).
 /// </param>
 /// </summary>
 public static void RequestGeofences(decimal latitude, decimal longitude)
 {
     Appboy.Call("requestGeofences", latitude, longitude);
 }
Example #5
0
 public static void LogFeedDisplayed()
 {
     Appboy.Call("logFeedDisplayed");
 }
Example #6
0
 public static void RequestFeedRefresh()
 {
     Appboy.Call("requestFeedRefresh");
 }
Example #7
0
 public static void ChangeUser(string userId)
 {
     Appboy.Call("changeUser", userId);
 }
Example #8
0
        public static void LogPurchase(string productId, string currencyCode, decimal price, int quantity)
        {
            var javaPrice = new AndroidJavaObject("java.math.BigDecimal", price.ToString());

            Appboy.Call("logPurchase", productId, currencyCode, javaPrice, quantity);
        }
Example #9
0
 public static void RequestFeedRefreshFromCache()
 {
     Appboy.Call("requestFeedRefreshFromCache", new object[0]);
 }
Example #10
0
 public static void RequestFeedRefresh()
 {
     Appboy.Call("requestFeedRefresh", new object[0]);
 }
Example #11
0
 public static void RequestContentCardsRefreshFromCache()
 {
     Appboy.Call("requestContentCardsRefresh", true);
 }
Example #12
0
 public static void RequestContentCardsRefresh()
 {
     Appboy.Call("requestContentCardsRefresh", false);
 }
Example #13
0
 public static void LogContentCardsDisplayed()
 {
     Appboy.Call("logContentCardsDisplayed");
 }
Example #14
0
        public static void LogContentCardClicked(string contentCardString)
        {
            var contentCard = Appboy.Call <AndroidJavaObject>("deserializeContentCard", contentCardString);

            contentCard.Call <bool>("logClick");
        }
Example #15
0
 public static void RequestImmediateDataFlush()
 {
     Appboy.Call("requestImmediateDataFlush");
 }
Example #16
0
 public static void LogCustomEvent(string eventName)
 {
     Appboy.Call("logCustomEvent", eventName);
 }
Example #17
0
        /// <summary>
        /// Logs a custom event for the user with the given properties.
        /// </summary>
        /// <param name='eventName'>
        /// The name of the custom event.
        /// </param>
        /// <param name='properties'>
        /// A properties dictionary.  Values that are int/string/double/bool/DateTime will be passed to Android
        /// and mapped to java types.  All other values will be passed as strings.
        /// </param>
        public static void LogCustomEvent(string eventName, Dictionary <string, object> properties)
        {
            AndroidJavaObject appboyProperties = ParsePropertiesToAppboyProperties(properties);

            Appboy.Call("logCustomEvent", eventName, appboyProperties);
        }
Example #18
0
 public static void RequestSlideup()
 {
     Appboy.Call("requestInAppMessageRefresh", new object[0]);
 }
Example #19
0
 public static void ChangeUser(string userId)
 {
     object[] args = new object[] { userId };
     Appboy.Call <AndroidJavaObject>("changeUser", args);
 }
Example #20
0
 public static void SubmitFeedback(string replyToEmail, string message, bool isReportingABug)
 {
     object[] args = new object[] { replyToEmail, message, isReportingABug };
     Appboy.Call <bool>("submitFeedback", args);
 }
Example #21
0
 public static void RegisterAppboyPushMessages(string registrationId)
 {
     Appboy.Call("registerAppboyPushMessages", new object[] { registrationId });
 }
Example #22
0
 public static void LogCustomEvent(string eventName)
 {
     object[] args = new object[] { eventName };
     Appboy.Call <bool>("logCustomEvent", args);
 }
Example #23
0
 public static void RequestFeedRefreshFromCache()
 {
     Appboy.Call("requestFeedRefreshFromCache");
 }
Example #24
0
 public static void LogFeedDisplayed()
 {
     Appboy.Call <bool>("logFeedDisplayed", new object[0]);
 }
Example #25
0
 public static string GetInstallTrackingId()
 {
     return(Appboy.Call <string>("getInstallTrackingId"));
 }
Example #26
0
        public static void LogContentCardDismissed(string contentCardString)
        {
            var contentCard = Appboy.Call <AndroidJavaObject>("deserializeContentCard", contentCardString);

            contentCard.Call <bool>("setIsDismissed", true);
        }