Lines Matching defs:permission
38 boolean shouldShowRequestPermissionRationale(Fragment fragment, String permission);
73 public boolean shouldShowRequestPermissionRationale(Fragment fragment, String permission) {
99 public boolean shouldShowRequestPermissionRationale(Fragment fragment, String permission) {
100 return FragmentCompat23.shouldShowRequestPermissionRationale(fragment, permission);
118 * This interface is the contract for receiving the results for permission requests.
175 * and the results of permission requests will be delivered to its
180 * Note that requesting a permission does not guarantee it will be granted and
181 * your app should be able to run without having this permission.
192 * When checking whether you have a permission you should use {@link
213 * Gets whether you should show UI with rationale for requesting a permission.
214 * You should do this only if you do not have the permission and the context in
215 * which the permission is requested does not clearly communicate to the user
216 * what would be the benefit from granting this permission.
218 * For example, if you write a camera app, requesting the camera permission
222 * you may choose to show UI with rationale of requesting this permission.
226 * @param permission A permission your app wants to request.
227 * @return Whether you can show permission rationale UI.
234 @NonNull String permission) {
235 return IMPL.shouldShowRequestPermissionRationale(fragment, permission);