Agora Java API Reference for Android
Public Member Functions | Static Public Attributes | List of all members
io.agora.rtc2.video.ISnapshotCallback Interface Reference

Public Member Functions

void onSnapshotTaken (String channel, int uid, String filePath, int width, int height, int errCode)
 

Static Public Attributes

static final int ERROR_SUCCESS = 0
 
static final int ERROR_OPEN_FAILED = -1
 
static final int ERROR_NO_STREAM = -2
 

Detailed Description

The definition of ISnapshotCallback.

Since
v2.4.1.
Note
Implement all the callbacks in this class in the critical thread. We recommend avoiding any time-consuming operation in the critical thread.

Member Function Documentation

◆ onSnapshotTaken()

void io.agora.rtc2.video.ISnapshotCallback.onSnapshotTaken ( String  channel,
int  uid,
String  filePath,
int  width,
int  height,
int  errCode 
)

Snapshot hass been taken.

Parameters
filePathThe captura file path.
errCodeThe error code.

Member Data Documentation

◆ ERROR_SUCCESS

final int io.agora.rtc2.video.ISnapshotCallback.ERROR_SUCCESS = 0
static

Snaptshot has been taken successfully .

◆ ERROR_OPEN_FAILED

final int io.agora.rtc2.video.ISnapshotCallback.ERROR_OPEN_FAILED = -1
static

Open the file path failed.

◆ ERROR_NO_STREAM

final int io.agora.rtc2.video.ISnapshotCallback.ERROR_NO_STREAM = -2
static

No stream captured.