Android SDK Version
  • java.lang.Object
    • com.facebook.share.model.ShareMedia.Builder<M,B>
All Implemented Interfaces:
Direct Known Subclasses:
Enclosing class:

public abstract static class ShareMedia.Builder<M extends ShareMedia,B extends ShareMedia.Builder>
extends java.lang.Object
implements ShareModelBuilder<M,B>
Builder for the ShareMedia class.
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
BreadFrom(M model)
Reads the values from a ShareModel into the builder.
BsetParameter(java.lang.String key, java.lang.String value)
Deprecated. 
This method is deprecated. Use GraphRequest directly to set parameters.
BsetParameters(Bundle parameters)
Deprecated. 
This method is deprecated. Use GraphRequest directly to set parameters.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.facebook.share.
build
Constructor Detail

Builder

public Builder()
Method Detail

setParameter

@Deprecated
public B setParameter(java.lang.String key,
                                  java.lang.String value)
Deprecated. This method is deprecated. Use GraphRequest directly to set parameters.

setParameters

@Deprecated
public B setParameters(Bundle parameters)
Deprecated. This method is deprecated. Use GraphRequest directly to set parameters.

readFrom

public B readFrom(M model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
readFrom in interface ShareModelBuilder<M extends ShareMedia,B extends ShareMedia.Builder>
Parameters:
model - The source ShareModel
Returns:
The builder.