MessageDialog
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Provides functionality to send content via the Facebook Message Dialog

확장:FacebookDialogBase
구현:Sharer
패키지:widget
생성자
MessageDialog(Activity)

Constructs a MessageDialog.

public MessageDialog(Activity activity)
매개변수설명
activityActivity to use to send the provided content.
MessageDialog(Fragment)

Constructs a MessageDialog.

public MessageDialog(Fragment fragment)
매개변수설명
fragmentAndroid.support.v4.app.Fragment to use to send the provided content.
MessageDialog(Fragment)

Constructs a MessageDialog.

public MessageDialog(Fragment fragment)
매개변수설명
fragmentAndroid.app.Fragment to use to send the provided content.
클래스 메서드
show(Activity, ShareContent)

Helper to show the provided ShareContent using the provided Activity. No callback will be invoked.

public static void show(Activity activity, ShareContent shareContent)
매개변수설명
activityActivity to use to send the provided content
shareContentContent to send
show(Fragment, ShareContent)

Helper to show the provided ShareContent using the provided Fragment. No callback will be invoked.

public static void show(Fragment fragment, ShareContent shareContent)
매개변수설명
fragmentAndroid.support.v4.app.Fragment to use to send the provided content
shareContentContent to send
show(Fragment, ShareContent)

Helper to show the provided ShareContent using the provided Fragment. No callback will be invoked.

public static void show(Fragment fragment, ShareContent shareContent)
매개변수설명
fragmentAndroid.app.Fragment to use to send the provided content
shareContentContent to send
canShow(Class)

Indicates whether it is possible to show the dialog for ShareContent of the specified type.

public static boolean canShow(Class contentType)
매개변수설명
contentTypeClass of the intended ShareContent to send.
Returns
True if the specified content type can be shown via the dialog
인스턴스 메서드
getShouldFailOnDataError()

Specifies whether the sharer should fail if it finds an error with the share content. If false, the share dialog will still be displayed without the data that was mis-configured. For example, an invalid placeID specified on the shareContent would produce a data error.

public boolean getShouldFailOnDataError()
Returns
A Boolean value.
getShouldFailOnDataError()
public boolean getShouldFailOnDataError()
setShouldFailOnDataError(boolean)

Specifies whether the sharer should fail if it finds an error with the share content. If false, the share dialog will still be displayed without the data that was mis-configured. For example, an invalid placeID specified on the shareContent would produce a data error.

public void setShouldFailOnDataError(boolean shouldFailOnDataError)
매개변수설명
shouldFailOnDataErrorWhether the dialog should fail if it finds an error.
setShouldFailOnDataError(boolean)
public void setShouldFailOnDataError(boolean shouldFailOnDataError)
매개변수설명
shouldFailOnDataError