public final class UiSettings
Sets the built-in UI and gesture controls of a map.
None.
None.
| Return type | Method name |
| boolean | isCompassEnabled() |
| boolean | isIndoorLevelPickerEnabled() (This method is not supported by the HUAWEI Map Kit SDK currently.) |
| boolean | isMapToolbarEnabled() (This method is not supported by the HUAWEI Map Kit SDK currently.) |
| boolean | isMyLocationButtonEnabled() |
| boolean | isRotateGesturesEnabled() |
| boolean | isScrollGesturesEnabled() |
| boolean | isScrollGesturesEnabledDuringRotateOrZoom() |
| boolean | isTiltGesturesEnabled() |
| boolean | isZoomControlsEnabled() |
| boolean | isZoomGesturesEnabled() |
| void | setAllGesturesEnabled(boolean enabled) |
| void | setCompassEnabled(boolean enabled) |
| void | setIndoorLevelPickerEnabled(boolean enabled) (This method is not supported by the HUAWEI Map Kit SDK currently.) |
| void | setMapToolbarEnabled(boolean enabled) (This method is not supported by the HUAWEI Map Kit SDK currently.) |
| void | setMyLocationButtonEnabled(boolean enabled) |
| void | setRotateGesturesEnabled(boolean enabled) |
| void | setScrollGesturesEnabled(boolean enabled) |
| void | setScrollGesturesEnabledDuringRotateOrZoom(boolean enabled) |
| void | setTiltGesturesEnabled(boolean enabled) |
| void | setZoomControlsEnabled(boolean enabled) |
| void | setZoomGesturesEnabled(boolean enabled) |
| Method |
| public boolean isCompassEnabled() |
| Checks whether the compass is enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If the compass is enabled, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isMyLocationButtonEnabled() |
| Checks whether the my-location icon is enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If the my-location icon is enabled, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isRotateGesturesEnabled() |
| Checks whether rotate gestures are enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If rotate gestures are enabled, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isScrollGesturesEnabled() |
| Checks whether scroll gestures are enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If scroll gestures are enabled, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isScrollGesturesEnabledDuringRotateOrZoom() |
| Checks whether scroll gestures are enabled during rotation or zooming. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If scroll gestures are enabled during rotation or zooming, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isTiltGesturesEnabled() |
| Checks whether tilt gestures are enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If tilt gestures are enabled, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isZoomControlsEnabled() |
| Checks whether zoom controls are enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If zoom controls are enabled, true is returned. Otherwise, false is returned. |
| Method |
| public boolean isZoomGesturesEnabled() |
| Checks whether zoom gestures are enabled for a map. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| boolean | If zoom gestures are enabled, true is returned. Otherwise, false is returned. |
| Method |
| public void setAllGesturesEnabled(boolean enabled) |
| Specifies whether to enable all gestures for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable all gestures. The options are true (yes) and false (no). |
Return:
None.
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable the compass. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setMyLocationButtonEnabled(boolean enabled) |
| Specifies whether to enable the my-location icon for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable the my-location icon. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setRotateGesturesEnabled(boolean enabled) |
| Specifies whether to enable rotate gestures for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable rotate gestures. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setScrollGesturesEnabled(boolean enabled) |
| Specifies whether to enable scroll gestures for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable scroll gestures. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setScrollGesturesEnabledDuringRotateOrZoom(boolean enabled) |
| Specifies whether to enable scroll gestures during rotation or zooming. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable scroll gestures during rotation or zooming. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setTiltGesturesEnabled(boolean enabled) |
| Specifies whether to enable tilt gestures for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable tilt gestures. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setZoomControlsEnabled(boolean enabled) |
| Specifies whether to enable zoom controls for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable zoom controls. The options are true (yes) and false (no). |
Return:
None.
| Method |
| public void setZoomGesturesEnabled(boolean enabled) |
| Specifies whether to enable zoom gestures for a map. |
Parameters:
| Parameter name | Parameter desc |
| enabled | Indicates whether to enable zoom gestures. The options are true (yes) and false (no). |
Return:
None.