# Platform

public enum Platform

## Entries

Platform_Other
Link copied to clipboard
Platform_Other
Platform_iOS
Link copied to clipboard
Platform_iOS
Platform_Android
Link copied to clipboard
Platform_Android
Platform_Web
Link copied to clipboard
Platform_Web
Platform_PC
Link copied to clipboard
Platform_PC
Platform_MiniWeb
Link copied to clipboard
Platform_MiniWeb
Platform_HarmonyOS
Link copied to clipboard
Platform_HarmonyOS

## Functions

getValue
Link copied to clipboard
public int getValue()
获取平台值。
valueOf
Link copied to clipboard
public static SubscribeEvent.Platform valueOf(int code)
设置平台值。
public static SubscribeEvent.Platform valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
public static Array<SubscribeEvent.Platform> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.