public enum DevicePlatform extends Enum<DevicePlatform>
org.springframework.mobile.device.DevicePlatform| 枚举常量和说明 |
|---|
ANDROID
Represents an android platform
|
IOS
Represents an apple platform
|
UNKNOWN
Represents unknown platform
|
public static final DevicePlatform IOS
public static final DevicePlatform ANDROID
public static final DevicePlatform UNKNOWN
public static DevicePlatform[] values()
for (DevicePlatform c : DevicePlatform.values()) System.out.println(c);
public static DevicePlatform valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023. All rights reserved.