Package com.mapsindoors.mapssdk
Class MPNetworkOptions.Builder
- java.lang.Object
-
- com.mapsindoors.mapssdk.MPNetworkOptions.Builder
-
- Enclosing class:
- MPNetworkOptions
public static class MPNetworkOptions.Builder extends java.lang.Object
Builds a newMPNetworkOptions
object to pass toMapsIndoors
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPNetworkOptions
build()
Returns a usableMPNetworkOptions
to pass toMapsIndoors
MPNetworkOptions.Builder
setConnectionTimeout(int timeoutMilliseconds)
Sets the connection timeoutMilliseconds in milliseconds to use for every network request inside the SDKMPNetworkOptions.Builder
setReadTimeout(int timeoutMilliseconds)
Sets the read timeoutMilliseconds in milliseconds to use for every network request inside the SDK
-
-
-
Method Detail
-
setReadTimeout
@NonNull public MPNetworkOptions.Builder setReadTimeout(int timeoutMilliseconds)
Sets the read timeoutMilliseconds in milliseconds to use for every network request inside the SDK- Parameters:
timeoutMilliseconds
- timeoutMilliseconds in milliseconds. A timeoutMilliseconds of 0 is considered as infinity- Returns:
MPNetworkOptions.Builder
object
-
setConnectionTimeout
@NonNull public MPNetworkOptions.Builder setConnectionTimeout(int timeoutMilliseconds)
Sets the connection timeoutMilliseconds in milliseconds to use for every network request inside the SDK- Parameters:
timeoutMilliseconds
- timeoutMilliseconds in milliseconds. A timeoutMilliseconds of 0 is considered as infinity- Returns:
MPNetworkOptions.Builder
object
-
build
@NonNull public MPNetworkOptions build()
Returns a usableMPNetworkOptions
to pass toMapsIndoors
- Returns:
MPNetworkOptions
-
-