Package 

Class ShareDialog

    • Constructor Detail

      • ShareDialog

        ShareDialog(Activity activity)
        Constructs a new ShareDialog.
        Parameters:
        activity - Activity to use to share the provided content.
      • ShareDialog

        ShareDialog(Fragment fragment)
        Constructs a new ShareDialog.
        Parameters:
        fragment - androidx.fragment.app.Fragment to use to share the provided content.
      • ShareDialog

        ShareDialog(Fragment fragment)
        Constructs a new ShareDialog.
        Parameters:
        fragment - android.app.Fragment to use to share the provided content.
    • Method Detail

      • getShouldFailOnDataError

         boolean 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.

      • setShouldFailOnDataError

         void setShouldFailOnDataError(boolean shouldFailOnDataError)

        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.

        Parameters:
        shouldFailOnDataError - whether the dialog should fail if it finds an error.
      • canShow

         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 Dialog
      • show

         void show(ShareContent content, ShareDialog.Mode mode)

        Call this to show the Share Dialog in a specific mode

        Parameters:
        mode - Mode of the Share Dialog