IndoorLevel
Stay organized with collections
Save and categorize content based on your preferences.
Represents a level in a building.
IndoorLevel objects are only equal by id. It is possible that may have different
contents.
While a level is usually enclosed by a single building, a level might be enclosed by
several buildings (e.g., a carpark level might span multiple buildings).
Public Method Summary
void |
activate
() Sets this level as the visible level in its building.
|
boolean |
|
String
|
getName
() Localized display name for the level, e.g.
|
String
|
getShortName
() Localized short display name for the level, e.g.
|
int |
|
Inherited Method Summary
From class java.lang.Object
Public Methods
public void
activate
()
Sets this level as the visible level in its building. If a level is enclosed in
several buildings, then all those buildings will have this level set as active.
public boolean
equals
( Object
other)
Returns
- true if both objects are the same object, that is, this == other.
public String
getName
()
Localized display name for the level, e.g. "Ground floor". Returns an empty string
if no name is defined.
public String
getShortName
()
Localized short display name for the level, e.g. "1". Returns an empty string if no
shortName is defined.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eIndoorLevel\u003c/code\u003e represents a level within a building, possibly spanning multiple buildings like a parking garage.\u003c/p\u003e\n"],["\u003cp\u003eLevels are uniquely identified by their ID, but their content may differ.\u003c/p\u003e\n"],["\u003cp\u003eYou can set a level as active/visible within its building(s) using \u003ccode\u003eactivate()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetName()\u003c/code\u003e and \u003ccode\u003egetShortName()\u003c/code\u003e provide localized display names for the level.\u003c/p\u003e\n"],["\u003cp\u003eEquality checks for \u003ccode\u003eIndoorLevel\u003c/code\u003e objects are based solely on their ID.\u003c/p\u003e\n"]]],["`IndoorLevel` represents a building level, which can span multiple buildings. Key actions include `activate()`, which makes the level visible across its buildings, and `equals(Object other)`, which checks if two `IndoorLevel` objects are identical. Other methods provide information: `getName()` returns the localized full name, `getShortName()` the short name, and `hashCode()` returns an integer value of it. Inherited methods allow object comparison, string conversion, and process handling. `IndoorLevel` objects are equal if they have the same ID.\n"],null,["# IndoorLevel\n\npublic final class **IndoorLevel** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nRepresents a level in a building.\n\nIndoorLevel objects are only equal by id. It is possible that may have different\ncontents.\n\nWhile a level is usually enclosed by a single building, a level might be enclosed by\nseveral buildings (e.g., a carpark level might span multiple buildings). \n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| void | [activate](/android/reference/com/google/android/gms/maps/model/IndoorLevel#activate())() Sets this level as the visible level in its building. |\n| boolean | [equals](/android/reference/com/google/android/gms/maps/model/IndoorLevel#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) other) Tests if this [IndoorLevel](/android/reference/com/google/android/gms/maps/model/IndoorLevel) is equal to another. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getName](/android/reference/com/google/android/gms/maps/model/IndoorLevel#getName())() Localized display name for the level, e.g. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getShortName](/android/reference/com/google/android/gms/maps/model/IndoorLevel#getShortName())() Localized short display name for the level, e.g. |\n| int | [hashCode](/android/reference/com/google/android/gms/maps/model/IndoorLevel#hashCode())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public void **activate** ()\n\nSets this level as the visible level in its building. If a level is enclosed in\nseveral buildings, then all those buildings will have this level set as active. \n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) other)\n\nTests if this [IndoorLevel](/android/reference/com/google/android/gms/maps/model/IndoorLevel)\nis equal to another. \n\n##### Parameters\n\n| other | an [Object](//developer.android.com/reference/java/lang/Object.html). |\n|-------|-----------------------------------------------------------------------|\n\n##### Returns\n\n- true if both objects are the same object, that is, this == other. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getName** ()\n\nLocalized display name for the level, e.g. \"Ground floor\". Returns an empty string\nif no name is defined. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getShortName** ()\n\nLocalized short display name for the level, e.g. \"1\". Returns an empty string if no\nshortName is defined. \n\n#### public int **hashCode** ()"]]