本文整理汇总了Java中com.google.android.gms.maps.model.IndoorBuilding.equals方法的典型用法代码示例。如果您正苦于以下问题:Java IndoorBuilding.equals方法的具体用法?Java IndoorBuilding.equals怎么用?Java IndoorBuilding.equals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.android.gms.maps.model.IndoorBuilding
的用法示例。
在下文中一共展示了IndoorBuilding.equals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onIndoorBuildingFocused
import com.google.android.gms.maps.model.IndoorBuilding; //导入方法依赖的package包/类
@Override
public void onIndoorBuildingFocused() {
IndoorBuilding building = mMap.getFocusedBuilding();
if (building != null && mMosconeBuilding == null
&& mMap.getProjection().getVisibleRegion().latLngBounds.contains(MOSCONE)) {
// Store the first active building. This will always be Moscone
mMosconeBuilding = building;
}
if (!mAtMoscone && building != null && building.equals(mMosconeBuilding)) {
// Map is focused on Moscone Center
mAtMoscone = true;
onFocusMoscone();
} else if (mAtMoscone && mMosconeBuilding != null && !mMosconeBuilding.equals(building)) {
// Map is no longer focused on Moscone Center
mAtMoscone = false;
onDefocusMoscone();
}
onIndoorLevelActivated(building);
}
示例2: onIndoorLevelActivated
import com.google.android.gms.maps.model.IndoorBuilding; //导入方法依赖的package包/类
@Override
public void onIndoorLevelActivated(IndoorBuilding indoorBuilding) {
if (indoorBuilding.equals(mMosconeBuilding)) {
// Show map elements for this floor if at Moscone
showFloorElementsIndex(indoorBuilding.getActiveLevelIndex());
}
}
示例3: onIndoorLevelActivated
import com.google.android.gms.maps.model.IndoorBuilding; //导入方法依赖的package包/类
@Override
public void onIndoorLevelActivated(IndoorBuilding indoorBuilding) {
if (indoorBuilding != null && indoorBuilding.equals(mMosconeBuilding)) {
onMosconeFloorActivated(indoorBuilding.getActiveLevelIndex());
}
}