本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}