Provides a Fragment that displays a list of a user's friends and allows one or more of the friends to be selected.
拡張: | PickerFragment |
パッケージ: | widget |
FriendPickerFragment()
Default constructor. Creates a Fragment with all default properties.
public FriendPickerFragment()
FriendPickerFragment(Bundle)
Constructor.
public FriendPickerFragment(Bundle args)
パラメーター | 説明 |
---|---|
args | A Bundle that optionally contains one or more values containing additional configuration information for the Fragment. |
getUserId()
Gets the ID of the user whose friends should be displayed. If null, the default is to show the currently authenticated user's friends.
public String getUserId()
setUserId(String)
Sets the ID of the user whose friends should be displayed. If null, the default is to show the currently authenticated user's friends.
public void setUserId(String userId)
パラメーター | 説明 |
---|---|
userId | The user ID, or null |
getMultiSelect()
Gets whether the user can select multiple friends, or only one friend.
public boolean getMultiSelect()
setMultiSelect(boolean)
Sets whether the user can select multiple friends, or only one friend.
public void setMultiSelect(boolean multiSelect)
パラメーター | 説明 |
---|---|
multiSelect | True if the user can select multiple friends, false if only one friend |
setFriendPickerType(FriendPickerType)
Sets the friend picker type for this fragment.
public void setFriendPickerType(FriendPickerType type)
パラメーター | 説明 |
---|---|
type | The type of friend picker to use. |
setSelectionByIds(List)
Sets the list of friends for pre selection. These friends will be selected by default.
public void setSelectionByIds(List userIds)
パラメーター | 説明 |
---|---|
userIds | List of friends as ids |
setSelectionByIds(String)
Sets the list of friends for pre selection. These friends will be selected by default.
public void setSelectionByIds(String userIds)
パラメーター | 説明 |
---|---|
userIds | List of friends as ids |
setSelection(GraphUser)
Sets the list of friends for pre selection. These friends will be selected by default.
public void setSelection(GraphUser graphUsers)
パラメーター | 説明 |
---|---|
graphUsers | List of friends as GraphUsers |
setSelection(List)
Sets the list of friends for pre selection. These friends will be selected by default.
public void setSelection(List graphUsers)
パラメーター | 説明 |
---|---|
graphUsers | List of friends as GraphUsers |
getSelection()
Gets the currently-selected list of users.
public List getSelection()
USER_ID_BUNDLE_KEY
public static final String USER_ID_BUNDLE_KEY
MULTI_SELECT_BUNDLE_KEY
public static final String MULTI_SELECT_BUNDLE_KEY
FRIEND_PICKER_TYPE_KEY
public static final String FRIEND_PICKER_TYPE_KEY