Sendbird Chat SDK for Unity
SbOpenChannelModule

Public Member Functions

void CreateChannel (SbOpenChannelCreateParams inChannelCreateParams, SbOpenChannelCallbackHandler inCompletionHandler)
 Creates a open channel with SbOpenChannelCreateParams class. More...
 
void GetChannel (string inChannelUrl, SbGetOpenChannelHandler inCompletionHandler)
 Gets an open channel instance from channel URL. More...
 
SbOpenChannelListQuery CreateOpenChannelListQuery (SbOpenChannelListQueryParams inOpenChannelListQueryParams)
 Creates a query instance for open channel list. More...
 
void AddOpenChannelHandler (string inIdentifier, SbOpenChannelHandler inChannelHandler)
 Adds a channel handler. All added handlers will be notified when events occur. More...
 
void RemoveOpenChannelHandler (string inIdentifier)
 Removes a channel handler. The deleted handler no longer be notified. More...
 
void RemoveAllOpenChannelHandlers ()
 Removes all channel handlers added by AddOpenChannelHandler. More...
 

Detailed Description

Since
4.0.0

Member Function Documentation

◆ AddOpenChannelHandler()

void AddOpenChannelHandler ( string  inIdentifier,
SbOpenChannelHandler  inChannelHandler 
)

Adds a channel handler. All added handlers will be notified when events occur.

Parameters
inIdentifierThe identifier for handler.
inChannelHandler
Since
4.0.0

◆ CreateChannel()

void CreateChannel ( SbOpenChannelCreateParams  inChannelCreateParams,
SbOpenChannelCallbackHandler  inCompletionHandler 
)

Creates a open channel with SbOpenChannelCreateParams class.

Parameters
inChannelCreateParamsInstance of SbOpenChannelCreateParams what has properties to create open channel.
inCompletionHandlerHandler block to execute. channel is the open channel instance.
Since
4.0.0

◆ CreateOpenChannelListQuery()

SbOpenChannelListQuery CreateOpenChannelListQuery ( SbOpenChannelListQueryParams  inOpenChannelListQueryParams)

Creates a query instance for open channel list.

Parameters
inOpenChannelListQueryParamsThe params object to change query condition.
Returns
Since
4.0.0

◆ GetChannel()

void GetChannel ( string  inChannelUrl,
SbGetOpenChannelHandler  inCompletionHandler 
)

Gets an open channel instance from channel URL.

Parameters
inChannelUrlThe channel URL.
inCompletionHandlerThe handler block to execute. channel is the open channel instance which has the channelURL.
Since
4.0.0

◆ RemoveAllOpenChannelHandlers()

void RemoveAllOpenChannelHandlers ( )

Removes all channel handlers added by AddOpenChannelHandler.

Since
4.0.0

◆ RemoveOpenChannelHandler()

void RemoveOpenChannelHandler ( string  inIdentifier)

Removes a channel handler. The deleted handler no longer be notified.

Parameters
inIdentifier
Since
4.0.0