SharePhoto.Builder
有此級別的更新版本。前往查看 最新版本。

Builder for the SharePhoto interface.

伸延:Object
實作ShareModelBuilder
套件:model
建構函式
SharePhoto.Builder()
public SharePhoto.Builder()
類別方式
writeListTo(Parcel, List)
public static void writeListTo(Parcel out, List photos)
參數說明
out
photos
readListFrom(Parcel)
public static List readListFrom(Parcel in)
參數說明
in
執行個體方法
setBitmap(Bitmap)

Sets the bitmap representation of the photo.

public Builder setBitmap(Bitmap bitmap)
參數說明
bitmapBitmap representation of the photo.
Returns
The builder.
setImageUrl(Uri)

Sets the URL to the photo.

public Builder setImageUrl(Uri imageUrl)
參數說明
imageUrlUri 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)
參數說明
userGeneratedIndication of whether the photo is user-generated.
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)
參數說明
modelThe source ShareModel
Returns
The builder.
readFrom(SharePhoto)
public Builder readFrom(SharePhoto model)
參數說明
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)
參數說明
parcelThe Parcel that contains the ShareModel.
Returns
The builder.
readFrom(Parcel)
public Builder readFrom(Parcel parcel)
參數說明
parcel