Android SDK Version


public class ShareDialog.Companion
Field Summary
Modifier and TypeFieldDescription
private final StringWEB_SHARE_DIALOG
public final static ShareDialog.CompanionINSTANCE
Method Summary
Modifier and TypeMethodDescription
Unitshow(Activity activity, ShareContent<?, ?> shareContent) Helper to show the provided com.facebook.share.model.ShareContent using the provided Activity.
Unitshow(Fragment fragment, ShareContent<?, ?> shareContent) Helper to show the provided com.facebook.share.model.ShareContent using the provided Fragment.
Unitshow(Fragment fragment, ShareContent<?, ?> shareContent) Helper to show the provided com.facebook.share.model.ShareContent using the provided Fragment.
BooleancanShow(Class<out ShareContent<?, ?>> contentType) Indicates whether it is possible to show the dialog for [ ] of the specified type.
final StringgetWEB_SHARE_DIALOG()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

show

Unitshow(Activity activity, ShareContent<?, ?> shareContent)
Helper to show the provided com.facebook.share.model.ShareContent using the provided Activity. No callback will be invoked.
Parameters:
activity - Activity to use to share the provided content
shareContent - Content to share

show

Unitshow(Fragment fragment, ShareContent<?, ?> shareContent)
Helper to show the provided com.facebook.share.model.ShareContent using the provided Fragment. No callback will be invoked.
Parameters:
fragment - androidx.fragment.app.
shareContent - Content to share

show

Unitshow(Fragment fragment, ShareContent<?, ?> shareContent)
Helper to show the provided com.facebook.share.model.ShareContent using the provided Fragment. No callback will be invoked.
Parameters:
fragment - android.app.
shareContent - Content to share

canShow

BooleancanShow(Class<out ShareContent<?, ?>> contentType)
Indicates whether it is possible to show the dialog for [ ] of the specified type.
Parameters:
contentType - Class of the intended com.facebook.share.model.ShareContent to share.

getWEB_SHARE_DIALOG

 final StringgetWEB_SHARE_DIALOG()