FriendPickerFragment
이 클래스는 더 이상 최신 버전의 SDK에서 사용할 수 없습니다.
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

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)
매개변수설명
argsA 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()
Returns
The user ID, or null
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)
매개변수설명
userIdThe user ID, or null
getMultiSelect()

Gets whether the user can select multiple friends, or only one friend.

public boolean getMultiSelect()
Returns
True if the user can select multiple friends, false if only one friend
setMultiSelect(boolean)

Sets whether the user can select multiple friends, or only one friend.

public void setMultiSelect(boolean multiSelect)
매개변수설명
multiSelectTrue 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)
매개변수설명
typeThe 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)
매개변수설명
userIdsList 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)
매개변수설명
userIdsList 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)
매개변수설명
graphUsersList 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)
매개변수설명
graphUsersList of friends as GraphUsers
getSelection()

Gets the currently-selected list of users.

public List getSelection()
Returns
The currently-selected list of users
상수
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. The default is to display the currently authenticated user's friends.
public static final String USER_ID_BUNDLE_KEY
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.
public static final String MULTI_SELECT_BUNDLE_KEY
FRIEND_PICKER_TYPE_KEY
The key for a String parameter in the fragment's Intent bundle to indicate the type of friend picker to use. This value is case sensitive, and must match the enum @{link FriendPickerType}
public static final String FRIEND_PICKER_TYPE_KEY