# MediaType

public enum MediaType

文件类型枚举。

## Entries

IMAGE
Link copied to clipboard
IMAGE

图片。

AUDIO
Link copied to clipboard
AUDIO

声音。

VIDEO
Link copied to clipboard
VIDEO

视频。

FILE
Link copied to clipboard
FILE

通用文件。

## Properties

value
Link copied to clipboard
public int value

## Functions

getValue
Link copied to clipboard
public int getValue()
获取文件类型的值。
setValue
Link copied to clipboard
public static IRongCoreEnum.MediaType setValue(int code)
设置文件类型。
valueOf
Link copied to clipboard
public static IRongCoreEnum.MediaType 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<IRongCoreEnum.MediaType> 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.