Home | History | Annotate | Download | only in analytics
      1 /*
      2  * Copyright (C) 2015 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
      5  * in compliance with the License. You may obtain a copy of the License at
      6  *
      7  * http://www.apache.org/licenses/LICENSE-2.0
      8  *
      9  * Unless required by applicable law or agreed to in writing, software distributed under the License
     10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
     11  * or implied. See the License for the specific language governing permissions and limitations under
     12  * the License.
     13  */
     14 
     15 package com.android.contacts.commonbind.analytics;
     16 
     17 import android.app.Activity;
     18 import android.app.Application;
     19 import android.app.Fragment;
     20 import android.text.TextUtils;
     21 
     22 public class AnalyticsUtil {
     23 
     24     /**
     25      * Initialize this class and setup automatic activity tracking.
     26      */
     27     public static void initialize(Application application) { }
     28 
     29     /**
     30      * Log a screen view for {@param fragment}.
     31      */
     32     public static void sendScreenView(Fragment fragment) {}
     33 
     34     public static void sendScreenView(Fragment fragment, Activity activity) {}
     35 
     36     public static void sendScreenView(Fragment fragment, Activity activity, String tag) {}
     37 
     38     public static void sendScreenView(String fragmentName, Activity activity, String tag) {}
     39 
     40     /**
     41      * Logs a event to the analytics server.
     42      *
     43      * @param application The application the tracker is stored in.
     44      * @param category The category for the event.
     45      * @param action The event action.
     46      * @param label The event label.
     47      * @param value The value associated with the event.
     48      */
     49     public static void sendEvent(Application application, String category, String action,
     50             String label, long value) { }
     51 }