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