Preparing search index...
The search index is not available Documentation
Function useGroupChannelMessages
use Group Channel Messages( sdk: SendbirdChatSDK , channel: GroupChannel , userId?: string , options?: UseGroupChannelMessagesOptions ) : { deleteMessage: ( ( message: FileMessage | UserMessage ) => Promise < void > ) ; hasNext: ( ( ) => boolean ) ; hasPrev: ( ( ) => boolean ) ; loading: boolean ; messages: SendbirdMessage [] ; newMessages: SendbirdMessage [] ; newMessagesFromMembers: SendbirdMessage [] ; next: ( ( ) => Promise < void > ) ; nextMessages: SendbirdMessage [] ; prev: ( ( ) => Promise < void > ) ; refresh: ( ( ) => Promise < void > ) ; refreshing: boolean ; resendMessage: ( ( failedMessage: FileMessage | UserMessage ) => Promise < void > ) ; resetNewMessages: ( ( ) => void ) ; resetWithStartingPoint: ( ( startingPoint: number , callback?: ( ( ) => void ) ) => void ) ; sendFileMessage: ( ( params: FileMessageCreateParams , onPending?: ( ( message: FileMessage , error?: SendbirdError ) => void ) ) => Promise < FileMessage > ) ; sendUserMessage: ( ( params: UserMessageCreateParams , onPending?: ( ( message: UserMessage , error?: SendbirdError ) => void ) ) => Promise < UserMessage > ) ; updateFileMessage: ( ( messageId: number , params: BaseMessageUpdateParams ) => Promise < FileMessage > ) ; updateUserMessage: ( ( messageId: number , params: UserMessageUpdateParams ) => Promise < UserMessage > ) ; }
Parameters
sdk: SendbirdChatSDK
channel: GroupChannel
Optional
userId: string
Returns { deleteMessage: ( ( message: FileMessage | UserMessage ) => Promise < void > ) ; hasNext: ( ( ) => boolean ) ; hasPrev: ( ( ) => boolean ) ; loading: boolean ; messages: SendbirdMessage [] ; newMessages: SendbirdMessage [] ; newMessagesFromMembers: SendbirdMessage [] ; next: ( ( ) => Promise < void > ) ; nextMessages: SendbirdMessage [] ; prev: ( ( ) => Promise < void > ) ; refresh: ( ( ) => Promise < void > ) ; refreshing: boolean ; resendMessage: ( ( failedMessage: FileMessage | UserMessage ) => Promise < void > ) ; resetNewMessages: ( ( ) => void ) ; resetWithStartingPoint: ( ( startingPoint: number , callback?: ( ( ) => void ) ) => void ) ; sendFileMessage: ( ( params: FileMessageCreateParams , onPending?: ( ( message: FileMessage , error?: SendbirdError ) => void ) ) => Promise < FileMessage > ) ; sendUserMessage: ( ( params: UserMessageCreateParams , onPending?: ( ( message: UserMessage , error?: SendbirdError ) => void ) ) => Promise < UserMessage > ) ; updateFileMessage: ( ( messageId: number , params: BaseMessageUpdateParams ) => Promise < FileMessage > ) ; updateUserMessage: ( ( messageId: number , params: UserMessageUpdateParams ) => Promise < UserMessage > ) ; }
delete Message: ( ( message: FileMessage | UserMessage ) => Promise < void > )
( message: FileMessage | UserMessage ) : Promise < void >
Parameters
message: FileMessage | UserMessage
Returns Promise < void >
has Next: ( ( ) => boolean )
( ) : boolean
Returns boolean
has Prev: ( ( ) => boolean )
( ) : boolean
Returns boolean
loading: boolean
messages: SendbirdMessage []
new Messages: SendbirdMessage []
new Messages From Members: SendbirdMessage []
next: ( ( ) => Promise < void > )
( ) : Promise < void >
Returns Promise < void >
next Messages: SendbirdMessage []
prev: ( ( ) => Promise < void > )
( ) : Promise < void >
Returns Promise < void >
refresh: ( ( ) => Promise < void > )
( ) : Promise < void >
Returns Promise < void >
refreshing: boolean
resend Message: ( ( failedMessage: FileMessage | UserMessage ) => Promise < void > )
( failedMessage: FileMessage | UserMessage ) : Promise < void >
Parameters
failedMessage: FileMessage | UserMessage
Returns Promise < void >
reset New Messages: ( ( ) => void )
reset With Starting Point: ( ( startingPoint: number , callback?: ( ( ) => void ) ) => void )
( startingPoint: number , callback?: ( ( ) => void ) ) : void
Parameters
startingPoint: number
Optional
callback: ( ( ) => void )
Returns void
send File Message: ( ( params: FileMessageCreateParams , onPending?: ( ( message: FileMessage , error?: SendbirdError ) => void ) ) => Promise < FileMessage > )
( params: FileMessageCreateParams , onPending?: ( ( message: FileMessage , error?: SendbirdError ) => void ) ) : Promise < FileMessage >
Parameters
params: FileMessageCreateParams
Optional
onPending: ( ( message: FileMessage , error?: SendbirdError ) => void )
( message: FileMessage , error?: SendbirdError ) : void
Parameters
message: FileMessage
Optional
error: SendbirdError
Returns void
Returns Promise < FileMessage >
send User Message: ( ( params: UserMessageCreateParams , onPending?: ( ( message: UserMessage , error?: SendbirdError ) => void ) ) => Promise < UserMessage > )
( params: UserMessageCreateParams , onPending?: ( ( message: UserMessage , error?: SendbirdError ) => void ) ) : Promise < UserMessage >
Parameters
params: UserMessageCreateParams
Optional
onPending: ( ( message: UserMessage , error?: SendbirdError ) => void )
( message: UserMessage , error?: SendbirdError ) : void
Parameters
message: UserMessage
Optional
error: SendbirdError
Returns void
Returns Promise < UserMessage >
update File Message: ( ( messageId: number , params: BaseMessageUpdateParams ) => Promise < FileMessage > )
( messageId: number , params: BaseMessageUpdateParams ) : Promise < FileMessage >
Parameters
messageId: number
params: BaseMessageUpdateParams
Returns Promise < FileMessage >
update User Message: ( ( messageId: number , params: UserMessageUpdateParams ) => Promise < UserMessage > )
( messageId: number , params: UserMessageUpdateParams ) : Promise < UserMessage >
Parameters
messageId: number
params: UserMessageUpdateParams
Returns Promise < UserMessage >
Delete message
Returns