getCallDetails static method
void
getCallDetails(
- String sessionId,
- String userAuthToken, {
- required dynamic onSuccess(),
- required dynamic onError(
- CometChatCallsException error
Retrieves the call details for a given session ID.
The sessionId
parameter specifies the session ID for which the call details are to be retrieved.
The userAuthToken
parameter is the user authentication token required for authorization.
The onSuccess
function is called with the retrieved CallLog object when the call details are retrieved successfully.
The onError
function is called with a CometChatCallsException object when there is an error while retrieving the call details.
Example: CometChatCalls.getCallDetails( "sessionId", "userAuthToken", onSuccess: (callLog) { // Process the retrieved call details }, onError: (error) { // Handle the error }, );
Implementation
static void getCallDetails(String sessionId, String userAuthToken,
{required Function(List<CallLog> callLogs) onSuccess,
required Function(CometChatCallsException error) onError}) async {
CometchatcallsPluginPlatform.instance
.getCallDetails(sessionId, userAuthToken, onSuccess, onError);
}