-
public class ShareDialog.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringWEB_SHARE_DIALOGpublic final static ShareDialog.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description 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()-
-
Method Detail
-
show
Unit show(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 contentshareContent- Content to share
-
show
Unit show(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
Unit show(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
Boolean canShow(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 String getWEB_SHARE_DIALOG()
-
-
-
-