onRecorderCompleted property

void Function(int totalDuration)? onRecorderCompleted
getter/setter pair

Recording completion notification.

Available since: 1.0.0 Description: When the developer calls completeRecord and the SDK completes the recording and saves the recording file, the notification will be called back. Use case: Used by developers to update the UI and send subsequent voice messages. Related APIs: The notification will be called back after completeRecord is called. Caution: Developers must receive this callback notification before sending voice messages.

  • totalDuration Total recording duration in milliseconds

Implementation

static void Function(int totalDuration)? onRecorderCompleted;