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(Integer requestCode)
        Constructs a new ShareDialog without any context.
      • 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.
      • ShareDialog

        ShareDialog(Activity activity, Integer requestCode)
        for internal use only
      • ShareDialog

        ShareDialog(Fragment fragment, Integer requestCode)
        for internal use only
      • ShareDialog

        ShareDialog(Fragment fragment, Integer requestCode)
        for internal use only
    • Method Detail

      • setRequestCode

         final Unit setRequestCode(Integer requestCode)

        Set the request code for the startActivityForResult call. The requestCode should be outside of the range of those reserved for the Facebook SDK .

        Parameters:
        requestCode - the request code to use.
      • 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

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