You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BufferOverflowProtectionMode describes the protection modes to manage situations when the ImageSourceAdapter's buffer exceeds its capacity.
>- JavaScript
>- Android
>- Objective-C
>- Swift
>- C++
>
>
```javascript
enum EnumBufferOverflowProtectionMode {
/** New images are blocked when the buffer is full.*/
BOPM_Block = 0,
/** New images are appended at the end, and oldest images are pushed out frombeginning if the buffer is full.*/
BOPM_Update = 1
}
```
>
```java
@Retention(RetentionPolicy.CLASS)
public @interface EnumBufferOverflowProtectionMode
{
/** New images are blocked when the buffer is full.*/
public static final int BOPM_BLOCK = 0;
/** New images are appended at the end, and oldest images are pushed out from the beginning if thebuffer is full.*/
public static final int BOPM_UPDATE = 1;
}
```
>
```objc
typedef NS_ENUM(NSInteger, DSBufferOverflowProtectionMode)
{
/** New images are blocked when the buffer is full.*/
DSBufferOverflowProtectionModeBlock = 0,
/** New images are appended at the end, and oldest images are pushed out from the beginning if thebuffer is full.*/
DSBufferOverflowProtectionModeUpdate = 1,
}NS_SWIFT_NAME(BufferOverflowProtectionMode);
```
>
```swift
public enum BufferOverflowProtectionMode : Int
{
/** New images are blocked when the buffer is full.*/
block = 0
/** New images are appended at the end, and oldest images are pushed out from the beginning if thebuffer is full.*/
update = 1
}
```
>
```cpp
typedef enum BufferOverflowProtectionMode
{
/** New images are blocked when the buffer is full. */
BOPM_BLOCK = 0,
/** New images are appended at the end, and oldest images are pushed out from the beginning if the buffer is full. */
BOPM_APPEND = 1
} BufferOverflowProtectionMode;
```