Package com.pspdfkit.document.image
Class BaseImagePickerFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks
,android.view.View.OnCreateContextMenuListener
,androidx.activity.result.ActivityResultCaller
,androidx.lifecycle.HasDefaultViewModelProviderFactory
,androidx.lifecycle.LifecycleOwner
,androidx.lifecycle.ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
public abstract class BaseImagePickerFragment extends Fragment
Base fragment for image picker implementations.
-
-
Constructor Summary
Constructors Constructor Description BaseImagePickerFragment()
-
Method Summary
Modifier and Type Method Description void
setOnImagePickedListener(@Nullable() ImagePicker.OnImagePickedListener onImagePickedListener)
Sets on image picked listener. void
onActivityResult(int requestCode, int resultCode, Intent data)
void
onCreate(@Nullable() Bundle savedInstanceState)
void
onSaveInstanceState(Bundle outState)
void
finish()
Remove the fragment from its owning activity. -
-
Method Detail
-
setOnImagePickedListener
void setOnImagePickedListener(@Nullable() ImagePicker.OnImagePickedListener onImagePickedListener)
Sets on image picked listener. Calling this method will replace any previously set listener. You may provide
null
to clear the listener.- Parameters:
onImagePickedListener
- OnImagePickedListener that should be notified, ornull
to clear the listener.
-
onActivityResult
void onActivityResult(int requestCode, int resultCode, Intent data)
-
onSaveInstanceState
void onSaveInstanceState(Bundle outState)
-
finish
void finish()
Remove the fragment from its owning activity.
-
-
-
-