Пример #1
0
        public static string TrackException(AndroidJavaObject exception, IDictionary <string, string> properties, ErrorAttachmentLog[] attachments)
        {
            var javaProperties  = JavaStringMapHelper.ConvertToJava(properties);
            var javaAttachments = JavaObjectsConverter.ToJavaAttachments(attachments);

            return(_wrapperSdkExceptionManager.CallStatic <string>("trackException", exception, javaProperties, javaAttachments));
        }
Пример #2
0
        public static PushNotificationReceivedEventArgs PushConvert(AndroidJavaObject javaPush)
        {
            var customDataMap = javaPush.Call <AndroidJavaObject>("getCustomData");
            var customData    = JavaStringMapHelper.ConvertFromJava(customDataMap);
            var title         = javaPush.Call <string>("getTitle");
            var message       = javaPush.Call <string>("getMessage");

            return(new PushNotificationReceivedEventArgs
            {
                CustomData = customData,
                Message = message,
                Title = title
            });
        }
Пример #3
0
        public static void TrackException(AndroidJavaObject exception, IDictionary <string, string> properties)
        {
            var propertiesMap = JavaStringMapHelper.ConvertToJava(properties);

            _wrapperSdkExceptionManager.CallStatic("trackException", exception, propertiesMap);
        }
Пример #4
0
        public static void TrackEventWithProperties(string eventName, IDictionary <string, string> properties)
        {
            var androidProperties = JavaStringMapHelper.ConvertToJava(properties);

            _analytics.CallStatic("trackEvent", eventName, androidProperties);
        }
Пример #5
0
        public static void TrackEventWithProperties(AndroidJavaObject transmissionTarget, string eventName, IDictionary <string, string> properties)
        {
            var androidProperties = JavaStringMapHelper.ConvertToJava(properties);

            transmissionTarget.Call("trackEvent", eventName, androidProperties);
        }