public class PermissionRequest
extends java.lang.Object
| Constructor and Description |
|---|
PermissionRequest(PermissionType type, java.lang.String url)
|
| Modifier and Type | Method and Description |
|---|---|
PermissionType |
getPermissionType()
Returns
返回当前请求的PermissionType。 PermissionType of the current request.
|
java.lang.String |
getURL()
Returns a string that represents URL of the web page that requests permission.
返回一个字符串,该字符串表示请求许可的网页的URL。 |
public PermissionRequest(PermissionType type, java.lang.String url)使用给定的类型和URL构造一个新的PermissionRequest实例。
type - the
PermissionType enum item.
-枚举项。
url - a string that represents URL of the web page that requests permission.
-表示请求许可的网页URL的字符串。
public PermissionType getPermissionType()
PermissionType of the current request.
PermissionType of the current request.
当前请求。
public java.lang.String getURL()