SharePhoto.Builder
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Builder for the SharePhoto class.

확장:Builder
패키지:model
생성자
SharePhoto.Builder()
public SharePhoto.Builder()
클래스 메서드
writePhotoListTo(Parcel, List)
public static void writePhotoListTo(Parcel out, List photos)
매개변수설명
out
photos
readPhotoListFrom(Parcel)
public static List readPhotoListFrom(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.
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)
매개변수설명
captionString 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)
매개변수설명
modelThe source ShareModel
Returns
The builder.
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