Provides functionality to send content via the Facebook Message Dialog
Mở rộng: | FacebookDialogBase |
Triển khai: | Sharer |
Gói: | widget |
MessageDialog(Activity)
Constructs a MessageDialog.
public MessageDialog(Activity activity)
Thông số | Mô tả |
---|---|
activity | Activity to use to send the provided content. |
MessageDialog(Fragment)
Constructs a MessageDialog.
public MessageDialog(Fragment fragment)
Thông số | Mô tả |
---|---|
fragment | Android.support.v4.app.Fragment to use to send the provided content. |
MessageDialog(Fragment)
Constructs a MessageDialog.
public MessageDialog(Fragment fragment)
Thông số | Mô tả |
---|---|
fragment | Android.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)
Thông số | Mô tả |
---|---|
activity | Activity to use to send the provided content |
shareContent | Content 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)
Thông số | Mô tả |
---|---|
fragment | Android.support.v4.app.Fragment to use to send the provided content |
shareContent | Content 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)
Thông số | Mô tả |
---|---|
fragment | Android.app.Fragment to use to send the provided content |
shareContent | Content 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)
Thông số | Mô tả |
---|---|
contentType | Class of the intended ShareContent to send. |
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()
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)
Thông số | Mô tả |
---|---|
shouldFailOnDataError | Whether the dialog should fail if it finds an error. |
setShouldFailOnDataError(boolean)
public void setShouldFailOnDataError(boolean shouldFailOnDataError)
Thông số | Mô tả |
---|---|
shouldFailOnDataError |