public class FriendPickerFragment extends PickerFragment<GraphUser>
PickerFragment.GraphObjectFilter<T>, PickerFragment.OnDataChangedListener, PickerFragment.OnDoneButtonClickedListener, PickerFragment.OnErrorListener, PickerFragment.OnSelectionChangedListenerandroid.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedStateIAddonAttacher.AddonCallback<V>, IAddonAttacher.AttachException| Modifier and Type | Field and Description |
|---|---|
static String |
MULTI_SELECT_BUNDLE_KEY
The key for a boolean parameter in the fragment's Intent bundle to indicate whether the
picker should allow more than one friend to be selected or not.
|
static String |
USER_ID_BUNDLE_KEY
The key for a String parameter in the fragment's Intent bundle to indicate what user's
friends should be shown.
|
DONE_BUTTON_TEXT_BUNDLE_KEY, EXTRA_FIELDS_BUNDLE_KEY, SHOW_PICTURES_BUNDLE_KEY, SHOW_TITLE_BAR_BUNDLE_KEY, TITLE_TEXT_BUNDLE_KEY| Constructor and Description |
|---|
FriendPickerFragment()
Default constructor.
|
FriendPickerFragment(android.os.Bundle args)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getMultiSelect()
Gets whether the user can select multiple friends, or only one friend.
|
List<GraphUser> |
getSelection()
Gets the currently-selected list of users.
|
String |
getUserId()
Gets the ID of the user whose friends should be displayed.
|
void |
onInflate(Activity activity,
android.util.AttributeSet attrs,
android.os.Bundle savedInstanceState) |
void |
setMultiSelect(boolean multiSelect)
Sets whether the user can select multiple friends, or only one friend.
|
void |
setSettingsFromBundle(android.os.Bundle inState)
Updates the properties of the PickerFragment based on the contents of the supplied Bundle;
calling Activities may use this to pass additional configuration information to the
PickerFragment beyond what is specified in its XML layout.
|
void |
setUserId(String userId)
Sets the ID of the user whose friends should be displayed.
|
getDoneButtonText, getExtraFields, getFilter, getOnDataChangedListener, getOnDoneButtonClickedListener, getOnErrorListener, getOnSelectionChangedListener, getSession, getShowPictures, getShowTitleBar, getTitleText, loadData, onActivityCreated, onCreate, onCreateView, onDetach, onSaveInstanceState, setArguments, setDoneButtonText, setExtraFields, setFilter, setOnDataChangedListener, setOnDoneButtonClickedListener, setOnErrorListener, setOnSelectionChangedListener, setSession, setShowPictures, setShowTitleBar, setTitleTextaddon, addon, addon, getLayoutInflater, instantiate, instantiate, instantiate, instantiate, isAddonAttached, lockAttaching, obtainAddonsList, onAttach, onViewCreated, performAddonAction, startActionModegetContainerId, getContextMenuListener, getDefaultSharedPreferences, getDefaultSharedPreferences, getLayoutInflater, getMenuInflater, getSharedPreferences, getSharedPreferences, getSupportActionBar, getSupportActionBarContext, getSupportActivity, getSupportApplication, getSystemService, isDetachChildFragments, onAttach, onContextItemSelected, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateContextMenu, onCreateOptionsMenu, onCreateOptionsMenu, onCreateView, onDestroyView, onInflate, onOptionsItemSelected, onOptionsItemSelected, onPrepareOptionsMenu, onPrepareOptionsMenu, onViewCreated, openContextMenu, registerForContextMenu, setDetachChildFragments, setInitialSavedState, setUserVisibleHint, unregisterForContextMenudump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onConfigurationChanged, onCreateAnimation, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onLowMemory, onOptionsMenuClosed, onPause, onResume, onStart, onStop, onViewStateRestored, setHasOptionsMenu, setMenuVisibility, setRetainInstance, setTargetFragment, startActivity, startActivityForResult, toStringpublic static final String USER_ID_BUNDLE_KEY
public static final String MULTI_SELECT_BUNDLE_KEY
public FriendPickerFragment()
public FriendPickerFragment(android.os.Bundle args)
args - a Bundle that optionally contains one or more values containing additional
configuration information for the Fragment.public String getUserId()
public void setUserId(String userId)
userId - the user ID, or nullpublic boolean getMultiSelect()
public void setMultiSelect(boolean multiSelect)
multiSelect - true if the user can select multiple friends, false if only one friendpublic List<GraphUser> getSelection()
public void onInflate(Activity activity, android.util.AttributeSet attrs, android.os.Bundle savedInstanceState)
onInflate in class PickerFragment<GraphUser>public void setSettingsFromBundle(android.os.Bundle inState)
PickerFragmentsetSettingsFromBundle in class PickerFragment<GraphUser>inState - a Bundle containing keys corresponding to properties of the PickerFragmentCopyright © 2013. All Rights Reserved.