public static final class TrackingOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TrackingOptions |
build()
Builds a new instance of TrackingOptions.
|
TrackingOptions.Builder |
customDeviceId(java.lang.String customDeviceId)
Sets the custom ID chosen to identify this device on the chosen tracker resource.
|
TrackingOptions.Builder |
emitLocationFrequency(java.lang.Long emitLocationFrequency)
Sets the frequency in milliseconds to publish a batch of locations to Amazon Location Service.
|
TrackingOptions.Builder |
retrieveLocationFrequency(java.lang.Long retrieveLocationFrequency)
Sets the frequency in milliseconds to get the current device location.
|
public TrackingOptions.Builder customDeviceId(java.lang.String customDeviceId)
customDeviceId
- the custom ID chosen to identify this device on the chosen tracker resource.public TrackingOptions.Builder retrieveLocationFrequency(java.lang.Long retrieveLocationFrequency)
retrieveLocationFrequency
- the frequency in milliseconds to get the current device location.public TrackingOptions.Builder emitLocationFrequency(java.lang.Long emitLocationFrequency)
emitLocationFrequency
- the frequency in milliseconds to publish a batch of locations.public TrackingOptions build()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.