Builder for the SharePhoto interface.
Estende: | Object |
Implementa: | ShareModelBuilder |
Pacote: | model |
writeListTo(Parcel, List)
public static void writeListTo(Parcel out, List photos)
Parâmetro | Descrição |
---|---|
out | |
photos |
readListFrom(Parcel)
public static List readListFrom(Parcel in)
Parâmetro | Descrição |
---|---|
in |
setBitmap(Bitmap)
Sets the bitmap representation of the photo.
public Builder setBitmap(Bitmap bitmap)
Parâmetro | Descrição |
---|---|
bitmap | Bitmap representation of the photo. |
setImageUrl(Uri)
Sets the URL to the photo.
public Builder setImageUrl(Uri imageUrl)
Parâmetro | Descrição |
---|---|
imageUrl | Uri that points to a network location or the location of the photo on disk. |
setUserGenerated(boolean)
Sets whether the photo represented by this object was generated by the user or by the application.
public Builder setUserGenerated(boolean userGenerated)
Parâmetro | Descrição |
---|---|
userGenerated | Indication of whether the photo is user-generated. |
build()
Builds the object.
public Object build()
build()
public SharePhoto build()
readFrom(ShareModel)
Reads the values from a ShareModel into the builder.
public ShareModelBuilder readFrom(ShareModel model)
Parâmetro | Descrição |
---|---|
model | The source ShareModel |
readFrom(SharePhoto)
public Builder readFrom(SharePhoto model)
Parâmetro | Descrição |
---|---|
model |
readFrom(Parcel)
Reads the values from a parcel into the builder. The parcel must have packaged an instance of the ShareModel that came from the same type of builder.
public ShareModelBuilder readFrom(Parcel parcel)
Parâmetro | Descrição |
---|---|
parcel | The Parcel that contains the ShareModel. |
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
Parâmetro | Descrição |
---|---|
parcel |