public void onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults)
Callback for the result from requesting permissions. This method is invoked for every call
on requestPermissions(java.lang.String[], int)
.
请求权限的结果的回调。对requestPermissions(java.lang.String[],int)的每次调用都调用此方法。
Note: 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.
注意:权限请求与用户的交互可能被中断。在这种情况下,您将收到空的权限和结果数组,应将其视为取消。