public class

AnnotationCreatorInputDialogFragment

extends DialogFragment
java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.fragment.app.DialogFragment
       ↳ com.pspdfkit.ui.AnnotationCreatorInputDialogFragment

Class Overview

AnnotationCreatorInputDialogFragment facilitates setting the annotation creator.

Summary

Nested Classes
interface AnnotationCreatorInputDialogFragment.OnAnnotationCreatorSetListener This listener interface needs to be implemented by any class that wishes to handle AnnotationCreatorInputDialogFragment specific dialog events. 
[Expand]
Inherited Constants
From class androidx.fragment.app.DialogFragment
[Expand]
Inherited Fields
From class androidx.fragment.app.Fragment
Public Constructors
AnnotationCreatorInputDialogFragment()
Default constructor, do not call this constructor directly, unless you know what you are doing.
Public Methods
String getSuggestedCreator()
Obtains the suggested creator from the arguments Bundle.
static void hide(FragmentManager manager)
Hides the AnnotationCreatorInputDialogFragment.
void onCreate(Bundle savedInstanceState)
Dialog onCreateDialog(Bundle savedInstanceState)
void onResume()
void onSaveInstanceState(Bundle outState)
void onViewCreated(View view, Bundle savedInstanceState)
void setOnAnnotationCreatorSetListener(AnnotationCreatorInputDialogFragment.OnAnnotationCreatorSetListener onAnnotationCreatorSetListener)
Sets a listener, that receives dialog related events.
static void show(FragmentManager manager, String creatorSuggestion, AnnotationCreatorInputDialogFragment.OnAnnotationCreatorSetListener onAnnotationCreatorSetListener)
Shows the AnnotationCreatorInputDialogFragment.
[Expand]
Inherited Methods
From class androidx.fragment.app.DialogFragment
From class androidx.fragment.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.view.View.OnCreateContextMenuListener
From interface androidx.activity.result.ActivityResultCaller
From interface androidx.lifecycle.HasDefaultViewModelProviderFactory
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner
From interface androidx.savedstate.SavedStateRegistryOwner

Public Constructors

public AnnotationCreatorInputDialogFragment ()

Default constructor, do not call this constructor directly, unless you know what you are doing. Refer to show(FragmentManager, String)

Public Methods

public String getSuggestedCreator ()

Obtains the suggested creator from the arguments Bundle.

Returns
  • The suggested creator, that was passed to this fragment.

public static void hide (FragmentManager manager)

Hides the AnnotationCreatorInputDialogFragment.

Parameters
manager The FragmentManager to use.

public void onCreate (Bundle savedInstanceState)

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onResume ()

public void onSaveInstanceState (Bundle outState)

public void onViewCreated (View view, Bundle savedInstanceState)

public void setOnAnnotationCreatorSetListener (AnnotationCreatorInputDialogFragment.OnAnnotationCreatorSetListener onAnnotationCreatorSetListener)

Sets a listener, that receives dialog related events. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters
onAnnotationCreatorSetListener AnnotationCreatorInputDialogFragment.OnAnnotationCreatorSetListener that should be notified, or null to clear the listener.

public static void show (FragmentManager manager, String creatorSuggestion, AnnotationCreatorInputDialogFragment.OnAnnotationCreatorSetListener onAnnotationCreatorSetListener)

Shows the AnnotationCreatorInputDialogFragment. Will always attempt to obtain an existing instance.

Parameters
manager The FragmentManager to use.
creatorSuggestion Optional parameter: a creator suggestion that is displayed as the default value inside the input field.
onAnnotationCreatorSetListener A listener that gets informed when the user sets or cancels setting a creator.