Package im.zego.zegoexpress.constants
Enum ZegoDeviceExceptionType
- java.lang.Object
-
- java.lang.Enum<ZegoDeviceExceptionType>
-
- im.zego.zegoexpress.constants.ZegoDeviceExceptionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoDeviceExceptionType>
public enum ZegoDeviceExceptionType extends java.lang.Enum<ZegoDeviceExceptionType>
The exception type for the device.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIO_SESSION_CATEGORY_CHANGE
Audio session category change (Apple platform only).AUDIO_SESSION_DEACTIVE
Audio session deactive (Apple platform only).DEVICE_OCCUPIED
The device is being occupied.DEVICE_UNPLUGGED
The device is unplugged (not plugged in).GENERIC
Generic device exception.INVALID_ID
Invalid device ID exception.MAGNETIC_CASE
The device is being occupied, and maybe cause by iPad magnetic case (Apple platform only).MEDIA_SERVICES_WERE_LOST
The system media service is unavailable, e.g.PERMISSION_NOT_GRANTED
Device permission is not granted.REBOOT_REQUIRED
The device requires the system to restart before it can work (Windows platform only).SIRI_IS_RECORDING
The device is being occupied by Siri (Apple platform only).SOUND_LEVEL_TOO_LOW
The device captured sound level is too low (Windows platform only).UNKNOWN
Unknown device exception.ZERO_CAPTURE_FPS
The capture frame rate of the device is 0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoDeviceExceptionType
getZegoDeviceExceptionType(int value)
int
value()
static ZegoDeviceExceptionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoDeviceExceptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ZegoDeviceExceptionType UNKNOWN
Unknown device exception.
-
GENERIC
public static final ZegoDeviceExceptionType GENERIC
Generic device exception.
-
INVALID_ID
public static final ZegoDeviceExceptionType INVALID_ID
Invalid device ID exception.
-
PERMISSION_NOT_GRANTED
public static final ZegoDeviceExceptionType PERMISSION_NOT_GRANTED
Device permission is not granted.
-
ZERO_CAPTURE_FPS
public static final ZegoDeviceExceptionType ZERO_CAPTURE_FPS
The capture frame rate of the device is 0.
-
DEVICE_OCCUPIED
public static final ZegoDeviceExceptionType DEVICE_OCCUPIED
The device is being occupied.
-
DEVICE_UNPLUGGED
public static final ZegoDeviceExceptionType DEVICE_UNPLUGGED
The device is unplugged (not plugged in).
-
REBOOT_REQUIRED
public static final ZegoDeviceExceptionType REBOOT_REQUIRED
The device requires the system to restart before it can work (Windows platform only).
-
MEDIA_SERVICES_WERE_LOST
public static final ZegoDeviceExceptionType MEDIA_SERVICES_WERE_LOST
The system media service is unavailable, e.g. when the iOS system detects that the current pressure is huge (such as playing a lot of animation), it is possible to disable all media related services (Apple platform only).
-
SIRI_IS_RECORDING
public static final ZegoDeviceExceptionType SIRI_IS_RECORDING
The device is being occupied by Siri (Apple platform only).
-
SOUND_LEVEL_TOO_LOW
public static final ZegoDeviceExceptionType SOUND_LEVEL_TOO_LOW
The device captured sound level is too low (Windows platform only).
-
MAGNETIC_CASE
public static final ZegoDeviceExceptionType MAGNETIC_CASE
The device is being occupied, and maybe cause by iPad magnetic case (Apple platform only).
-
AUDIO_SESSION_DEACTIVE
public static final ZegoDeviceExceptionType AUDIO_SESSION_DEACTIVE
Audio session deactive (Apple platform only).
-
AUDIO_SESSION_CATEGORY_CHANGE
public static final ZegoDeviceExceptionType AUDIO_SESSION_CATEGORY_CHANGE
Audio session category change (Apple platform only).
-
-
Method Detail
-
values
public static ZegoDeviceExceptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZegoDeviceExceptionType c : ZegoDeviceExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoDeviceExceptionType valueOf(java.lang.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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoDeviceExceptionType
public static ZegoDeviceExceptionType getZegoDeviceExceptionType(int value)
-
-