示例#1
0
 public static GPAService GetGASInstance()
 {
     if (thisRef == null)
     {
         // it's ok, we can call this constructor
         thisRef = new GPAService();
     }
     return(thisRef);
 }
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            GPAService.GetGASInstance().Initialize(this);
            // Track a page
            GPAService.GetGASInstance().Track_App_Page("Home Page");

            // Track an event
            GPAService.GetGASInstance().Track_App_Event("GPAService.Category1", "hey ! Category 1 type event ocurred !");

            //// Track an Exception
            //GPAService.GetGASInstance().Track_App_Exception( , false);
        }