CameraRestriction

public class CameraRestriction implements Parcelable


Defines the restrictions that can be applied to a camera.

Summary

Constants

static final Parcelable.Creator<CameraRestriction>

Public constructors

CameraRestriction(
    @Nullable Double minAltitude,
    @Nullable Double maxAltitude,
    @Nullable Double minHeading,
    @Nullable Double maxHeading,
    @Nullable Double minTilt,
    @Nullable Double maxTilt,
    @Nullable LatLngBounds bounds
)

Constructor for CameraRestriction with parameters for required fields.

Public methods

@Nullable LatLngBounds

The bounds of the camera.

@Nullable Double

The maximum altitude of the camera.

@Nullable Double

The maximum heading of the camera.

@Nullable Double

The maximum tilt of the camera.

@Nullable Double

The minimum altitude of the camera.

@Nullable Double

The minimum heading of the camera.

@Nullable Double

The minimum tilt of the camera.

void

Sets the bounds of the camera.

void

Sets the maximum altitude of the camera.

void

Sets the maximum heading of the camera.

void

Sets the maximum tilt of the camera.

void

Sets the minimum altitude of the camera.

void

Sets the minimum heading of the camera.

void

Sets the minimum tilt of the camera.

void
writeToParcel(Parcel dest, int flags)

Extension functions

final void

Validates a specified CameraRestriction object.

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<CameraRestrictionCREATOR

Public fields

bounds

public @Nullable LatLngBounds bounds

maxAltitude

public @Nullable Double maxAltitude

maxHeading

public @Nullable Double maxHeading

maxTilt

public @Nullable Double maxTilt

minAltitude

public @Nullable Double minAltitude

minHeading

public @Nullable Double minHeading

minTilt

public @Nullable Double minTilt

Public constructors

CameraRestriction

public CameraRestriction(
    @Nullable Double minAltitude,
    @Nullable Double maxAltitude,
    @Nullable Double minHeading,
    @Nullable Double maxHeading,
    @Nullable Double minTilt,
    @Nullable Double maxTilt,
    @Nullable LatLngBounds bounds
)

Constructor for CameraRestriction with parameters for required fields.

Parameters
@Nullable Double minAltitude

The minimum altitude of the camera.

@Nullable Double maxAltitude

The maximum altitude of the camera.

@Nullable Double minHeading

The minimum heading of the camera.

@Nullable Double maxHeading

The maximum heading of the camera.

@Nullable Double minTilt

The minimum tilt of the camera.

@Nullable Double maxTilt

The maximum tilt of the camera.

@Nullable LatLngBounds bounds

The bounds of the camera.

Public methods

getBounds

public @Nullable LatLngBounds getBounds()

The bounds of the camera.

getMaxAltitude

public @Nullable Double getMaxAltitude()

The maximum altitude of the camera.

getMaxHeading

public @Nullable Double getMaxHeading()

The maximum heading of the camera.

getMaxTilt

public @Nullable Double getMaxTilt()

The maximum tilt of the camera.

getMinAltitude

public @Nullable Double getMinAltitude()

The minimum altitude of the camera.

getMinHeading

public @Nullable Double getMinHeading()

The minimum heading of the camera.

getMinTilt

public @Nullable Double getMinTilt()

The minimum tilt of the camera.

setBounds

public void setBounds(@Nullable LatLngBounds bounds)

Sets the bounds of the camera.

setMaxAltitude

public void setMaxAltitude(@Nullable Double maxAltitude)

Sets the maximum altitude of the camera.

setMaxHeading

public void setMaxHeading(@Nullable Double maxHeading)

Sets the maximum heading of the camera.

setMaxTilt

public void setMaxTilt(@Nullable Double maxTilt)

Sets the maximum tilt of the camera.

setMinAltitude

public void setMinAltitude(@Nullable Double minAltitude)

Sets the minimum altitude of the camera.

setMinHeading

public void setMinHeading(@Nullable Double minHeading)

Sets the minimum heading of the camera.

setMinTilt

public void setMinTilt(@Nullable Double minTilt)

Sets the minimum tilt of the camera.

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Extension functions

ValidatorsKt.validate

public final void ValidatorsKt.validate(@NonNull CameraRestriction receiver)

Validates a specified CameraRestriction object.