public class

UserCropSelectionDialogFragment

extends DialogFragment
java.lang.Object
   ↳ DialogFragment
     ↳ com.pdftron.pdf.controls.UserCropSelectionDialogFragment

Class Overview

The UserCropSelectionDialogFragment shows three crop mode options. Activities that contain this fragment must implement the UserCropSelectionDialogFragment.UserCropSelectionDialogFragmentListener interface to handle interaction events. Use the newInstance() factory method to create an instance of this fragment.

Summary

Nested Classes
interface UserCropSelectionDialogFragment.UserCropSelectionDialogFragmentListener Callback interface to be invoked when an interaction is needed. 
Constants
int MODE_AUTO_CROP Auto crop mode
int MODE_MANUAL_CROP Manual crop mode
int MODE_RESET_CROP Reset crop mode
Public Constructors
UserCropSelectionDialogFragment()
Public Methods
static UserCropSelectionDialogFragment newInstance()
Dialog onCreateDialog(Bundle savedInstanceState)
void onDismiss(DialogInterface dialog)
void setUserCropSelectionDialogFragmentListener(UserCropSelectionDialogFragment.UserCropSelectionDialogFragmentListener listener)
Sets the UserCropSelectionDialogFragmentListener listener
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MODE_AUTO_CROP

Auto crop mode

Constant Value: 0 (0x00000000)

public static final int MODE_MANUAL_CROP

Manual crop mode

Constant Value: 1 (0x00000001)

public static final int MODE_RESET_CROP

Reset crop mode

Constant Value: 2 (0x00000002)

Public Constructors

public UserCropSelectionDialogFragment ()

Public Methods

public static UserCropSelectionDialogFragment newInstance ()

Returns
  • new instance of this class

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onDismiss (DialogInterface dialog)

public void setUserCropSelectionDialogFragmentListener (UserCropSelectionDialogFragment.UserCropSelectionDialogFragmentListener listener)

Sets the UserCropSelectionDialogFragmentListener listener

Parameters
listener The listener