Review Fragment Compat
Component API
When you use the Compontent API with the Android Support Library, the
ReviewFragmentCompat
displays the photographed or imported image and allows the user to review it by checking the sharpness, quality and orientation of the image. The user can correct the orientation by rotating the image.
Note: Your Activity hosting this Fragment must extend the and use an AppCompat Theme.
Include the ReviewFragmentCompat
into your layout by using the createInstance factory method to create an instance and display it using the androidx.fragment.app.FragmentManager.
A ReviewFragmentListener instance must be available until the
ReviewFragmentCompat
is attached to an activity. Failing to do so will throw an exception. The listener instance can be provided either implicitly by making the hosting Activity implement the ReviewFragmentListener interface or explicitly by setting the listener using setListener.
Your Activity is automatically set as the listener in onCreate.