public static class GoIndoor.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GoIndoor |
build()
Creates a
GoIndoor with the arguments supplied to this builder. |
GoIndoor.Builder |
setAccount(java.lang.String account)
Sets the account.
|
GoIndoor.Builder |
setConnectCallback(ConnectCallback connectCallback)
Sets the callback to handle the connection process.
|
GoIndoor.Builder |
setContext(android.content.Context context)
Sets the indoor backend URL.
|
GoIndoor.Builder |
setDatabaseUpdate(long refresh)
Sets the database update rate in msec.
|
GoIndoor.Builder |
setDebug(boolean debug)
Sets the debug mode.
|
GoIndoor.Builder |
setLocationType(int type)
Sets the positioning type.
|
GoIndoor.Builder |
setLocationUpdate(long refresh)
Sets the update rate in msec.
|
GoIndoor.Builder |
setPassword(java.lang.String password)
Sets the password.
|
GoIndoor.Builder |
setProfile(java.lang.String type)
Sets the profile to be used.
|
GoIndoor.Builder |
setUpdatePolicy(int policy)
Sets the update policy.
|
GoIndoor.Builder |
setUrl(java.lang.String url)
Sets the app context.
|
public GoIndoor.Builder setContext(android.content.Context context)
public GoIndoor.Builder setUrl(java.lang.String url)
public GoIndoor.Builder setAccount(java.lang.String account)
public GoIndoor.Builder setProfile(java.lang.String type)
public GoIndoor.Builder setPassword(java.lang.String password)
public GoIndoor.Builder setConnectCallback(ConnectCallback connectCallback)
public GoIndoor.Builder setLocationType(int type)
GoIndoor.LOCATION_TYPE_AVERAGE
.public GoIndoor.Builder setLocationUpdate(long refresh)
GoIndoor.DEFAULT_LOCATION_REFRESH
.public GoIndoor.Builder setDebug(boolean debug)
public GoIndoor.Builder setUpdatePolicy(int policy)
GoIndoor.UPDATE_WIFI
| GoIndoor.UPDATE_MOBILE
.public GoIndoor.Builder setDatabaseUpdate(long refresh)
GoIndoor.DEFAULT_UPDATE_TIME
.public GoIndoor build() throws java.lang.IllegalArgumentException
GoIndoor
with the arguments supplied to this builder. It will
attempt to connect to the database and the outcome will be shown in the provided
connect callbackjava.lang.IllegalArgumentException