當前位置: 首頁>>代碼示例>>Java>>正文


Java FirebaseAnalytics.setCurrentScreen方法代碼示例

本文整理匯總了Java中com.google.firebase.analytics.FirebaseAnalytics.setCurrentScreen方法的典型用法代碼示例。如果您正苦於以下問題:Java FirebaseAnalytics.setCurrentScreen方法的具體用法?Java FirebaseAnalytics.setCurrentScreen怎麽用?Java FirebaseAnalytics.setCurrentScreen使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.firebase.analytics.FirebaseAnalytics的用法示例。


在下文中一共展示了FirebaseAnalytics.setCurrentScreen方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
        analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());

        if (getArguments() != null) {
//           retreive args
        }
    }
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:11,代碼來源:HomeFragment.java

示例2: onResume

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Home Screen");

}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:8,代碼來源:HomeFragment.java

示例3: onResume

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
    public void onResume() {
        super.onResume();
        Bundle params = new Bundle();
        FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
        analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Web View Screen");

        params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "screen");
        params.putString(FirebaseAnalytics.Param.ITEM_NAME, "MainActivity");
//        mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
    }
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:12,代碼來源:WebFragment.java

示例4: onCreate

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());

    if (getArguments() != null) {
        //args
    }
}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:11,代碼來源:BookmarkedFragment.java

示例5: onResume

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Bookmark Screen");

}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:8,代碼來源:BookmarkedFragment.java

示例6: onCreate

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());

    if (getArguments() != null) {
        mAbout = getArguments().getString(HomeActivity.ABOUT_KEY);
        mCountryCode = getArguments().getString(HomeActivity.COUNTRY_CODE_KEY);
        mContactNumber = getArguments().getString(HomeActivity.CONTACT_NUMBER_KEY);
        mAddress = getArguments().getString(HomeActivity.ADDRESS_KEY);
        mGeoLatitude = getArguments().getString(HomeActivity.GEO_LATITUDE_KEY);
        mGeoLongitude = getArguments().getString(HomeActivity.GEO_LONGITUDE_KEY);
    }
}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:16,代碼來源:AboutFragment.java

示例7: onResume

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "About Screen");

}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:8,代碼來源:AboutFragment.java

示例8: onCreate

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    
    mContext = getContext();

    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), getClass().getSimpleName());


    if (getArguments() != null) {
        mUrl = getArguments().getString(URL);
        mPostType = getArguments().getString(POST_TYPE);
    }
}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:16,代碼來源:FirebaseListFragment.java

示例9: onResume

import com.google.firebase.analytics.FirebaseAnalytics; //導入方法依賴的package包/類
@Override
public void onResume() {
    super.onResume();
    FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(getContext());
    analytics.setCurrentScreen(getActivity(), getClass().getSimpleName(), "Home Screen");

    if (switchWindow) {
        switchWindow = false;
        recyclerView.getLayoutManager().scrollToPosition(lastPoistion);
    }
}
 
開發者ID:mangoblogger,項目名稱:MangoBloggerAndroidApp,代碼行數:12,代碼來源:FirebaseListFragment.java


注:本文中的com.google.firebase.analytics.FirebaseAnalytics.setCurrentScreen方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。