android.webkit.PermissionRequest |
This interface defines a permission request and is used when web content
requests access to protected resources.
Either grant()
or deny()
must be called in UI
thread to respond to the request.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | RESOURCE_AUDIO_CAPTURE | Resource belongs to audio capture device, like microphone. | |||||||||
long | RESOURCE_VIDEO_CAPTURE | Resource belongs to video capture device, like camera. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Call this method to deny the request.
| |||||||||||
Call this method to grant origin the permission to access the given resources.
|
Resource belongs to audio capture device, like microphone.
Resource belongs to video capture device, like camera.
Call this method to deny the request.
Call this method to grant origin the permission to access the given resources. The granted permission is only valid for this WebView.
resources | the resources granted to be accessed by origin, to grant
request, the requested resources returned by getResources()
must be equals or a subset of granted resources.
This parameter is designed to avoid granting permission by accident
especially when new resources are requested by web content.
|
---|