当前位置: 首页>>代码示例>>Java>>正文


Java AppEventsLogger类代码示例

本文整理汇总了Java中com.facebook.AppEventsLogger的典型用法代码示例。如果您正苦于以下问题:Java AppEventsLogger类的具体用法?Java AppEventsLogger怎么用?Java AppEventsLogger使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AppEventsLogger类属于com.facebook包,在下文中一共展示了AppEventsLogger类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: logAppEvents

import com.facebook.AppEventsLogger; //导入依赖的package包/类
void logAppEvents(boolean paramBoolean)
{
  AppEventsLogger localAppEventsLogger = AppEventsLogger.newLogger(getActivity(), getSession());
  Bundle localBundle = new Bundle();
  String str;
  if (paramBoolean)
    str = "Completed";
  else
    str = "Unknown";
  localBundle.putString("fb_dialog_outcome", str);
  int i;
  if (getSelection() != null)
    i = 1;
  else
    i = 0;
  localBundle.putInt("num_places_picked", i);
  localAppEventsLogger.logSdkEvent("fb_place_picker_usage", null, localBundle);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:19,代码来源:PlacePickerFragment.java

示例2: logAppEvents

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
void logAppEvents(boolean doneButtonClicked) {
    AppEventsLogger logger = AppEventsLogger.newLogger(this.getActivity(), getSession());
    Bundle parameters = new Bundle();

    // If Done was clicked, we know this completed successfully. If not, we don't know (caller might have
    // dismissed us in response to selection changing, or user might have hit back button). Either way
    // we'll log the number of selections.
    String outcome = doneButtonClicked ? AnalyticsEvents.PARAMETER_DIALOG_OUTCOME_VALUE_COMPLETED :
            AnalyticsEvents.PARAMETER_DIALOG_OUTCOME_VALUE_UNKNOWN;
    parameters.putString(AnalyticsEvents.PARAMETER_DIALOG_OUTCOME, outcome);
    parameters.putInt("num_friends_picked", getSelection().size());

    logger.logSdkEvent(AnalyticsEvents.EVENT_FRIEND_PICKER_USAGE, null, parameters);
}
 
开发者ID:MobileDev418,项目名称:AndroidBackendlessChat,代码行数:16,代码来源:FriendPickerFragment.java

示例3: onPause

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
public void onPause() {
    map.setMyLocationEnabled(false);
    map.setLocationSource(null);
    locMgr.removeUpdates(this);

    if(alert != null) { alert.dismiss(); }

    // Logs 'app deactivate' App Event.
    AppEventsLogger.deactivateApp(this);
    super.onPause();
    uiHelper.onPause();
}
 
开发者ID:dklisiaris,项目名称:geopin,代码行数:14,代码来源:MainMapActivity.java

示例4: onResume

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
protected void onResume() {
    super.onResume();
    IntentFilter filter = new IntentFilter(FortunesApplication.FortunesInsertionFinish);
    registerReceiver(mReceiver, filter);
    uiHelper.onResume();
    // Logs 'install' and 'app activate' App Events.
    AppEventsLogger.activateApp(this);
}
 
开发者ID:BugsBunnyBR,项目名称:Fortunes,代码行数:10,代码来源:MainActivity.java

示例5: onPause

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
protected void onPause() {
    super.onPause();
    unregisterReceiver(mReceiver);
    uiHelper.onPause();
    // Logs 'app deactivate' App Event.
    AppEventsLogger.deactivateApp(this);

}
 
开发者ID:BugsBunnyBR,项目名称:Fortunes,代码行数:10,代码来源:MainActivity.java

示例6: logAppEvents

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
void logAppEvents(boolean doneButtonClicked) {
    AppEventsLogger logger = AppEventsLogger.newLogger(this.getActivity(), getSession());
    Bundle parameters = new Bundle();

    // If Done was clicked, we know this completed successfully. If not, we don't know (caller might have
    // dismissed us in response to selection changing, or user might have hit back button). Either way
    // we'll log the number of selections.
    String outcome = doneButtonClicked ? AnalyticsEvents.PARAMETER_DIALOG_OUTCOME_VALUE_COMPLETED :
            AnalyticsEvents.PARAMETER_DIALOG_OUTCOME_VALUE_UNKNOWN;
    parameters.putString(AnalyticsEvents.PARAMETER_DIALOG_OUTCOME, outcome);
    parameters.putInt("num_places_picked", (getSelection() != null) ? 1 : 0);

    logger.logSdkEvent(AnalyticsEvents.EVENT_PLACE_PICKER_USAGE, null, parameters);
}
 
开发者ID:yeloapp,项目名称:yelo-android,代码行数:16,代码来源:PlacePickerFragment.java

示例7: onPause

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
protected void onPause() {
    super.onPause();

    // Logs 'app deactivate' App Event.
    AppEventsLogger.deactivateApp(this);
}
 
开发者ID:ButterFlyDevs,项目名称:BrainStudio,代码行数:8,代码来源:Juego4niveln.java

示例8: onResume

import com.facebook.AppEventsLogger; //导入依赖的package包/类
public void onResume()
{
  QuizApplication.ʼ();
  ךּ.ˊ(this, true);
  super.onResume();
  this.uiHelper.onResume();
  AppEventsLogger.activateApp(this, getResources().getString(2131165367));
  trackScene();
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:10,代码来源:QuizFragmentActivity.java

示例9: logDialogActivity

import com.facebook.AppEventsLogger; //导入依赖的package包/类
private static void logDialogActivity(Activity paramActivity, iF paramiF, String paramString1, String paramString2)
{
  Object localObject;
  if (paramiF != null)
    localObject = paramiF.getActivity();
  else
    localObject = paramActivity;
  AppEventsLogger localAppEventsLogger = AppEventsLogger.newLogger((Context)localObject);
  Bundle localBundle = new Bundle();
  localBundle.putString("fb_dialog_outcome", paramString2);
  localAppEventsLogger.logSdkEvent(paramString1, null, localBundle);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:13,代码来源:FacebookDialog.java

示例10: logAppEvents

import com.facebook.AppEventsLogger; //导入依赖的package包/类
void logAppEvents(boolean paramBoolean)
{
  AppEventsLogger localAppEventsLogger = AppEventsLogger.newLogger(getActivity(), getSession());
  Bundle localBundle = new Bundle();
  String str;
  if (paramBoolean)
    str = "Completed";
  else
    str = "Unknown";
  localBundle.putString("fb_dialog_outcome", str);
  localBundle.putInt("num_friends_picked", getSelection().size());
  localAppEventsLogger.logSdkEvent("fb_friend_picker_usage", null, localBundle);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:14,代码来源:FriendPickerFragment.java

示例11: onResume

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
public void onResume() {
    super.onResume();
    uiHelper.onResume();
    isResumed = true;

    // Call the 'activateApp' method to log an app event for use in analytics and advertising reporting.  Do so in
    // the onResume methods of the primary Activities that an app may be launched into.
    AppEventsLogger.activateApp(this);
}
 
开发者ID:makinj,项目名称:MeNextAndroid,代码行数:11,代码来源:MainActivity.java

示例12: onPause

import com.facebook.AppEventsLogger; //导入依赖的package包/类
@Override
public void onPause() {
    super.onPause();
    uiHelper.onPause();
    isResumed = false;

    // Call the 'deactivateApp' method to log an app event for use in analytics and advertising
    // reporting.  Do so in the onPause methods of the primary Activities that an app may be launched into.
    AppEventsLogger.deactivateApp(this);
}
 
开发者ID:makinj,项目名称:MeNextAndroid,代码行数:11,代码来源:MainActivity.java


注:本文中的com.facebook.AppEventsLogger类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。