public class FriendPickerFragment extends PickerFragment<GraphUser>
PickerFragment.GraphObjectFilter<T>, PickerFragment.OnDataChangedListener, PickerFragment.OnDoneButtonClickedListener, PickerFragment.OnErrorListener, PickerFragment.OnSelectionChangedListener
Fragment.InstantiationException, Fragment.SavedState
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(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,
AttributeSet attrs,
Bundle savedInstanceState) |
void |
setMultiSelect(boolean multiSelect)
Sets whether the user can select multiple friends, or only one friend.
|
void |
setSettingsFromBundle(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, onStop, setArguments, setDoneButtonText, setExtraFields, setFilter, setOnDataChangedListener, setOnDoneButtonClickedListener, setOnErrorListener, setOnSelectionChangedListener, setSession, setShowPictures, setShowTitleBar, setTitleText
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityResult, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onHiddenChanged, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onStart, onViewCreated, onViewStateRestored, registerForContextMenu, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenu
public static final String USER_ID_BUNDLE_KEY
public static final String MULTI_SELECT_BUNDLE_KEY
public FriendPickerFragment()
public FriendPickerFragment(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, AttributeSet attrs, Bundle savedInstanceState)
onInflate
in class PickerFragment<GraphUser>
public void setSettingsFromBundle(Bundle inState)
PickerFragment
setSettingsFromBundle
in class PickerFragment<GraphUser>
inState
- a Bundle containing keys corresponding to properties of the PickerFragment