public enum TargetType extends Enum<TargetType>
| 枚举常量和说明 |
|---|
BACKGROUND_PAGE |
BROWSER |
OTHER |
PAGE |
SERVICE_WORKER |
SHARED_WORKER |
TAB |
WEBVIEW |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getType() |
void |
setType(String type) |
static TargetType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static TargetType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TargetType PAGE
public static final TargetType BACKGROUND_PAGE
public static final TargetType SERVICE_WORKER
public static final TargetType SHARED_WORKER
public static final TargetType BROWSER
public static final TargetType WEBVIEW
public static final TargetType OTHER
public static final TargetType TAB
public static TargetType[] values()
for (TargetType c : TargetType.values()) System.out.println(c);
public static TargetType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getType()
public void setType(String type)
Copyright © 2020–2025. All rights reserved.