Class AssetTrackingOptions

java.lang.Object
es.situm.sdk.location.AssetTrackingOptions
All Implemented Interfaces:
android.os.Parcelable, MapperInterface

public class AssetTrackingOptions extends Object implements android.os.Parcelable, MapperInterface
Enables asset tracking by scanning BLE beacons within the user's environment. When this option is active, the SDK continuously collects and maintains a record of BLE beacon readings detected in the environment.

At regular intervals, the complete list of beacon readings is uploaded to the Dashboard, where it is associated with the user's current position. This association enables the extrapolation of the absolute positions of the scanned beacons, providing valuable insights for tracking and managing assets in the environment.

Note: Enabling this option may impact network usage due to the periodic uploads of beacon data. Developers should consider the application's context and user preferences when configuring this feature.

  • Field Details

  • Method Details

    • isEnabled

      @Nullable public Boolean isEnabled()
    • scanningInterval

      @Nullable public Long scanningInterval()
    • iterationsToUpload

      @Nullable public Integer iterationsToUpload()
    • getBeaconFilters

      @NonNull public List<BeaconFilter> getBeaconFilters()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • fromMap

      public static AssetTrackingOptions fromMap(Map<String,Object> map) throws IllegalArgumentException
      Return a new AssetTrackingOptions instance object containing the data at the given map. Use MapperInterface to populate the Map. The expected fields are those defined at AssetTrackingOptions.Builder.
      Parameters:
      map - Map containing the data used to populate the new object.
      Returns:
      New instance.
      Throws:
      IllegalArgumentException - If there is not enough information at the given map or it is incorrect.
    • toMap

      public Map<String,Object> toMap()
      Description copied from interface: MapperInterface
      Method to transform object into Map<String, Object>
      Specified by:
      toMap in interface MapperInterface
      Returns:
      Map<String, Object> with the information of the object mapped