AgoraRtmUploadMediaErrorCode Constants Reference
Declared in | AgoraRtmKit.h |
---|
AgoraRtmUploadMediaErrorCode
Error codes related to uploading a file or image.
Definition
typedef NS_ENUM(NSInteger, AgoraRtmUploadMediaErrorCode ) {
AgoraRtmUploadMediaErrorOk = 0,
AgoraRtmUploadMediaErrorFailure = 1,
AgoraRtmUploadMediaErrorInvalidArgument = 2,
AgoraRtmUploadMediaErrorTimeout = 3,
AgoraRtmUploadMediaErrorSizeOverflow = 4,
AgoraRtmUploadMediaErrorConcurrencyLimitExceeded = 5,
AgoraRtmUploadMediaErrorInterrupted = 6,
AgoraRtmUploadMediaErrorNotInitialized = 101,
AgoraRtmUploadMediaErrorNotLoggedIn = 102,
};
Constants
AgoraRtmUploadMediaErrorOk
-
0: The method call succeeds, or the operation succeeds.
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorFailure
-
1: Unknown common failure. Please check whether the file exists and whether you have access to the file.
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorInvalidArgument
-
2: The argument you put is invalid.
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorTimeout
-
3: A timeout occurs. The current timeout is set as 120 seconds. The SDK assumes that a timeout occurs if it has not detected any file transmission between the SDK and the file server for 120 seconds.
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorSizeOverflow
-
4: The size of the file or image to upload exceeds 30 MB.
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorConcurrencyLimitExceeded
-
5: You have exceeded the upper limit for file upload. You can initiate a maximum of nine file upload or download tasks at the same time (upload and download tasks count together).
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorInterrupted
-
6: The file or image upload task is aborted for either of the following reasons:
- The user in the
AgoraRtmConnectionStateAborted
state.- The user has cancelled the upload task.
Declared In
AgoraRtmKit.h
. - The user in the
AgoraRtmUploadMediaErrorNotInitialized
-
101: The SDK is not initialized.
Declared In
AgoraRtmKit.h
. AgoraRtmUploadMediaErrorNotLoggedIn
-
102: The user does not call the loginByToken method, or the method call of loginByToken does not succeed before this operation.
Declared In
AgoraRtmKit.h
.
Declared In
AgoraRtmKit.h