当前位置: 首页>>代码示例>>Java>>正文


Java PermissionRequest.proceed方法代码示例

本文整理汇总了Java中permissions.dispatcher.PermissionRequest.proceed方法的典型用法代码示例。如果您正苦于以下问题:Java PermissionRequest.proceed方法的具体用法?Java PermissionRequest.proceed怎么用?Java PermissionRequest.proceed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在permissions.dispatcher.PermissionRequest的用法示例。


在下文中一共展示了PermissionRequest.proceed方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showRationaleForCamera

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale({ Manifest.permission.CAMERA }) void showRationaleForCamera(
    PermissionRequest request) {
  request.proceed();
}
 
开发者ID:liuguoquan727,项目名称:android-study,代码行数:5,代码来源:PermissionFragment.java

示例2: showRationaleForMediaSelect

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale({ Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE })
void showRationaleForMediaSelect(PermissionRequest request) {
  request.proceed();
}
 
开发者ID:liuguoquan727,项目名称:android-study,代码行数:5,代码来源:PermissionFragment.java

示例3: showRationaleForWriteStorage

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale({ Manifest.permission.WRITE_EXTERNAL_STORAGE })
void showRationaleForWriteStorage(PermissionRequest request) {
  request.proceed();
}
 
开发者ID:liuguoquan727,项目名称:android-study,代码行数:5,代码来源:PermissionFragment.java

示例4: showRationaleForReadPhone

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale({ Manifest.permission.READ_PHONE_STATE }) void showRationaleForReadPhone(
    PermissionRequest request) {
  request.proceed();
}
 
开发者ID:liuguoquan727,项目名称:android-study,代码行数:5,代码来源:PermissionFragment.java

示例5: showRationaleForCamera

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale(Manifest.permission.CAMERA)
protected void showRationaleForCamera(PermissionRequest request) {
    Toast.makeText(getContext(), "OnShowRationale for camera in fragment", Toast.LENGTH_SHORT).show();
    request.proceed();
}
 
开发者ID:permissions-dispatcher,项目名称:AndroidAnnotationsPermissionsDispatcherPlugin,代码行数:6,代码来源:MainFragment.java

示例6: showRationaleForCamera

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale(Manifest.permission.CAMERA)
protected void showRationaleForCamera(PermissionRequest request) {
    Toast.makeText(this, "OnShowRationale for camera", Toast.LENGTH_SHORT).show();
    request.proceed();
}
 
开发者ID:permissions-dispatcher,项目名称:AndroidAnnotationsPermissionsDispatcherPlugin,代码行数:6,代码来源:MainActivity.java

示例7: showRationaleForStorage

import permissions.dispatcher.PermissionRequest; //导入方法依赖的package包/类
@OnShowRationale({Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE})
void showRationaleForStorage(final PermissionRequest request) {
    showToastMessage(this, "需要存储权限来记录运行时日志");
    request.proceed();
}
 
开发者ID:amao12580,项目名称:BookmarkHelper,代码行数:6,代码来源:MainActivity.java


注:本文中的permissions.dispatcher.PermissionRequest.proceed方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。