Package 

Class ShareContent.Builder

    • Method Summary

      Modifier and Type Method Description
      final B setContentUrl(Uri contentUrl) Set the URL for the content being shared.
      final B setPeopleIds(List<String> peopleIds) Set the list of Ids for taggable people to tag with this content.
      final B setPlaceId(String placeId) Set the Id for a place to tag with this content.
      final B setPageId(String pageId) Set the Id of the Facebook page this share is associated with.
      final B setRef(String ref) Set the value to be added to the referrer URL when a person follows a link from this shared content on feed.
      final B setShareHashtag(ShareHashtag shareHashtag) Set the ShareHashtag for this content
      B readFrom(M content) Reads the values from a ShareModel into the builder.
      • Methods inherited from class com.facebook.share.model.ShareModelBuilder

        build
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShareContent.Builder

        ShareContent.Builder()
    • Method Detail

      • setContentUrl

         final B setContentUrl(Uri contentUrl)

        Set the URL for the content being shared.

        Parameters:
        contentUrl - android.net.Uri representation of the content link.
      • setPeopleIds

         final B setPeopleIds(List<String> peopleIds)

        Set the list of Ids for taggable people to tag with this content.

        Parameters:
        peopleIds - java.util.List of Ids for people to tag.
      • setPlaceId

         final B setPlaceId(String placeId)

        Set the Id for a place to tag with this content.

        Parameters:
        placeId - The Id for the place to tag.
      • setPageId

         final B setPageId(String pageId)

        Set the Id of the Facebook page this share is associated with.

        Parameters:
        pageId - The Id for the Page
      • setRef

         final B setRef(String ref)

        Set the value to be added to the referrer URL when a person follows a link from this shared content on feed.

        Parameters:
        ref - The ref for the content.
      • setShareHashtag

         final B setShareHashtag(ShareHashtag shareHashtag)

        Set the ShareHashtag for this content

        Parameters:
        shareHashtag - The hashtag for this content
      • readFrom

         B readFrom(M content)

        Reads the values from a ShareModel into the builder.

        Parameters:
        content - The source ShareModel