public class SteamConfigurationBuilder extends java.lang.Object implements ISteamConfigurationBuilder
| Constructor and Description |
|---|
SteamConfigurationBuilder() |
public static SteamConfigurationState createDefaultState()
public SteamConfiguration build()
public ISteamConfigurationBuilder withCellID(int cellID)
ISteamConfigurationBuilderSteamConfiguration for a particular Steam cell.withCellID in interface ISteamConfigurationBuildercellID - The Steam Cell ID to prioritize when connecting.public ISteamConfigurationBuilder withConnectionTimeout(long connectionTimeout)
ISteamConfigurationBuilderSteamConfiguration with a connection timeout.withConnectionTimeout in interface ISteamConfigurationBuilderconnectionTimeout - The connection timeout used when connecting to Steam serves.public ISteamConfigurationBuilder withHttpClient(okhttp3.OkHttpClient httpClient)
ISteamConfigurationBuilderSteamConfiguration with custom HTTP behaviour.withHttpClient in interface ISteamConfigurationBuilderhttpClient - the http clientpublic ISteamConfigurationBuilder withDefaultPersonaStateFlags(java.util.EnumSet<EClientPersonaStateFlag> personaStateFlags)
ISteamConfigurationBuilderSteamConfiguration with the default EClientPersonaStateFlags to request from Steam.withDefaultPersonaStateFlags in interface ISteamConfigurationBuilderpersonaStateFlags - The default persona state flags used when requesting information for a new friend, or when calling SteamFriends.RequestFriendInfo without specifying flags.public ISteamConfigurationBuilder withDefaultPersonaStateFlags(EClientPersonaStateFlag personaStateFlags)
ISteamConfigurationBuilderSteamConfiguration with the default EClientPersonaStateFlags to request from Steam.withDefaultPersonaStateFlags in interface ISteamConfigurationBuilderpersonaStateFlags - The default persona state flags used when requesting information for a new friend, or when calling SteamFriends.RequestFriendInfo without specifying flags.public ISteamConfigurationBuilder withDirectoryFetch(boolean allowDirectoryFetch)
ISteamConfigurationBuilderSteamConfiguration to discover available servers.withDirectoryFetch in interface ISteamConfigurationBuilderallowDirectoryFetch - Whether or not to use the Steam Directory to discover available servers.public ISteamConfigurationBuilder withProtocolTypes(java.util.EnumSet<ProtocolTypes> protocolTypes)
ISteamConfigurationBuilderSteamConfiguration will be used to connect to Steam.withProtocolTypes in interface ISteamConfigurationBuilderprotocolTypes - The supported protocol types to use when attempting to connect to Steam.public ISteamConfigurationBuilder withProtocolTypes(ProtocolTypes protocolTypes)
ISteamConfigurationBuilderSteamConfiguration will be used to connect to Steam.withProtocolTypes in interface ISteamConfigurationBuilderprotocolTypes - The supported protocol types to use when attempting to connect to Steam.public ISteamConfigurationBuilder withServerListProvider(IServerListProvider provider)
ISteamConfigurationBuilderSteamConfiguration.withServerListProvider in interface ISteamConfigurationBuilderprovider - The server list provider to use..public ISteamConfigurationBuilder withUniverse(EUniverse universe)
ISteamConfigurationBuilderSteamConfiguration belongs to.withUniverse in interface ISteamConfigurationBuilderuniverse - The Universe to connect to. This should always be EUniverse.Public unless you work at Valve and are using this internally. If this is you, hello there.public ISteamConfigurationBuilder withWebAPIBaseAddress(java.lang.String baseAddress)
ISteamConfigurationBuilderSteamConfiguration.withWebAPIBaseAddress in interface ISteamConfigurationBuilderbaseAddress - The base address of the Steam Web API to connect to. Use of "partner.steam-api.com" requires a Partner API Key.public ISteamConfigurationBuilder withWebAPIKey(java.lang.String webApiKey)
ISteamConfigurationBuilderSteamConfiguration with a Web API key to attach to requests.withWebAPIKey in interface ISteamConfigurationBuilderwebApiKey - An API key to be used for authorized requests. Keys can be obtained from Steam Web API Documentation or the Steamworks Partner site.