Provides functionality to share content via the Facebook Share Dialog
확장: | FacebookDialogBase |
구현: | Sharer |
패키지: | widget |
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)
매개변수 | 설명 |
---|---|
activity | Activity to use to share the provided content |
shareContent | Content to share |
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)
매개변수 | 설명 |
---|---|
fragment | Android.support.v4.app.Fragment to use to share the provided content |
shareContent | Content to share |
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)
매개변수 | 설명 |
---|---|
fragment | Android.app.Fragment to use to share the provided content |
shareContent | Content to share |
canShow(Class)
Indicates whether it is possible to show the dialog for ShareContent of the specified type.
public static boolean canShow(Class contentType)
매개변수 | 설명 |
---|---|
contentType | Class of the intended ShareContent to share. |
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)
매개변수 | 설명 |
---|---|
shouldFailOnDataError | Whether the dialog should fail if it finds an error. |
setShouldFailOnDataError(boolean)
public void setShouldFailOnDataError(boolean shouldFailOnDataError)
매개변수 | 설명 |
---|---|
shouldFailOnDataError |
canShow(ShareContent, Mode)
Call this to check if the Share Dialog can be shown in a specific mode.
public boolean canShow(ShareContent content, Mode mode)
매개변수 | 설명 |
---|---|
content | |
mode | Mode of the Share Dialog |
show(ShareContent, Mode)
Call this to show the Share Dialog in a specific mode
public void show(ShareContent content, Mode mode)
매개변수 | 설명 |
---|---|
content | |
mode | Mode of the Share Dialog |
WEB_SHARE_DIALOG
public static final String WEB_SHARE_DIALOG