예제 #1
0
        /// <summary>
        /// Register Umeng Event By Catalog Type
        /// </summary>
        /// <param name="eventInfo">EventInfo</param>
        /// <param name="exceptionObj">Exception Error Obj</param>
        /// <param name="pageName">Page Name</param>
        public void RegisterUmengEventByType(AnalysicEventType analysicEventType, string pageName = "", Exception exceptionObj = null)
        {
            switch (analysicEventType)
            {
            case AnalysicEventType.AppActivated:
                AppActivatedEvent();
                break;

            case AnalysicEventType.AppExceptionReport:
                if (exceptionObj != null)
                {
                    AppExceptionReport(exceptionObj);
                }
                break;

            case AnalysicEventType.AppLaunching:
                base.AppLaunchingEvent();
                break;

            case AnalysicEventType.AppViewPageEnd:
                if (!string.IsNullOrEmpty(pageName))
                {
                    AppViewPageStart(pageName);
                }
                break;

            case AnalysicEventType.AppViewPageStart:
                if (!string.IsNullOrEmpty(pageName))
                {
                    AppViewPageEnd(pageName);
                }
                break;
            }
        }
 /// <summary>
 /// Register Umeng Event By Catalog Type
 /// </summary>
 /// <param name="eventInfo">EventInfo</param>
 /// <param name="exceptionObj">Exception Error Obj</param>
 /// <param name="pageName">Page Name</param>
 public void RegisterUmengEventByType(AnalysicEventType analysicEventType,string pageName = "",  Exception exceptionObj = null)
 {
     switch (analysicEventType)
     {
         case AnalysicEventType.AppActivated:
             AppActivatedEvent();
             break;
         case AnalysicEventType.AppExceptionReport:
             if (exceptionObj != null)
                 AppExceptionReport(exceptionObj);
             break;
         case AnalysicEventType.AppLaunching:
             base.AppLaunchingEvent();
             break;
         case AnalysicEventType.AppViewPageEnd:
             if (!string.IsNullOrEmpty(pageName))
                 AppViewPageStart(pageName);
             break;
         case AnalysicEventType.AppViewPageStart:
             if (!string.IsNullOrEmpty(pageName))
                 AppViewPageEnd(pageName);
             break;               
     }
 }