Sendbird Chat SDK for .NET  3.0.29
SendBird.SendBirdClient Class Reference

Classes

class  ChannelHandler
 
class  ConnectionHandler
 
class  Options
 
class  UserEventHandler
 

Public Types

enum  ConnectionState { CONNECTING, OPEN, CLOSING, CLOSED }
 
enum  PushTokenRegistrationStatus { SUCCESS, PENDING, ERROR }
 

Public Member Functions

delegate void LogDelegate (string message)
 
delegate void ConnectHandler (User user, SendBirdException e)
 
delegate void DisconnectHandler ()
 
delegate void RegisterPushTokenWithStatusHandler (PushTokenRegistrationStatus status, SendBirdException e)
 
delegate void UnregisterPushTokenHandler (SendBirdException e)
 
delegate void SetDoNotDisturbHandler (SendBirdException e)
 
delegate void GetDoNotDisturbHandler (bool isDoNotDisturbOn, int startHour, int startMin, int endHour, int endMin, string timezone, SendBirdException e)
 
delegate void UserInfoUpdateHandler (SendBirdException e)
 
delegate void UserBlockHandler (User blockedUser, SendBirdException e)
 
delegate void UserUnblockHandler (SendBirdException e)
 
delegate void UploadFriendDiscoveriesHandler (SendBirdException e)
 
delegate void GetFriendChangeLogsByTokenHandler (List< User > updatedUsers, List< string > deletedUserIds, bool hasMore, string token, SendBirdException e)
 
delegate void SetChannelInvitationPreferenceHandler (SendBirdException e)
 
delegate void GetChannelInvitationPreferenceHandler (bool autoAccept, SendBirdException e)
 
delegate void LoginHandler (SendBirdException e)
 
delegate void GetMyGroupChannelChangeLogsHandler (List< GroupChannel > updatedChannels, List< String > deletedChannelUrls, bool hasMore, String token, SendBirdException e)
 
delegate void DeleteFriendDiscoveriesHandler (SendBirdException e)
 
delegate void MarkAsReadHandler (SendBirdException e)
 
delegate void GetAllEmojiHandler (EmojiContainer emojiContainer, SendBirdException e)
 
delegate void GetEmojiCategoryHandler (EmojiCategory emojiCategory, SendBirdException e)
 
delegate void GetEmojiHandler (Emoji emoji, SendBirdException e)
 
delegate void DeleteFriendDiscoveryHandler (SendBirdException e)
 

Static Public Member Functions

static bool Init (string appId)
 
static ConnectionState GetConnectionState ()
 
static void Connect (string userId, ConnectHandler handler)
 
static void Connect (string userId, string accessToken, ConnectHandler handler)
 
static void Connect (string userId, string accessToken, string apiHost, string wsHost, ConnectHandler handler)
 
static bool Reconnect ()
 
static void AddChannelHandler (string identifier, ChannelHandler handler)
 
static ChannelHandler RemoveChannelHandler (string identifier)
 
static void AddConnectionHandler (string identifier, ConnectionHandler handler)
 
static void AddUserEventHandler (string identifier, UserEventHandler handler)
 
static UserEventHandler RemoveUserEventHandler (string identifier)
 
static void RemoveAllUserEventHandlers ()
 
static ConnectionHandler RemoveConnectionHandler (string identifier)
 
static void Disconnect (DisconnectHandler handler)
 
static UserListQuery CreateUserListQuery ()
 
static ApplicationUserListQuery CreateApplicationUserListQuery ()
 
static UserListQuery CreateUserListQuery (UserListQuery.QueryType queryType)
 
static UserListQuery CreateUserListQuery (List< string > userIds)
 
static UserListQuery CreateBlockedUserListQuery ()
 
static void UpdateCurrentUserInfoWithProfileImage (string nickname, SBFile profileImage, UserInfoUpdateHandler handler)
 
static void UpdateCurrentUserInfo (string nickname, string profileUrl, UserInfoUpdateHandler handler)
 
static string GetPendingPushToken ()
 
static void RegisterAPNSPushTokenForCurrentUser (string apnsRegToken, RegisterPushTokenWithStatusHandler handler)
 
static void UnregisterAPNSPushTokenForCurrentUser (string apnsRegToken, UnregisterPushTokenHandler handler)
 
static void RegisterFCMPushTokenForCurrentUser (string fcmRegToken, RegisterPushTokenWithStatusHandler handler)
 
static void UnregisterFCMPushTokenForCurrentUser (string fcmRegToken, UnregisterPushTokenHandler handler)
 
static void UnregisterPushTokenAllForCurrentUser (UnregisterPushTokenHandler handler)
 
static void SetDoNotDisturb (bool doNotDisturbOn, int startHour, int startMin, int endHour, int endMin, string timezone, SetDoNotDisturbHandler handler)
 
static void GetDoNotDisturb (GetDoNotDisturbHandler handler)
 
static void BlockUser (User userToBlock, UserBlockHandler handler)
 
static void BlockUserWithUserId (string userIdToBlock, UserBlockHandler handler)
 
static void UnblockUser (User blockedUser, UserUnblockHandler handler)
 
static void UnblockUserWithUserId (string blockedUserId, UserUnblockHandler handler)
 
static void GetFriendChangeLogsByToken (string token, GetFriendChangeLogsByTokenHandler handler)
 
static void UploadFriendDiscoveries (Dictionary< string, string > discoveryMap, UploadFriendDiscoveriesHandler handler)
 
static void DeleteFriendDiscoveries (List< string > discoveryKeys, DeleteFriendDiscoveriesHandler handler)
 
static void DeleteFriendDiscovery (string discoveryKey, DeleteFriendDiscoveryHandler handler)
 
static FriendListQuery CreateFriendListQuery ()
 
static void SetChannelInvitationPreference (bool autoAccept, SetChannelInvitationPreferenceHandler handler)
 
static void GetChannelInvitationPreference (GetChannelInvitationPreferenceHandler handler)
 
static void GetMyGroupChannelChangeLogsByToken (String token, List< String > customTypes, GetMyGroupChannelChangeLogsHandler handler)
 
static void MarkAsReadWithChannelUrls (List< String > channelUrls, MarkAsReadHandler handler)
 
static void GetAllEmoji (GetAllEmojiHandler handler)
 
static void GetEmojiCategory (long emojiCategoryId, GetEmojiCategoryHandler handler)
 
static void GetEmoji (String key, GetEmojiHandler handler)
 

Static Public Attributes

static LogDelegate Log
 Log More...
 
static int LOGGER_NONE = Logger.NONE
 
static int LOGGER_INFO = Logger.INFO
 

Properties

static string OSVersion [get]
 
static string SDKVersion [get]
 
static string ApplicationId [get]
 
static int LoggerLevel [get, set]
 
static User CurrentUser [get]
 
static string Ekey [get]
 

Member Enumeration Documentation

◆ ConnectionState

SDK connection state.

◆ PushTokenRegistrationStatus

Status of push token registration. If connection is not made when token is requested to be registered, PENDING will be returned at callback handler. The registration is available after the connection is established by calling RegisterPushTokenForCurrentUser(string, RegisterPushTokenWithStatusHandler) with GetPendingPushToken().

Member Function Documentation

◆ AddChannelHandler()

static void SendBird.SendBirdClient.AddChannelHandler ( string  identifier,
ChannelHandler  handler 
)
inlinestatic

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

Parameters
identifierID of handler to be added.
handlerHandler to be added.

◆ AddConnectionHandler()

static void SendBird.SendBirdClient.AddConnectionHandler ( string  identifier,
ConnectionHandler  handler 
)
inlinestatic

Adds a connection handler. All added handlers will be notified when events occurs.

Parameters
identifierID of handler to be added.
handlerHandler to be added.

◆ AddUserEventHandler()

static void SendBird.SendBirdClient.AddUserEventHandler ( string  identifier,
UserEventHandler  handler 
)
inlinestatic

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

Parameters
identifierID of handler to be added.
handlerHandler to be added.
Since
3.0.17

◆ BlockUser()

static void SendBird.SendBirdClient.BlockUser ( User  userToBlock,
UserBlockHandler  handler 
)
inlinestatic

Blocks the specified User. Blocked User cannot send messages to the blocker.

Parameters
userToBlockUser to block.
handlerCallback handler.

◆ BlockUserWithUserId()

static void SendBird.SendBirdClient.BlockUserWithUserId ( string  userIdToBlock,
UserBlockHandler  handler 
)
inlinestatic

Blocks the specified User ID. Blocked User cannot send messages to the blocker.

Parameters
userIdToBlockUser ID to block.
handlerCallback handler.

◆ Connect() [1/3]

static void SendBird.SendBirdClient.Connect ( string  userId,
ConnectHandler  handler 
)
inlinestatic

Connects to SendBird with given User ID. If you have created Users with access token, refer to Connect(string, string, ConnectHandler).
Even though User is not created by Platform API, this method creates one and calls callback to return it.

Parameters
userIdUser ID to connect with. Refer to User#UserId.
handlerCallback handler.

◆ Connect() [2/3]

static void SendBird.SendBirdClient.Connect ( string  userId,
string  accessToken,
ConnectHandler  handler 
)
inlinestatic

Connects to SendBird with given User ID and access token. If you have created Users without access token, refer to Connect(string, ConnectHandler) or just pass access token with null.

Parameters
userIdUser ID to connect with. Refer to User#UserId.
accessTokenAccess token. It should not be saved on the client side.
handlerCallback handler.

◆ Connect() [3/3]

static void SendBird.SendBirdClient.Connect ( string  userId,
string  accessToken,
string  apiHost,
string  wsHost,
ConnectHandler  handler 
)
inlinestatic

Connects to SendBird with given User ID and access token. If you have created Users without access token, refer to connect(String, ConnectHandler) or just pass access token with null.

Parameters
userIdUser ID to connect with. Refer to User#getUserId().
accessTokenAccess token. It should not be saved on the client side.
apiHostCustom API Host. Internal use only.
wsHostCustom WS Host. Internal use only.
handlerCallback handler.

◆ ConnectHandler()

delegate void SendBird.SendBirdClient.ConnectHandler ( User  user,
SendBirdException  e 
)

Connect handler. This handler provides callback for Connect(string, ConnectHandler) and Connect(string, string, ConnectHandler).

◆ CreateApplicationUserListQuery()

static ApplicationUserListQuery SendBird.SendBirdClient.CreateApplicationUserListQuery ( )
inlinestatic

Creates a query instance to get the whole User list.

Returns
Query to use.
Since
3.0.22

◆ CreateBlockedUserListQuery()

static UserListQuery SendBird.SendBirdClient.CreateBlockedUserListQuery ( )
inlinestatic

Creates a query instance to get only the blocked User (by me) list.

Returns
Query to use.

◆ CreateFriendListQuery()

static FriendListQuery SendBird.SendBirdClient.CreateFriendListQuery ( )
inlinestatic

Creates a query instance to get friends.

Returns
Query to use.
Since
3.0.17

◆ CreateUserListQuery() [1/3]

static UserListQuery SendBird.SendBirdClient.CreateUserListQuery ( )
inlinestatic

Creates a query instance to get the whole User list.

Returns
Query to use.

◆ CreateUserListQuery() [2/3]

static UserListQuery SendBird.SendBirdClient.CreateUserListQuery ( List< string >  userIds)
inlinestatic

Creates a query instance to get the filtered User list by User IDs.

Parameters
userIdsUser IDs to query.
Returns
Query to use.

◆ CreateUserListQuery() [3/3]

static UserListQuery SendBird.SendBirdClient.CreateUserListQuery ( UserListQuery.QueryType  queryType)
inlinestatic

Creates a query instance to get the filtered User list by User IDs.

Parameters
userIdsUser IDs to query.
Returns
Query to use.
Since
3.0.15

◆ DeleteFriendDiscoveries()

static void SendBird.SendBirdClient.DeleteFriendDiscoveries ( List< string >  discoveryKeys,
DeleteFriendDiscoveriesHandler  handler 
)
inlinestatic

Delete friend discoveries.

Parameters
discoveryKeysThe discovery keys to delete friend discoveries.
handlerCallback handler.
Since
3.0.17

◆ DeleteFriendDiscovery()

static void SendBird.SendBirdClient.DeleteFriendDiscovery ( string  discoveryKey,
DeleteFriendDiscoveryHandler  handler 
)
inlinestatic

Delete friend discovery.

Parameters
discoveryKeyThe discovery key to delete friend discovery.
handlerCallback handler.
Since
3.0.17

◆ Disconnect()

static void SendBird.SendBirdClient.Disconnect ( DisconnectHandler  handler)
inlinestatic

Disconnects from SendBird.

Parameters
handlerCallback handler.

◆ DisconnectHandler()

delegate void SendBird.SendBirdClient.DisconnectHandler ( )

Disconnect handler. This handler provides callback for disconnect(DisconnectHandler).

◆ GetAllEmoji()

static void SendBird.SendBirdClient.GetAllEmoji ( GetAllEmojiHandler  handler)
inlinestatic

Requests the all emoji. The result is passed to handler.

Parameters
handlerCallback handler.
Since
3.0.28

◆ GetConnectionState()

static ConnectionState SendBird.SendBirdClient.GetConnectionState ( )
inlinestatic

Gets SDK connection state.

Returns
SDK connection state.

◆ GetDoNotDisturb()

static void SendBird.SendBirdClient.GetDoNotDisturb ( GetDoNotDisturbHandler  handler)
inlinestatic

Gets Do-not-disturb option for the current User.

Parameters
handlerCallback handler.

◆ GetDoNotDisturbHandler()

delegate void SendBird.SendBirdClient.GetDoNotDisturbHandler ( bool  isDoNotDisturbOn,
int  startHour,
int  startMin,
int  endHour,
int  endMin,
string  timezone,
SendBirdException  e 
)

GetDoNotDisturb handler. This handler provides callback for GetDoNotDisturb(GetDoNotDisturbHandler).

◆ GetEmoji()

static void SendBird.SendBirdClient.GetEmoji ( String  key,
GetEmojiHandler  handler 
)
inlinestatic

Requests the emoji. The result is passed to handler.

Parameters
keyEmoji key.
handlerCallback handler.
Since
3.0.28

◆ GetEmojiCategory()

static void SendBird.SendBirdClient.GetEmojiCategory ( long  emojiCategoryId,
GetEmojiCategoryHandler  handler 
)
inlinestatic

Requests the emoji category. The result is passed to handler.

Parameters
emojiCategoryIdEmoji category id.
handlerCallback handler.
Since
3.0.28

◆ GetFriendChangeLogsByToken()

static void SendBird.SendBirdClient.GetFriendChangeLogsByToken ( string  token,
GetFriendChangeLogsByTokenHandler  handler 
)
inlinestatic

Get friend changelogs by token.

Parameters
tokenToken to get next friend changelogs. If the token is null, the result will be passed from the beginning.
handlerCallback handler.
Since
3.0.17

◆ GetFriendChangeLogsByTokenHandler()

delegate void SendBird.SendBirdClient.GetFriendChangeLogsByTokenHandler ( List< User updatedUsers,
List< string >  deletedUserIds,
bool  hasMore,
string  token,
SendBirdException  e 
)

GetFriendChangeLogsByTokenHandler handler. This handler provides callback for getFriendChangeLogsByToken(String, GetFriendChangeLogsByTokenHandler). A callback for when friends are added.

Parameters
updatedUsersUpdated User list.
deletedUserIdsDeleted User id list.
hasMoreHasMore.
tokenToken.
enull if no error.
Since
3.0.17

◆ GetMyGroupChannelChangeLogsByToken()

static void SendBird.SendBirdClient.GetMyGroupChannelChangeLogsByToken ( String  token,
List< String >  customTypes,
GetMyGroupChannelChangeLogsHandler  handler 
)
inlinestatic

Requests the channel changelogs from given token. The result is passed to handler.

Parameters
tokenToken to get next channel changelogs. If the token is null, the result will be passed from the beginning.
customTypesGroupChannel custom types filter.
handlerCallback handler.
Since
3.0.17
Deprecated:
As of 3.0.131, replaced by getMyGroupChannelChangeLogsByTokenWithParams(String, GroupChannelChangeLogsParams, GetMyGroupChannelChangeLogsHandler).

◆ GetPendingPushToken()

static string SendBird.SendBirdClient.GetPendingPushToken ( )
inlinestatic

Gets the pending push token.

Returns
Returns the pending push token. Returns null if there is no registration pending token.

◆ Init()

static bool SendBird.SendBirdClient.Init ( string  appId)
inlinestatic

Initializes SendBird with given appId.

Parameters
appIdApplication ID which you can get by creating the application at SendBird Dashboard.
Refer to SendBird Docs for further details.
Returns
Returns true if the initialization succeeded. Otherwise, false. Application ID can be changed by calling this with different application IDs. Notice that only on CLOSED connection status application ID can be modified and it will return false if you try to change application ID while in OPEN connection status.

◆ MarkAsReadWithChannelUrls()

static void SendBird.SendBirdClient.MarkAsReadWithChannelUrls ( List< String >  channelUrls,
MarkAsReadHandler  handler 
)
inlinestatic

Sends mark as read to joined GroupChannels. This method has rate limit. You can send one request per second. It returns SendBirdException if you exceed the rate limit.

Parameters
channelUrlsChannel Urls.
handlerCallback handler.
Since
3.0.17

◆ Reconnect()

static bool SendBird.SendBirdClient.Reconnect ( )
inlinestatic

Reconnecting with current user information. This can be called in ConnectionHandler#onReconnectFailed() or where you check the device network status to let the SDK try reconnection. ConnectionHandler#onReconnectStarted() will be called after you call this (note that it will not be called if there is previously started connection process which has not finished), and ConnectionHandler#onReconnectFailed() or ConnectionHandler#onReconnectSucceeded() will be called according to the connection status afterwards.
Usually, the SDK automatically retries connection process when the network connection is lost with some backoff period. When you call this method, you can start connection process immediately.

Returns
true if there is previously and successfully connected user information, false otherwise. When false is returned, please try with connect(String, ConnectHandler) or connect(String, String, ConnectHandler).

◆ RegisterAPNSPushTokenForCurrentUser()

static void SendBird.SendBirdClient.RegisterAPNSPushTokenForCurrentUser ( string  apnsRegToken,
RegisterPushTokenWithStatusHandler  handler 
)
inlinestatic

Registers push token for the current User to receive push notification. To enable push notification and get a token, refer to SendBird Docs.
Push token registration succeeds only when the connection (Connect(string, ConnectHandler), Connect(string, string, ConnectHandler)) is made. Otherwise, callback will return with PushTokenRegistrationStatus#PENDING status. Then, you can register push token again by calling SendBird.RegisterAPNSPushTokenForCurrentUser(SendBird.GetPendingPushToken(), RegisterPushTokenWithStatusHandler) after the connection is done.

Parameters
gcmRegTokenAPNS push token.
handlerCallback handler.

◆ RegisterFCMPushTokenForCurrentUser()

static void SendBird.SendBirdClient.RegisterFCMPushTokenForCurrentUser ( string  fcmRegToken,
RegisterPushTokenWithStatusHandler  handler 
)
inlinestatic

Registers push token for the current User to receive push notification. To enable push notification and get a token, refer to SendBird Docs.
Push token registration succeeds only when the connection (Connect(string, ConnectHandler), Connect(string, string, ConnectHandler)) is made. Otherwise, callback will return with PushTokenRegistrationStatus#PENDING status. Then, you can register push token again by calling SendBird.RegisterFCMPushTokenForCurrentUser(SendBird.GetPendingPushToken(), RegisterPushTokenWithStatusHandler) after the connection is done.

Parameters
gcmRegTokenGCM push token.
handlerCallback handler.

◆ RegisterPushTokenWithStatusHandler()

delegate void SendBird.SendBirdClient.RegisterPushTokenWithStatusHandler ( PushTokenRegistrationStatus  status,
SendBirdException  e 
)

RegisterPushTokenWithStatus handler. This handler provides callback for RegisterPushTokenForCurrentUser(string, RegisterPushTokenWithStatusHandler).

◆ RemoveAllUserEventHandlers()

static void SendBird.SendBirdClient.RemoveAllUserEventHandlers ( )
inlinestatic

Removes all user event handlers added by addUserEventHandler(String, UserEventHandler).

Since
3.0.17

◆ RemoveChannelHandler()

static ChannelHandler SendBird.SendBirdClient.RemoveChannelHandler ( string  identifier)
inlinestatic

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

Parameters
identifierID of handler to be removed.
Returns
The removed handler.

◆ RemoveConnectionHandler()

static ConnectionHandler SendBird.SendBirdClient.RemoveConnectionHandler ( string  identifier)
inlinestatic

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

Parameters
identifierID of handler to be removed.
Returns
The removed handler.

◆ RemoveUserEventHandler()

static UserEventHandler SendBird.SendBirdClient.RemoveUserEventHandler ( string  identifier)
inlinestatic

Removes a user event handler. The deleted handler no longer be notified.

Parameters
identifierID of handler to be removed.
Returns
The removed handler.
Since
3.0.17

◆ SetDoNotDisturb()

static void SendBird.SendBirdClient.SetDoNotDisturb ( bool  doNotDisturbOn,
int  startHour,
int  startMin,
int  endHour,
int  endMin,
string  timezone,
SetDoNotDisturbHandler  handler 
)
inlinestatic

Sets Do-not-disturb option for the current User. If this option is enabled, the current User does not receive push notification during the specified time.

Parameters
doNotDisturbOnEnables option or not.
startHourStart hour (0~23).
startMinStart minute (0~59).
endHourEnd hour (0~23).
endMinEnd minute (0~59).
timezoneTimezone. TimeZone#getID() can be used to get the current timezone.
handlerCallback handler.

◆ SetDoNotDisturbHandler()

delegate void SendBird.SendBirdClient.SetDoNotDisturbHandler ( SendBirdException  e)

SetDoNotDisturb handler. This handler provides callback for SetDoNotDisturb(bool, int, int, int, int, string, SetDoNotDisturbHandler).

◆ UnblockUser()

static void SendBird.SendBirdClient.UnblockUser ( User  blockedUser,
UserUnblockHandler  handler 
)
inlinestatic

Unblocks the specified User. Unblocked User can send messages to the ex-blocker.

Parameters
blockedUserUser to unblock.
handlerCallback handler.

◆ UnblockUserWithUserId()

static void SendBird.SendBirdClient.UnblockUserWithUserId ( string  blockedUserId,
UserUnblockHandler  handler 
)
inlinestatic

Unblocks the specified User ID. Unblocked User cannot send messages to the ex-blocker.

Parameters
blockedUserIdUser ID to unblock.
handlerCallback handler.

◆ UnregisterAPNSPushTokenForCurrentUser()

static void SendBird.SendBirdClient.UnregisterAPNSPushTokenForCurrentUser ( string  apnsRegToken,
UnregisterPushTokenHandler  handler 
)
inlinestatic

Unregisters push token for the current User.

Parameters
gcmRegTokenFCM push token.
handlerCallback handler.

◆ UnregisterFCMPushTokenForCurrentUser()

static void SendBird.SendBirdClient.UnregisterFCMPushTokenForCurrentUser ( string  fcmRegToken,
UnregisterPushTokenHandler  handler 
)
inlinestatic

Unregisters push token for the current User.

Parameters
gcmRegTokenFCM push token.
handlerCallback handler.

◆ UnregisterPushTokenAllForCurrentUser()

static void SendBird.SendBirdClient.UnregisterPushTokenAllForCurrentUser ( UnregisterPushTokenHandler  handler)
inlinestatic

Unregisters all push token bound to the current User.

Parameters
handlerCallback handler.

◆ UnregisterPushTokenHandler()

delegate void SendBird.SendBirdClient.UnregisterPushTokenHandler ( SendBirdException  e)

◆ UpdateCurrentUserInfo()

static void SendBird.SendBirdClient.UpdateCurrentUserInfo ( string  nickname,
string  profileUrl,
UserInfoUpdateHandler  handler 
)
inlinestatic

Updates current User's information.

Parameters
nicknameNickname to be used.
profileUrlImage URL to be used.
handlerCallback handler.

◆ UpdateCurrentUserInfoWithProfileImage()

static void SendBird.SendBirdClient.UpdateCurrentUserInfoWithProfileImage ( string  nickname,
SBFile  profileImage,
UserInfoUpdateHandler  handler 
)
inlinestatic

Updates current User's information.

Parameters
nicknameNickname to be used.
profileImageImage file to be used.
handlerCallback handler.

◆ UploadFriendDiscoveries()

static void SendBird.SendBirdClient.UploadFriendDiscoveries ( Dictionary< string, string >  discoveryMap,
UploadFriendDiscoveriesHandler  handler 
)
inlinestatic

◆ UploadFriendDiscoveriesHandler()

delegate void SendBird.SendBirdClient.UploadFriendDiscoveriesHandler ( SendBirdException  e)

UploadFriendDiscoveriesHandler handler. This handler provides callback for uploadFriendDiscoveries(Map, UploadFriendDiscoveriesHandler).

Since
3.0.17

◆ UserBlockHandler()

delegate void SendBird.SendBirdClient.UserBlockHandler ( User  blockedUser,
SendBirdException  e 
)

UserBlock handler. This provides callback for BlockUser(User, UserBlockHandler) and BlockUserWithUserId(string, UserBlockHandler).

◆ UserInfoUpdateHandler()

delegate void SendBird.SendBirdClient.UserInfoUpdateHandler ( SendBirdException  e)

◆ UserUnblockHandler()

delegate void SendBird.SendBirdClient.UserUnblockHandler ( SendBirdException  e)

Member Data Documentation

◆ Log

LogDelegate SendBird.SendBirdClient.Log
static

Log

Property Documentation

◆ ApplicationId

string SendBird.SendBirdClient.ApplicationId
staticget

Returns current application Id.

Returns

◆ CurrentUser

User SendBird.SendBirdClient.CurrentUser
staticget

Gets the current User.

Returns
Returns the current User. If SendBird is not connected, null is returned.

◆ Ekey

string SendBird.SendBirdClient.Ekey
staticget

Gets the key to authenticate the url retrieved from FileMessage#getPlainUrl(), User#getPlainProfileImageUrl() and FileMessage.Thumbnail#getPlainUrl(). This key has to be put into the HTTP header to access the url provided by above methods.

Returns
The key to authenticate plain resource urls that contain encrypted contents.

◆ LoggerLevel

int SendBird.SendBirdClient.LoggerLevel
staticgetset

Sets logger level.

Parameters
levelLevel of logger. LOGGER_NONE or LOGGER_INFO can be assigned.

◆ OSVersion

string SendBird.SendBirdClient.OSVersion
staticget

Returns current OS version.

Returns

◆ SDKVersion

string SendBird.SendBirdClient.SDKVersion
staticget

Returns current SDK version.

Returns

The documentation for this class was generated from the following file: