Most visited

Recently visited

FragmentCompat.OnRequestPermissionsResultCallback

public static interface FragmentCompat.OnRequestPermissionsResultCallback

android.support.v13.app.FragmentCompat.OnRequestPermissionsResultCallback


该接口是用于接收许可请求结果的合同。

Summary

Public methods

abstract void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)

从请求权限回调结果。

Public methods

onRequestPermissionsResult

void onRequestPermissionsResult (int requestCode, 
                String[] permissions, 
                int[] grantResults)

从请求权限回调结果。 对于requestPermissions(android.app.Fragment, String[], int)每个调用都会调用此方法

Parameters
requestCode int: The request code passed in requestPermissions(android.app.Fragment, String[], int)
permissions String: The requested permissions. Never null.
grantResults int: The grant results for the corresponding permissions which is either PERMISSION_GRANTED or PERMISSION_DENIED. Never null.

也可以看看:

Hooray!