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


Java PermissionGen.onRequestPermissionsResult方法代码示例

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


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

示例1: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    /*if (requestCode == MY_PERMISSIONS_REQUEST_CALL_PHONE) {
        if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
            Toast.makeText(DownLoadActivity.this, "申请成功", Toast.LENGTH_SHORT).show();
        } else {
            Toast.makeText(DownLoadActivity.this, "权限拒绝", Toast.LENGTH_SHORT).show();
        }
        return;
    }
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);*/
    PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:Pingsh,项目名称:Mix,代码行数:14,代码来源:DownLoadActivity.java

示例2: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:Pingsh,项目名称:Mix,代码行数:5,代码来源:BaseActivity.java

示例3: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions,
                                       int[] grantResults) {
    PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:jiajunhui,项目名称:PlayerBase,代码行数:6,代码来源:LocalVideoListFragment.java

示例4: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
    PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:wendyltan,项目名称:EasyTodo,代码行数:5,代码来源:EventContentActivity.java

示例5: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:jiajunhui,项目名称:MediaLoader,代码行数:6,代码来源:MainActivity.java

示例6: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
@Override public void onRequestPermissionsResult(int requestCode, String[] permissions,
    int[] grantResults) {
  PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:5,代码来源:MainActivity.java

示例7: onRequestPermissionsResult

import kr.co.namee.permissiongen.PermissionGen; //导入方法依赖的package包/类
/**
 * Callback for the result from requesting permissions. This method
 * is invoked for every call on {@link #requestPermissions(String[], int)}.
 * <p>
 * <strong>Note:</strong> It is possible that the permissions request interaction
 * with the user is interrupted. In this case you will receive empty permissions
 * and results arrays which should be treated as a cancellation.
 * </p>
 *
 * @param requestCode The request code passed in {@link #requestPermissions(String[], int)}.
 * @param permissions The requested permissions. Never null.
 * @param grantResults The grant results for the corresponding permissions
 * which is either {@link PackageManager#PERMISSION_GRANTED}
 * or {@link PackageManager#PERMISSION_DENIED}. Never null.
 * @see #requestPermissions(String[], int)
 */
@Override public void onRequestPermissionsResult(int requestCode, String[] permissions,
    int[] grantResults) {
  PermissionGen.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:21,代码来源:ContactFragment.java


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