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
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