Interface ISteamConfigurationBuilder
-
- All Known Implementing Classes:
SteamConfigurationBuilder
public interface ISteamConfigurationBuilderInterface to configure aSteamConfigurationbefore it is created. A reference to the underlying object should not be live beyond the configurator function's scope.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISteamConfigurationBuilderwithCellID(int cellID)Configures thisSteamConfigurationfor a particular Steam cell.ISteamConfigurationBuilderwithConnectionTimeout(long connectionTimeout)Configures thisSteamConfigurationwith a connection timeout.ISteamConfigurationBuilderwithDefaultPersonaStateFlags(EClientPersonaStateFlag personaStateFlags)Configures thisSteamConfigurationwith the defaultEClientPersonaStateFlags to request from Steam.ISteamConfigurationBuilderwithDefaultPersonaStateFlags(java.util.EnumSet<EClientPersonaStateFlag> personaStateFlags)Configures thisSteamConfigurationwith the defaultEClientPersonaStateFlags to request from Steam.ISteamConfigurationBuilderwithDirectoryFetch(boolean allowDirectoryFetch)Configures thisSteamConfigurationto discover available servers.ISteamConfigurationBuilderwithHttpClient(okhttp3.OkHttpClient httpClient)Configures thisSteamConfigurationwith custom HTTP behaviour.ISteamConfigurationBuilderwithProtocolTypes(ProtocolTypes protocolTypes)Configures how thisSteamConfigurationwill be used to connect to Steam.ISteamConfigurationBuilderwithProtocolTypes(java.util.EnumSet<ProtocolTypes> protocolTypes)Configures how thisSteamConfigurationwill be used to connect to Steam.ISteamConfigurationBuilderwithServerListProvider(IServerListProvider provider)Configures the server list provider for thisSteamConfiguration.ISteamConfigurationBuilderwithUniverse(EUniverse universe)Configures the Universe that thisSteamConfigurationbelongs to.ISteamConfigurationBuilderwithWebAPIBaseAddress(java.lang.String baseAddress)Configures the Steam Web API address for thisSteamConfiguration.ISteamConfigurationBuilderwithWebAPIKey(java.lang.String webApiKey)Configures thisSteamConfigurationwith a Web API key to attach to requests.
-
-
-
Method Detail
-
withCellID
ISteamConfigurationBuilder withCellID(int cellID)
Configures thisSteamConfigurationfor a particular Steam cell.- Parameters:
cellID- The Steam Cell ID to prioritize when connecting.- Returns:
- A builder with modified configuration.
-
withConnectionTimeout
ISteamConfigurationBuilder withConnectionTimeout(long connectionTimeout)
Configures thisSteamConfigurationwith a connection timeout.- Parameters:
connectionTimeout- The connection timeout used when connecting to Steam serves.- Returns:
- A builder with modified configuration.
-
withHttpClient
ISteamConfigurationBuilder withHttpClient(okhttp3.OkHttpClient httpClient)
Configures thisSteamConfigurationwith custom HTTP behaviour.- Parameters:
httpClient- the http client- Returns:
- A builder with modified configuration.
-
withDefaultPersonaStateFlags
ISteamConfigurationBuilder withDefaultPersonaStateFlags(java.util.EnumSet<EClientPersonaStateFlag> personaStateFlags)
Configures thisSteamConfigurationwith the defaultEClientPersonaStateFlags to request from Steam.- Parameters:
personaStateFlags- The default persona state flags used when requesting information for a new friend, or when calling SteamFriends.RequestFriendInfo without specifying flags.- Returns:
- A builder with modified configuration.
-
withDefaultPersonaStateFlags
ISteamConfigurationBuilder withDefaultPersonaStateFlags(EClientPersonaStateFlag personaStateFlags)
Configures thisSteamConfigurationwith the defaultEClientPersonaStateFlags to request from Steam.- Parameters:
personaStateFlags- The default persona state flags used when requesting information for a new friend, or when calling SteamFriends.RequestFriendInfo without specifying flags.- Returns:
- A builder with modified configuration.
-
withDirectoryFetch
ISteamConfigurationBuilder withDirectoryFetch(boolean allowDirectoryFetch)
Configures thisSteamConfigurationto discover available servers.- Parameters:
allowDirectoryFetch- Whether or not to use the Steam Directory to discover available servers.- Returns:
- A builder with modified configuration.
-
withProtocolTypes
ISteamConfigurationBuilder withProtocolTypes(java.util.EnumSet<ProtocolTypes> protocolTypes)
Configures how thisSteamConfigurationwill be used to connect to Steam.- Parameters:
protocolTypes- The supported protocol types to use when attempting to connect to Steam.- Returns:
- A builder with modified configuration.
-
withProtocolTypes
ISteamConfigurationBuilder withProtocolTypes(ProtocolTypes protocolTypes)
Configures how thisSteamConfigurationwill be used to connect to Steam.- Parameters:
protocolTypes- The supported protocol types to use when attempting to connect to Steam.- Returns:
- A builder with modified configuration.
-
withServerListProvider
ISteamConfigurationBuilder withServerListProvider(IServerListProvider provider)
Configures the server list provider for thisSteamConfiguration.- Parameters:
provider- The server list provider to use..- Returns:
- A builder with modified configuration.
-
withUniverse
ISteamConfigurationBuilder withUniverse(EUniverse universe)
Configures the Universe that thisSteamConfigurationbelongs to.- Parameters:
universe- The Universe to connect to. This should always beEUniverse.Publicunless you work at Valve and are using this internally. If this is you, hello there.- Returns:
- A builder with modified configuration.
-
withWebAPIBaseAddress
ISteamConfigurationBuilder withWebAPIBaseAddress(java.lang.String baseAddress)
Configures the Steam Web API address for thisSteamConfiguration.- Parameters:
baseAddress- The base address of the Steam Web API to connect to. Use of "partner.steam-api.com" requires a Partner API Key.- Returns:
- A builder with modified configuration.
-
withWebAPIKey
ISteamConfigurationBuilder withWebAPIKey(java.lang.String webApiKey)
Configures thisSteamConfigurationwith a Web API key to attach to requests.- Parameters:
webApiKey- An API key to be used for authorized requests. Keys can be obtained from Steam Web API Documentation or the Steamworks Partner site.- Returns:
- A builder with modified configuration.
-
-