public interface WebRequestAccess
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
ACCESS_CAMERA |
Allows a web content to use the camera.
|
static String |
ACCESS_MICROPHONE |
Allows a web content to use the microphone.
|
static String |
ACCESS_MIDI_PRIVILEGED_MESSAGES |
Allows a web content to send or receive privileged operation
messages to MIDI devices.
|
static String |
ACCESS_PROTECTED_MEDIA_IDENTIFIER |
Allows a web content access to protected media identifiers
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
denyAccess() |
Deny access requested by WebView.
|
String[] |
getWebContentAccess() |
Obtains access for Web Page Requests.
|
Uri |
getWebContentOrigin() |
Obtains the
Uri of the web page which is access is being requested. |
void |
grantAccess(String[] access) |
Grant the access specified by WebView.
|
static final String ACCESS_CAMERA
static final String ACCESS_MICROPHONE
static final String ACCESS_MIDI_PRIVILEGED_MESSAGES
Uri getWebContentOrigin()
Uri of the web page which is access is being requested.Uri of the web page which is access is
being requested.String[] getWebContentAccess()
void grantAccess(String[] access)
access - the access need to be grantedvoid denyAccess()