Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HUAWEI HMS Core
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
public static class CameraPosition.Builder
An internal API of the CameraPosition class. The API contains the build(), bearing(float bearing), target(LatLng location), tilt(float tilt), and zoom(float zoom) methods.
None.
| Construction Method |
| CameraPosition.Builder() |
| CameraPosition.Builder(CameraPosition cameraPosition) |
| Return type | Method name |
| CameraPosition | build() |
| CameraPosition.Builder | bearing(float bearing) |
| CameraPosition.Builder | target(LatLng location) |
| CameraPosition.Builder | tilt(float tilt) |
| CameraPosition.Builder | zoom(float zoom) |
| Method |
| public CameraPosition build() |
| Builds a CameraPosition object. |
Parameters:
None.
Return:
| Return type | Parameter desc |
| CameraPosition | CameraPosition object. |
| Method |
| public CameraPosition.Builder bearing(float bearing) |
| Sets the direction in which the camera points, in degrees clockwise from north. |
Parameters:
| Parameter name | Parameter desc |
| bearing | Number of degrees of the desired direction in which the camera points. |
Return:
| Return type | Parameter desc |
| CameraPosition.Builder | CameraPosition.Builder object. |
| Method |
| public CameraPosition.Builder target(LatLng location) |
| Sets the longitude and latitude of the location at which the camera points. |
Parameters:
| Parameter name | Parameter desc |
| location | Latitude and longitude of the desired location at which the camera points. |
Return:
| Return type | Parameter desc |
| CameraPosition.Builder | CameraPosition.Builder object. |
| Method |
| public CameraPosition.Builder tilt(float tilt) |
| Sets the angle of the camera from the nadir (directly facing the Earth's surface). |
Parameters:
| Parameter name | Parameter desc |
| tilt | Tilt angle, in degrees. |
Return:
| Return type | Parameter desc |
| CameraPosition.Builder | CameraPosition.Builder object. |
| Method |
| public CameraPosition.Builder zoom(float zoom) |
| Changes the zoom level of the camera. |
Parameters:
| Parameter name | Parameter desc |
| zoom | Desired zoom level. |
Return:
| Return type | Parameter desc |
| CameraPosition.Builder | CameraPosition.Builder object. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.