Package 

Class SendBird.Options

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum SendBird.Options.ThreadOption

      ThreadOption determines how SendBird will manage or create threads when callbacks or events are called.Refer to setThreadOption.

    • Method Summary

      Modifier and Type Method Description
      static void setConnectionTimeout(int connectionTimeout) Sets the connect timeout for socket connection managed by connect, connect, connect, reconnect or internal reconnection tries.The default value is 10 seconds.
      static void setAuthenticationTimeout(int authenticationTimeout) Sets the authentication timeout managed by authenticate.The default value is 10 seconds.
      static void setTypingIndicatorThrottle(int msec) Sets typing indicator throttle.
      static void setIncludePollDetails(boolean includePollDetails) If set to true, all web socket messages will contain full poll representation.
      static void useMemberAsMessageSender(boolean tf) If set true, the sender information of getSender or getSender such as nickname and profile url will be returned as the same with channel members'.Otherwise, the information will be the value of the message creation time.
      static void useUiThreadForCallbacks(boolean tf) If set true, callbacks are returned on the UI thread.Otherwise, the callbacks run on background threads.
      static void setHandlerForCallbacks(Handler handler) If set your handler, callbacks are returned on your handler.
      static void setThreadOption(SendBird.Options.ThreadOption threadOption, Handler handler) Sets ThreadOption.
      static void setWebSocketResponseTimeout(int webSocketResponseTimeoutSec) Sets the websocket response timeout used in sending/receiving commmands by websocket.The value should be between 5 seconds and 300 seconds (5 minutes).The default value is 10 seconds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setConnectionTimeout

         static void setConnectionTimeout(int connectionTimeout)

        Sets the connect timeout for socket connection managed by connect, connect, connect, reconnect or internal reconnection tries.The default value is 10 seconds.

        Parameters:
        connectionTimeout - Timeout in seconds.
      • setAuthenticationTimeout

        @Deprecated() static void setAuthenticationTimeout(int authenticationTimeout)

        Sets the authentication timeout managed by authenticate.The default value is 10 seconds.

        Parameters:
        authenticationTimeout - Timeout in seconds.
      • setIncludePollDetails

         static void setIncludePollDetails(boolean includePollDetails)

        If set to true, all web socket messages will contain full poll representation. If set tofalse, all web socket messages will contain minimal poll representation (will not contain Poll.Details. The default value is false.

        Parameters:
        includePollDetails - whether to contain Poll.Details in web socketcommunication.
      • useMemberAsMessageSender

         static void useMemberAsMessageSender(boolean tf)

        If set true, the sender information of getSender or getSender such as nickname and profile url will be returned as the same with channel members'.Otherwise, the information will be the value of the message creation time.

        Parameters:
        tf - true or false.
      • useUiThreadForCallbacks

        @Deprecated() static void useUiThreadForCallbacks(boolean tf)

        If set true, callbacks are returned on the UI thread.Otherwise, the callbacks run on background threads.The default value is true.If set your handler with setHandlerForCallbacks, this option will be ignored.

        Parameters:
        tf - true or false.
      • setThreadOption

         static void setThreadOption(SendBird.Options.ThreadOption threadOption, Handler handler)

        Sets ThreadOption. Refer to ThreadOption.If you want to use HANDLER, you should provide your handler as a parameter.Otherwise, set Handler parameter to null.

        Parameters:
        threadOption - ThreadOption you want to set.
        handler - Your Handler object.
      • setWebSocketResponseTimeout

         static void setWebSocketResponseTimeout(int webSocketResponseTimeoutSec)

        Sets the websocket response timeout used in sending/receiving commmands by websocket.The value should be between 5 seconds and 300 seconds (5 minutes).The default value is 10 seconds.

        Parameters:
        webSocketResponseTimeoutSec - Timeout value in seconds.