Skip to content

Class LocationEditManager

Il Kadyrov edited this page Oct 28, 2020 · 1 revision

LocationEditManager class is used for editing location's transmitters, committing changes to the server.

Referenced from: NavigineSdk.

Public methods

Function addLocationEditListener

public void addLocationEditListener(LocationEditListener locationEditListener)

Function is used for adding LocationEditListener class element which will notify about editing status and commit status.

Parameters

Function removeLocationEditListener

public void removeLocationEditListener(LocationEditListener locationEditListener)

Function is used for removing previously added LocationEditListener class element.

Parameters

Function addBeacon

public void addBeacon(int subLocationId,
                      String uuid,
                      int major,
                      int minor,
                      Point point,
                      String name,
                      int power);

Function is used for adding new beacon to the location.

Parameters
  • subLocationId — id of the sublocation, where beacon should be added.
  • uuid — uuid value of the beacon.
  • major — major value of the beacon.
  • minor — minor value of the beacon.
  • point — position of the beacon on the map. (In metric coordinates)
  • name — name value of the beacon.
  • power — power value of the beacon.

Function editBeacon

public void editBeacon(int subLocationId,
                       String uuid,
                       int major,
                       int minor,
                       Point point,
                      String name,
                      int power);

Function is used for editing existing beacon on the sublocation. Major, minor and uuid are used for finding this beacon. User can edit only last three values.

Parameters
  • subLocationId — id of the sublocation, where beacon should be added.
  • uuid — uuid value of the beacon.
  • major — major value of the beacon.
  • minor — minor value of the beacon.
  • point — position of the beacon on the map. (In metric coordinates)
  • name — name value of the beacon.
  • power — power value of the beacon.

Function removeBeacon

public void removeBeacon(int subLocationId,
                         String uuid,
                         int major,
                         int minor);

Function is used for removing existing beacon on the location.

Parameters
  • subLocationId — id of the sublocation, where beacon should be added.
  • uuid — uuid value of the beacon.
  • major — major value of the beacon.
  • minor — minor value of the beacon.

Function addEddystone

public void addEddystone(int subLocationId,
                         String namespaceId,
                         String instanceId,
                         Point point,
                         String name,
                         int power);

Function is used for adding eddystone to the location.

Parameters
  • subLocationId — id of the sublocation, where eddystone should be added.
  • namespaceId — namespace id value of the eddystone.
  • instanceId — instance id value of the eddystone.
  • point — position of the eddystone on the map. (In metric coordinates)
  • name — name value of the eddystone.
  • power — power value of the eddystone.

Function editEddystone

public void editEddystone(int subLocationId,
                          String namespaceId,
                          String instanceId,
                          Point point,
                          String name,
                          int power);

Function is used for editing existing eddystone on the location. Namespace id and instance id are used for finding this eddystone. User can edit only last three values.

Parameters
  • subLocationId — id of the sublocation, where eddystone should be added.
  • namespaceId — namespace id value of the eddystone.
  • instanceId — instance id value of the eddystone.
  • point — position of the eddystone on the map. (In metric coordinates)
  • name — name value of the eddystone.
  • power — power value of the eddystone.

Function removeEddystone

public void removeEddystone(int subLocationId,
                            String namespaceId,
                            String instanceId);

Function is used for removing existing eddystone on the location.

Parameters
  • subLocationId — id of the sublocation, where eddystone should be added.
  • namespaceId — namespace id value of the eddystone.
  • instanceId — instance id value of the eddystone.

Function addWifi

public void addWifi(int subLocationId,
                    String mac,
                    Point point,
                    String name);

Function is used for adding wifi to the location.

Parameters
  • subLocationId — id of the sublocation, where wifi should be added.
  • mac — mac address of the wifi. (Without :, i.e. 001122334455)
  • point — position of the wifi on the map. (In metric coordinates)
  • name — name value of the wifi.

Function editWifi

public void editWifi(int subLocationId,
                     String mac,
                     Point point,
                     String name);

Function is used for editing existing wifi on the location. MAC address is used for finding this wifi. User can edit only last two values.

Parameters
  • subLocationId — id of the sublocation, where wifi should be added.
  • mac — mac address of the wifi. (Without :, i.e. 001122334455)
  • point — position of the wifi on the map. (In metric coordinates)
  • name — name value of the wifi.

Function removeWifi

public void removeWifi(int subLocationId, String mac);

Function is used for removing existing wifi on the location.

Parameters
  • subLocationId — id of the sublocation, where wifi should be added.
  • mac — mac address of the wifi. (Without :, i.e. 001122334455)

Function commitChanges

public void commitChanges();

Function is used for applying current transmitters changes and uploading them to the server.

Clone this wiki locally