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


Java SessionTracker類代碼示例

本文整理匯總了Java中com.facebook.internal.SessionTracker的典型用法代碼示例。如果您正苦於以下問題:Java SessionTracker類的具體用法?Java SessionTracker怎麽用?Java SessionTracker使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: finishInit

import com.facebook.internal.SessionTracker; //導入依賴的package包/類
private void finishInit() {
    super.setOnClickListener(new LoginClickListener());
    setButtonText();
    if (!isInEditMode()) {
        sessionTracker = new SessionTracker(getContext(), new LoginButtonCallback(), null, false);
        fetchUserInfo();
    }
}
 
開發者ID:MobileDev418,項目名稱:AndroidBackendlessChat,代碼行數:9,代碼來源:LoginButton.java

示例2: onActivityCreated

import com.facebook.internal.SessionTracker; //導入依賴的package包/類
@Override
public void onActivityCreated(final Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    sessionTracker = new SessionTracker(getActivity(), new Session.StatusCallback() {
        @Override
        public void call(Session session, SessionState state, Exception exception) {
            if (!session.isOpened()) {
                // When a session is closed, we want to clear out our data so it is not visible to subsequent users
                clearResults();
            }
        }
    });

    setSettingsFromBundle(savedInstanceState);

    loadingStrategy = createLoadingStrategy();
    loadingStrategy.attach(adapter);

    selectionStrategy = createSelectionStrategy();
    selectionStrategy.readSelectionFromBundle(savedInstanceState, SELECTION_BUNDLE_KEY);

    // Should we display a title bar? (We need to do this after we've retrieved our bundle settings.)
    if (showTitleBar) {
        inflateTitleBar((ViewGroup) getView());
    }

    if (activityCircle != null && savedInstanceState != null) {
        boolean shown = savedInstanceState.getBoolean(ACTIVITY_CIRCLE_SHOW_KEY, false);
        if (shown) {
            displayActivityCircle();
        } else {
            // Should be hidden already, but just to be sure.
            hideActivityCircle();
        }
    }
}
 
開發者ID:MobileDev418,項目名稱:AndroidBackendlessChat,代碼行數:38,代碼來源:PickerFragment.java

示例3: finishInit

import com.facebook.internal.SessionTracker; //導入依賴的package包/類
private void finishInit() {
    setOnClickListener(new LoginClickListener());
    setButtonText();
    if (!isInEditMode()) {
        sessionTracker = new SessionTracker(getContext(), new LoginButtonCallback(), null, false);
        fetchUserInfo();
    }
}
 
開發者ID:yeloapp,項目名稱:yelo-android,代碼行數:9,代碼來源:LoginButton.java

示例4: finishInit

import com.facebook.internal.SessionTracker; //導入依賴的package包/類
private void finishInit()
{
  super.setOnClickListener(new LoginClickListener(null));
  setButtonText();
  if (!isInEditMode())
  {
    this.sessionTracker = new SessionTracker(getContext(), new LoginButtonCallback(null), null, false);
    fetchUserInfo();
  }
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:11,代碼來源:LoginButton.java

示例5: onActivityCreated

import com.facebook.internal.SessionTracker; //導入依賴的package包/類
public void onActivityCreated(Bundle paramBundle)
{
  super.onActivityCreated(paramBundle);
  this.sessionTracker = new SessionTracker(getActivity(), new Session.StatusCallback()
  {
    public void call(Session paramAnonymousSession, SessionState paramAnonymousSessionState, Exception paramAnonymousException)
    {
      if (!paramAnonymousSession.isOpened())
        PickerFragment.this.clearResults();
    }
  });
  setSettingsFromBundle(paramBundle);
  this.loadingStrategy = createLoadingStrategy();
  this.loadingStrategy.attach(this.adapter);
  this.selectionStrategy = createSelectionStrategy();
  this.selectionStrategy.readSelectionFromBundle(paramBundle, "com.facebook.android.PickerFragment.Selection");
  if (this.showTitleBar)
    inflateTitleBar((ViewGroup)getView());
  if ((this.activityCircle != null) && (paramBundle != null))
  {
    if (paramBundle.getBoolean("com.facebook.android.PickerFragment.ActivityCircleShown", false))
    {
      displayActivityCircle();
      return;
    }
    hideActivityCircle();
  }
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:29,代碼來源:PickerFragment.java


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