legacy/v13/src/main/java/androidx/legacy/app/FragmentCompat.java
@Deprecated
    public static boolean shouldShowRequestPermissionRationale(@NonNull Fragment fragment,
            @NonNull String permission) {
        return IMPL.shouldShowRequestPermissionRationale(fragment, permission);
    }
/**
     * Gets whether you should show UI with rationale for requesting a permission.
     * You should do this only if you do not have the permission and the context in
     * which the permission is requested does not clearly communicate to the user
     * what would be the benefit from granting this permission.
     * <p>
     * For example, if you write a camera app, requesting the camera permission
     * would be expected by the user and no rationale for why it is requested is
     * needed. If however, the app needs location for tagging photos then a non-tech
     * savvy user may wonder how location is related to taking photos. In this case
     * you may choose to show UI with rationale of requesting this permission.
     * </p>
     *
     * @param fragment The target fragment.
     * @param permission A permission your app wants to request.
     * @return Whether you can show permission rationale UI.
     *
     * @see androidx.core.content.ContextCompat#checkSelfPermission(
     *     android.content.Context, String)
     * @see #requestPermissions(android.app.Fragment, String[], int)
     *
     * @deprecated Use {@link androidx.fragment.app.Fragment} instead of the framework
     * {@link Fragment}.
     */
Gets whether you should show UI with rationale for requesting a permission.
You should do this only if you do not have the permission and the context in
which the permission is requested does not clearly communicate to the user
what would be the benefit from granting this permission.

For example, if you write a camera app, requesting the camera permission
would be expected by the user and no rationale for why it is requested is
needed. If however, the app needs location for tagging photos then a non-tech
savvy user may wonder how location is related to taking photos. In this case
you may choose to show UI with rationale of requesting this permission.

@param fragment The target fragment.
@param permission A permission your app wants to request.
@return Whether you can show permission rationale UI.



@deprecated Use  androidx.fragment.app.Fragment instead of the framework
Fragment.
Gets whether you should show UI with rationale for requesting a permission . You should do this only if you do not have the permission and the context in which the permission is requested does not clearly communicate to the user what would be the benefit from granting this permission . For example if you write a camera app requesting the camera permission would be expected by the user and no rationale for why it is requested is needed . If however the app needs location for tagging photos then a non - tech savvy user may wonder how location is related to taking photos . In this case you may choose to show UI with rationale of requesting this permission . @param fragment The target fragment . @param permission A permission your app wants to request . @return Whether you can show permission rationale UI . @deprecated Use androidx . fragment . app . Fragment instead of the framework Fragment .
@Deprecated
    public static boolean shouldShowRequestPermissionRationale(@NonNull Fragment fragment,
            @NonNull String permission) {
        return IMPL.shouldShowRequestPermissionRationale(fragment, permission);
    }
@ Deprecated public static boolean shouldShowRequestPermissionRationale ( @ NonNull Fragment fragment , @ NonNull String permission ) { return IMPL . shouldShowRequestPermissionRationale ( fragment , permission ) ; }
Gets whether you should show UI with rationale for requesting a permission.
Gets whether you should show UI with rationale for requesting a permission .