Camera

class Camera : Parcelable


Camera class to represent the camera view in a 3D map.

Summary

Public constructors

Camera(
    center: LatLngAltitude!,
    heading: Double?,
    tilt: Double?,
    roll: Double?,
    range: Double?
)

Constructor for Camera with parameters for required fields.

Public functions

Unit
writeToParcel(dest: Parcel!, flags: Int)

Extension functions

Unit

Validates a specified Camera object.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<Camera!>!

DEFAULT_CAMERA

const val DEFAULT_CAMERACamera!

Public constructors

Camera

Camera(
    center: LatLngAltitude!,
    heading: Double?,
    tilt: Double?,
    roll: Double?,
    range: Double?
)

Constructor for Camera with parameters for required fields.

Parameters
center: LatLngAltitude!

The center of the camera.

heading: Double?

The heading of the camera.

tilt: Double?

The tilt of the camera.

roll: Double?

The roll of the camera.

range: Double?

The range of the camera.

Public functions

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

center

var centerLatLngAltitude!

heading

var headingDouble?

range

var rangeDouble?

roll

var rollDouble?

tilt

var tiltDouble?

Extension functions

validate

fun Camera.validate(): Unit

Validates a specified Camera object.

Throws
java.lang.IllegalArgumentException

If the Camera is not valid.