Android SDK Version
- AccessToken
- AccessToken.AccessTokenCreationCallback
- AccessToken.AccessTokenRefreshCallback
- AccessTokenManager
- AccessTokenSource
- AccessTokenTracker
- AddressFilterManager
- All
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsLogger.FlushBehavior
- AppEventsLogger.ProductAvailability
- AppEventsLogger.ProductCondition
- AppEventsManager
- AppGroupCreationContent
- AppGroupCreationContent.AppGroupPrivacy
- AppGroupCreationContent.Builder
- AppInviteContent
- AppInviteContent.Builder
- AppInviteContent.Builder.Destination
- AppInviteDialog
- AppInviteDialog.Result
- AppLinkData
- AppLinkData.CompletionHandler
- AppLinks
- CallbackManager
- CallbackManager.Factory
- CameraEffectArguments
- CameraEffectArguments.Builder
- CameraEffectTextures
- CameraEffectTextures.Builder
- CodelessLoggingEventListener
- CodelessLoggingEventListener.AutoLoggingOnClickListener
- CodelessLoggingEventListener.AutoLoggingOnItemClickListener
- CodelessManager
- Common
- Core
- CreateAppGroupDialog
- CreateAppGroupDialog.Result
- CurrentAccessTokenExpirationBroadcastReceiver
- CurrentPlaceFeedbackRequestParams
- CurrentPlaceFeedbackRequestParams.Builder
- CurrentPlaceRequestParams
- CurrentPlaceRequestParams.Builder
- CurrentPlaceRequestParams.ConfidenceLevel
- CurrentPlaceRequestParams.ScanMode
- CustomTabActivity
- CustomTabLoginMethodHandler
- CustomTabMainActivity
- DefaultAudience
- DeviceAuthDialog
- DeviceLoginButton
- DeviceLoginManager
- DeviceShareButton
- DeviceShareDialog
- DeviceShareDialog.Result
- EventDeactivationManager
- FacebookActivity
- FacebookAppLinkResolver
- FacebookAuthorizationException
- FacebookBroadcastReceiver
- FacebookButtonBase
- FacebookCallback
- FacebookContentProvider
- FacebookDialog
- FacebookDialogException
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookRequestError.Category
- FacebookSdk
- FacebookSdk.InitializeCallback
- FacebookSdkNotInitializedException
- FacebookServiceException
- FlushResult
- GameRequestContent
- GameRequestContent.ActionType
- GameRequestContent.Builder
- GameRequestContent.Filters
- GameRequestDialog
- GameRequestDialog.Result
- GraphRequest
- GraphRequest.Callback
- GraphRequest.GraphJSONArrayCallback
- GraphRequest.GraphJSONObjectCallback
- GraphRequest.OnProgressCallback
- GraphRequest.ParcelableResourceWithMimeType
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphRequestBatch.Callback
- GraphRequestBatch.OnProgressCallback
- GraphResponse
- GraphResponse.PagingDirection
- HttpMethod
- InternalAppEventsLogger
- JoinAppGroupDialog
- JoinAppGroupDialog.Result
- LikeView
- LikeView.AuxiliaryViewPosition
- LikeView.HorizontalAlignment
- LikeView.ObjectType
- LikeView.OnErrorListener
- LikeView.Style
- LoggingBehavior
- Login
- LoginBehavior
- LoginButton
- LoginButton.ToolTipMode
- LoginFragment
- LoginManager
- LoginResult
- LoginStatusCallback
- MessageDialog
- Messenger
- MessengerThreadParams
- MessengerThreadParams.Origin
- MessengerUtils
- MetadataIndexer
- Model
- ModelManager
- PlaceFields
- PlaceInfoRequestParams
- PlaceInfoRequestParams.Builder
- PlaceManager
- PlaceManager.LocationError
- PlaceManager.OnRequestReadyCallback
- Places
- PlaceSearchRequestParams
- PlaceSearchRequestParams.Builder
- Profile
- ProfileManager
- ProfilePictureView
- ProfilePictureView.OnErrorListener
- ProfileTracker
- RCTCodelessLoggingEventListener
- RCTCodelessLoggingEventListener.AutoLoggingOnTouchListener
- RestrictiveDataManager
- SendButton
- Share
- ShareApi
- ShareBuilder
- ShareButton
- ShareButtonBase
- ShareCameraEffectContent
- ShareCameraEffectContent.Builder
- ShareContent
- ShareContent.Builder
- ShareDialog
- ShareDialog.Mode
- ShareGraphRequest
- ShareHashtag
- ShareHashtag.Builder
- ShareLinkContent
- ShareLinkContent.Builder
- ShareMedia
- ShareMedia.Builder
- ShareMedia.Type
- ShareMediaContent
- ShareMediaContent.Builder
- ShareMessengerActionButton
- ShareMessengerActionButton.Builder
- ShareMessengerGenericTemplateContent
- ShareMessengerGenericTemplateContent.Builder
- ShareMessengerGenericTemplateContent.ImageAspectRatio
- ShareMessengerGenericTemplateElement
- ShareMessengerGenericTemplateElement.Builder
- ShareMessengerMediaTemplateContent
- ShareMessengerMediaTemplateContent.Builder
- ShareMessengerMediaTemplateContent.MediaType
- ShareMessengerOpenGraphMusicTemplateContent
- ShareMessengerOpenGraphMusicTemplateContent.Builder
- ShareMessengerURLActionButton
- ShareMessengerURLActionButton.Builder
- ShareMessengerURLActionButton.WebviewHeightRatio
- ShareModel
- ShareModelBuilder
- ShareOpenGraphAction
- ShareOpenGraphAction.Builder
- ShareOpenGraphContent
- ShareOpenGraphContent.Builder
- ShareOpenGraphObject
- ShareOpenGraphObject.Builder
- ShareOpenGraphValueContainer
- ShareOpenGraphValueContainer.Builder
- SharePhoto
- SharePhoto.Builder
- SharePhotoContent
- SharePhotoContent.Builder
- Sharer
- Sharer.Result
- ShareStoryContent
- ShareStoryContent.Builder
- ShareToMessengerParams
- ShareToMessengerParamsBuilder
- ShareVideo
- ShareVideo.Builder
- ShareVideoContent
- ShareVideoContent.Builder
- SuggestedEventsManager
- ToolTipPopup
- ToolTipPopup.Style
- UserDataStore
- Utils
- ViewIndexer
- ViewOnClickListener
- WebDialog
- java.lang.Object
- com.facebook.internal.FacebookDialogBase<ShareContent,Sharer.Result>
- com.facebook.share.widget.ShareDialog
All Implemented Interfaces:
public final class ShareDialog extends com.facebook.internal.FacebookDialogBase<ShareContent,Sharer.Result> implements Sharer
Provides functionality to share content via the Facebook Share Dialog
Nested Class Summary
Modifier and Type | Class and Description |
---|---|
static class | ShareDialog.Mode The mode for the share dialog. |
Constructor Summary
Constructor and Description |
---|
ShareDialog(Activity activity) Constructs a new ShareDialog. |
ShareDialog(android.app.Fragment fragment) Constructs a new ShareDialog. |
ShareDialog(Fragment fragment) Constructs a new ShareDialog. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static boolean | canShow(java.lang.Class<? extends ShareContent> contentType) Indicates whether it is possible to show the dialog for ShareContent of the specified type. |
boolean | canShow(ShareContent content, ShareDialog.Mode mode) Call this to check if the Share Dialog can be shown in a specific mode. |
protected com.facebook.internal.AppCall | createBaseAppCall() |
protected java.util.List<com.facebook.internal.FacebookDialogBase.ModeHandler> | getOrderedModeHandlers() |
boolean | getShouldFailOnDataError() Specifies whether the sharer should fail if it finds an error with the share content. |
protected void | registerCallbackImpl(com.facebook.internal.CallbackManagerImpl callbackManager, FacebookCallback<Sharer.Result> callback) |
void | setShouldFailOnDataError(boolean shouldFailOnDataError) Specifies whether the sharer should fail if it finds an error with the share content. |
static void | show(Activity activity, ShareContent shareContent) Helper to show the provided ShareContent using the provided Activity. |
static void | show(android.app.Fragment fragment, ShareContent shareContent) Helper to show the provided ShareContent using the provided Fragment. |
static void | show(Fragment fragment, ShareContent shareContent) Helper to show the provided ShareContent using the provided Fragment. |
void | show(ShareContent content, ShareDialog.Mode mode) Call this to show the Share Dialog in a specific mode |
Constructor Detail
ShareDialog
public ShareDialog(Activity activity)
Constructs a new ShareDialog.
Parameters:
activity
- Activity to use to share the provided content.ShareDialog
public ShareDialog(Fragment fragment)
Constructs a new ShareDialog.
Parameters:
fragment
- android.support.v4.app.Fragment to use to share the provided content.ShareDialog
public ShareDialog(android.app.Fragment fragment)
Constructs a new ShareDialog.
Parameters:
fragment
- android.app.Fragment to use to share the provided content.Method Detail
show
public static void show(Activity activity, ShareContent shareContent)
Helper to show the provided
ShareContent
using the provided Activity. No callback will be invoked.Parameters:
activity
- Activity to use to share the provided contentshareContent
- Content to shareshow
public static void show(Fragment fragment, ShareContent shareContent)
Helper to show the provided
ShareContent
using the provided Fragment. No callback will be invoked.Parameters:
fragment
- android.support.v4.app.Fragment to use to share the provided contentshareContent
- Content to shareshow
public static void show(android.app.Fragment fragment, ShareContent shareContent)
Helper to show the provided
ShareContent
using the provided Fragment. No callback will be invoked.Parameters:
fragment
- android.app.Fragment to use to share the provided contentshareContent
- Content to sharecanShow
public static boolean canShow(java.lang.Class<? extends ShareContent> contentType)
Indicates whether it is possible to show the dialog for
ShareContent
of the specified type.Parameters:
contentType
- Class of the intended ShareContent
to share.Returns:
True if the specified content type can be shown via the dialog
registerCallbackImpl
protected void registerCallbackImpl(com.facebook.internal.CallbackManagerImpl callbackManager, FacebookCallback<Sharer.Result> callback)
Specified by:
registerCallbackImpl
in class com.facebook.internal.FacebookDialogBase<ShareContent,Sharer.Result>
getShouldFailOnDataError
public boolean getShouldFailOnDataError()
Description copied from interface:
Sharer
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.
setShouldFailOnDataError
public void setShouldFailOnDataError(boolean shouldFailOnDataError)
Description copied from interface:
Sharer
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.
Specified by:
setShouldFailOnDataError
in interface Sharer
Parameters:
shouldFailOnDataError
- whether the dialog should fail if it finds an error.canShow
public boolean canShow(ShareContent content, ShareDialog.Mode mode)
Call this to check if the Share Dialog can be shown in a specific mode.
Parameters:
mode
- Mode of the Share DialogReturns:
True if the dialog can be shown in the passed in Mode
show
public void show(ShareContent content, ShareDialog.Mode mode)
Call this to show the Share Dialog in a specific mode
Parameters:
mode
- Mode of the Share DialogcreateBaseAppCall
protected com.facebook.internal.AppCall createBaseAppCall()
Specified by:
createBaseAppCall
in class com.facebook.internal.FacebookDialogBase<ShareContent,Sharer.Result>
getOrderedModeHandlers
protected java.util.List<com.facebook.internal.FacebookDialogBase.ModeHandler> getOrderedModeHandlers()
Specified by:
getOrderedModeHandlers
in class com.facebook.internal.FacebookDialogBase<ShareContent,Sharer.Result>