TCICCallback constructor

TCICCallback({
  1. OnError? onError,
  2. void onJoinedClassSuccess()?,
  3. Future<bool> beforeExitedClass()?,
  4. void onJoinedClassFailed()?,
  5. void onKickedOffClass()?,
  6. void onMemberJoinedClass(
    1. Member member
    )?,
  7. void onMemberLeaveClass(
    1. String userId
    )?,
  8. void onRecivedMessage(
    1. V2TimMessage message
    )?,
  9. Future<bool> beforeRenderMessage(
    1. V2TimMessage message
    )?,
  10. Future<bool> beforeSendMessage({
    1. required Map<String, dynamic> payload,
    2. required String type,
    })?,
  11. void afterExitedClass()?,
  12. void onClassStarted()?,
  13. void onClassEnd()?,
  14. Future<bool> beforeEndClass()?,
  15. void onClassEndDialogRequested(
    1. Future<void> closeClass()
    )?,
})

Implementation

TCICCallback({
  OnError? onError,
  this.onJoinedClassSuccess,
  this.beforeExitedClass,
  this.onJoinedClassFailed,
  this.onKickedOffClass,
  this.onMemberJoinedClass,
  this.onMemberLeaveClass,
  this.onRecivedMessage,
  this.beforeRenderMessage,
  this.beforeSendMessage,
  this.afterExitedClass,
  this.onClassStarted,
  this.onClassEnd,
  this.beforeEndClass,
  this.onClassEndDialogRequested,
}) {
  _onError = onError;
}