Facebook
SharePhoto.Builder - Documentation - Meta for Developers
SharePhoto.Builder

Builder for the SharePhoto class.

Extends: Builder
Package: model
Constructors
SharePhoto.Builder()
public SharePhoto.Builder()
Instance Methods
setBitmap(Bitmap)

Sets the bitmap representation of the photo.

public Builder setBitmap( Bitmap bitmap )
Parameter Description
bitmap Bitmap representation of the photo.
Returns
The builder.
setImageUrl(Uri)

Sets the URL to the photo.

public Builder setImageUrl( Uri imageUrl )
Parameter Description
imageUrl Uri that points to a network location or the location of the photo on disk.
Returns
The builder.
setUserGenerated(boolean)

Sets whether the photo represented by this object was generated by the user or by the application.

public Builder setUserGenerated( boolean userGenerated )
Parameter Description
userGenerated Indication of whether the photo is user-generated.
Returns
The builder.
setCaption(String)

Sets the user generated caption for the photo. Note that the 'caption' must come from the user, as pre-filled content is forbidden by the Platform Policies (2.3).

public Builder setCaption( String caption )
Parameter Description
caption String of a SharePhoto
Returns
The builder.
build()

Builds the object.

public Object build()
Returns
The built object.
build()
public SharePhoto build()
readFrom(ShareModel)

Reads the values from a ShareModel into the builder.

public ShareModelBuilder readFrom( ShareModel model )
Parameter Description
model The source ShareModel
Returns
The builder.
Design a Mobile Website
View Site in Mobile | Classic
Share by: