com.crashlytics.android.answers.ContentViewEvent Java Examples
The following examples show how to use
com.crashlytics.android.answers.ContentViewEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EventSender.java From Anecdote with Apache License 2.0 | 5 votes |
@Override public void sendView(String name, String type) { ContentViewEvent contentViewEvent = new ContentViewEvent(); contentViewEvent.putContentName(name); contentViewEvent.putContentType(type); Answers.getInstance().logContentView(contentViewEvent); }
Example #2
Source File: BaseActivity.java From prayer-times-android with Apache License 2.0 | 5 votes |
@Override public void onItemClick(AdapterView<?> parent, View view, int pos, long id) { if (pos == 0) return; pos--; // header if (pos == mNavPos && mDrawerLayout.isDrawerOpen(mNav)) { mDrawerLayout.closeDrawers(); return; } Module.values()[pos].launch(this); mDrawerLayout.closeDrawers(); Answers.getInstance().logContentView(new ContentViewEvent().putContentName(Module.values()[mNavPos].getKey())); //AppRatingDialog.addToOpenedMenus(ACTS[pos]); }
Example #3
Source File: MyApp.java From Learning-Resources with MIT License | 5 votes |
public static void logCaptureEvent() { Bundle bundle = new Bundle(); bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 1); bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "Click Picture"); bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image"); mFirebaseAnalytics.logEvent("Click_Picture", bundle); Answers.getInstance().logCustom(new CustomEvent("Click_Picture") .putCustomAttribute("CONTENT_TYPE", "image") ); Answers.getInstance().logContentView(new ContentViewEvent() .putContentName("Click_Picture") .putContentType("image") .putContentId("1")); }
Example #4
Source File: MyApp.java From Learning-Resources with MIT License | 5 votes |
public static void logOpenEvent() { Bundle bundle = new Bundle(); bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 2); bundle.putString(FirebaseAnalytics.Param.DESTINATION, DeviceInfo.getDeviceName()); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.APP_OPEN, bundle); Answers.getInstance().logCustom(new CustomEvent("APP_OPEN") .putCustomAttribute("DESTINATION", DeviceInfo.getDeviceName()) ); Answers.getInstance().logContentView(new ContentViewEvent() .putContentName("APP_OPEN") .putContentType(DeviceInfo.getDeviceName()) .putContentId("2")); }
Example #5
Source File: MyApp.java From Learning-Resources with MIT License | 5 votes |
public static void logShareEvent(SharePlatform platform) { Bundle bundle = new Bundle(); bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 3); bundle.putString(FirebaseAnalytics.Param.DESTINATION, platform.getPlatform()); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SHARE, bundle); Answers.getInstance().logCustom(new CustomEvent("SHARE") .putCustomAttribute("DESTINATION", platform.getPlatform()) ); Answers.getInstance().logContentView(new ContentViewEvent() .putContentName("SHARE") .putContentType(platform.getPlatform()) .putContentId("3")); }
Example #6
Source File: BaseActivity.java From prayer-times-android with Apache License 2.0 | 5 votes |
@Override public void onItemClick(AdapterView<?> parent, View view, int pos, long id) { if (pos == 0) return; pos--; // header if (pos == mNavPos && mDrawerLayout.isDrawerOpen(mNav)) { mDrawerLayout.closeDrawers(); return; } Module.values()[pos].launch(this); mDrawerLayout.closeDrawers(); Answers.getInstance().logContentView(new ContentViewEvent().putContentName(Module.values()[mNavPos].getKey())); //AppRatingDialog.addToOpenedMenus(ACTS[pos]); }
Example #7
Source File: FabricProvider.java From android with Apache License 2.0 | 4 votes |
private void logContentView(String screen) { Answers.getInstance() .logContentView(new ContentViewEvent() .putContentName(screen) ); }
Example #8
Source File: BaseActivity.java From fontster with Apache License 2.0 | 4 votes |
protected void sendToCrashlytics(String message) { Answers.getInstance().logContentView(new ContentViewEvent().putContentName(message)); }