public class

ReplyFragmentBuilder

extends SkeletalFragmentBuilder<E extends Fragment>
java.lang.Object
   ↳ com.pdftron.pdf.interfaces.builder.SkeletalFragmentBuilder<E extends Fragment>
     ↳ com.pdftron.collab.ui.reply.bottomsheet.ReplyFragmentBuilder

Class Overview

Builder to create a ReplyFragment.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<ReplyFragmentBuilder> CREATOR
Public Methods
BottomSheetReplyFragmentBuilder asBottomSheet()
Transform this builder into a BottomSheetReplyFragmentBuilder.
ReplyFragment build(Context context)
Convenience build method that calls build(Context, Class) with the default class for this builder.
void checkArgs(Context context)
Check the arguments of this builder.
Bundle createBundle(Context context)
Create the bundle that will be passed as arguments to the Fragment.
int describeContents()
ReplyFragmentBuilder setDisableCommentEdit(boolean displayCommentEdit)
ReplyFragmentBuilder setDisableReplyEdit(boolean disableReplyEdit)
ReplyFragmentBuilder usingAdapter(AvatarAdapter adapter)
Optional method used to set ReplyFragmentBuilder with a specified AvatarAdapter.
ReplyFragmentBuilder usingTheme(int replyTheme)
Defines the theme that will be used by the ReplyFragment.
static ReplyFragmentBuilder withAnnot(String docId, String annotId, String userId)
Required method called to set ReplyFragmentBuilder with a specified AvatarAdapter.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class com.pdftron.pdf.interfaces.builder.SkeletalFragmentBuilder
From class java.lang.Object
From interface android.os.Parcelable
From interface com.pdftron.pdf.interfaces.builder.Builder

Fields

public static final Creator<ReplyFragmentBuilder> CREATOR

Public Methods

public BottomSheetReplyFragmentBuilder asBottomSheet ()

Transform this builder into a BottomSheetReplyFragmentBuilder.

Returns

public ReplyFragment build (Context context)

Convenience build method that calls build(Context, Class) with the default class for this builder.

Parameters
context the context used to initialize the fragment and its theme.
Returns
  • an instance of E with the specified parameters from the builder.

public void checkArgs (Context context)

Check the arguments of this builder. You can also det the default builder parameters in this method.

Parameters
context used to initialize default building parameters

public Bundle createBundle (Context context)

Create the bundle that will be passed as arguments to the Fragment. Called right after calling checkArgs(Context)

Parameters
context used to initialize arguments for the bundle.
Returns
  • the bundle with the required arguments for the Fragment.

public int describeContents ()

public ReplyFragmentBuilder setDisableCommentEdit (boolean displayCommentEdit)

public ReplyFragmentBuilder setDisableReplyEdit (boolean disableReplyEdit)

public ReplyFragmentBuilder usingAdapter (AvatarAdapter adapter)

Optional method used to set ReplyFragmentBuilder with a specified AvatarAdapter.

Parameters
adapter for inflating and binding the reply message avatar
Returns
  • this builder with the specified AvatarAdapter to create ReplyFragment.

public ReplyFragmentBuilder usingTheme (int replyTheme)

Defines the theme that will be used by the ReplyFragment. The theme must extend com.pdftron.collab.R.style.ReplyBaseTheme.DayNight.

Parameters
replyTheme style resource that extends ReplyBaseStyle
Returns

public static ReplyFragmentBuilder withAnnot (String docId, String annotId, String userId)

Required method called to set ReplyFragmentBuilder with a specified AvatarAdapter.

Parameters
docId that will be used to instantiate the ReplyFragment
annotId that will be used to instantiate the ReplyFragment
userId that will be used to interact with the document
Returns
  • this builder with the specified ids.

public void writeToParcel (Parcel dest, int flags)