Klasse ConnectionSettings

java.lang.Object
com.blukii.sdk.config.ConnectionSettings

public class ConnectionSettings extends Object
Property set of settings to configure the connection process.

The ConnectionSettings properties are affecting the connection especially for background processing and automated reconnects.

Changing the values affects the next connection. If changed during a running connection the changes will affect the connection immediately.

The settings are defined for one Blukii object. You can access the ConnectionSettings by calling Blukii.getConnectionSettings().

Every settings value is writable and has a default value that is used if not changed by the developer.

Siehe auch:
  • Konstruktordetails

    • ConnectionSettings

      public ConnectionSettings()
  • Methodendetails

    • getConnectionTimeout

      public int getConnectionTimeout()
      Gets the user defined connection timeout (in milliseconds) for the Blukii.connect(ConnectionListener) request.

      If connection timeout is larger than 0 and less than 30 seconds the connection request is canceled.

      Default value: 30000ms.

      Gibt zurück:
      connection timeout in milliseconds
    • setConnectionTimeout

      public void setConnectionTimeout(int connectionTimeout)
      Sets the user defined connection timeout (in milliseconds) for the Blukii.connect(ConnectionListener) request.

      If connection timeout is larger than 0 and less than 30 seconds the connection request is canceled.

      Default value: 30000ms.

      Parameter:
      connectionTimeout - connection timeout in milliseconds
    • isAutoReconnectEnabled

      public boolean isAutoReconnectEnabled()
      Gets if the blukii should be automatically reconnected after a disconnect.

      If this option is set, the SDK tries to reconnect until Blukii.disconnect() is called by the application.

      Default: false

      Gibt zurück:
      auto reconnect state
    • setAutoReconnectEnabled

      public void setAutoReconnectEnabled(boolean enabled)
      Sets if the blukii should be automatically reconnected after a disconnect.

      If this option is set, the SDK tries to reconnect until Blukii.disconnect() is called by the application.

      Default: false

      Parameter:
      enabled - reconnect state