Interface DevicePositionUpdate.Builder

  • Method Details

    • deviceId

      The device associated to the position update.

      Parameters:
      deviceId - The device associated to the position update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleTime

      DevicePositionUpdate.Builder sampleTime(Instant sampleTime)

      The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

      Parameters:
      sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • position

      The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].

      Parameters:
      position - The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • position

      DevicePositionUpdate.Builder position(Double... position)

      The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].

      Parameters:
      position - The latest device position defined in WGS 84 format: [X or longitude, Y or latitude].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accuracy

      The accuracy of the device position.

      Parameters:
      accuracy - The accuracy of the device position.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accuracy

      The accuracy of the device position.

      This is a convenience method that creates an instance of the PositionalAccuracy.Builder avoiding the need to create one manually via PositionalAccuracy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accuracy(PositionalAccuracy).

      Parameters:
      accuracy - a consumer that will call methods on PositionalAccuracy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • positionProperties

      DevicePositionUpdate.Builder positionProperties(Map<String,String> positionProperties)

      Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.

      Format: "key" : "value"

      Parameters:
      positionProperties - Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger.

      Format: "key" : "value"

      Returns:
      Returns a reference to this object so that method calls can be chained together.