本文整理匯總了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
}
}
示例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");
}
示例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);
}
示例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
}
}
示例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");
}
示例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);
}
}
示例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");
}
示例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);
}
}
示例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);
}
}