Skip to content

Class Location

Il Kadyrov edited this page Sep 30, 2020 · 6 revisions

Location class is used for storing location parameters: identifier, version, name, a list of sublocations, etc. Location instance can be obtained from LocationManager using LocationListeners' callback, when the location is loaded.

Referenced from: LocationManager.

Public methods

Function getId

public int getId()

Function returns the location's identifier.

Function getVersion

public int getVersion()

Function returns the location's version.

Function getName

public String getName()

Function returns the location's name.

Function getDescript

public String getDescript()

Function returns the location's description.

Function getSubLocations

public ArrayList<SubLocation> getSubLocations()

Function returns the list of sublocations (see SubLocation class).

Function getCategories

public ArrayList<Category> getCategories()

Function returns the list of venue categories defined for the location (see Category class).

Function getSublocationById

public SubLocation getSublocationById(int id)

Function is used for obtaining a sublocation with the specified identifier from the current location.

Parameters
  • id — the category identifier.
Return value

The SubLocation of the current location with the specified identifier, if it exists. If sublocation with the specified identifier doesn't exist, function returns null.

Function getCategoryById

public Category getCategoryById(int id)

Function is used for obtaining a category with the specified identifier from the current location.

Parameters
  • id — the category identifier.
Return value

The Category of the current location with the specified identifier, if it exists. If category with the specified identifier doesn't exist, function returns null.

Clone this wiki locally