ValidatorsKt

public final class ValidatorsKt


Summary

Public methods

static final void

Validates a specified Anchorable object.

static final void
validate(@NonNull Camera receiver)

Validates a specified Camera object.

static final void

Validates a specified CameraRestriction object.

static final void

Validates a specified FlyAroundOptions object.

static final void

Validates a specified FlyToOptions object.

static final void
validate(@NonNull Hole receiver)

Validates that the given Hole is correct.

static final void

Validates that the given LatLngAltitude is correct.

static final void

Validates a specified LatLngBounds object properties.

static final void

Validates a specified Map3DInitConfig objects.

static final void

Validates a specified MarkerOptions object.

static final void

Validates a specified ModelOptions object.

static final void

Validates a specified Orientation object properties: heading, tilt, and roll.

static final void

Validates a specified PolygonOptions object.

static final void

Validates a specified PolylineOptions object.

static final void

Validates a specified PopoverOptions object.

static final void

Validates a specified Vector3D object properties: x, y, and z to be finite values.

static final void

Validates that the given AltitudeMode is valid for Camera.

static final void

Validates a specified Orientation object properties: heading, tilt, and roll for model.

static final boolean
validateMapMode(int receiver)

Validates whether the given map mode is recognized.

Public methods

validate

public static final void validate(@NonNull Anchorable receiver)

Validates a specified Anchorable object.

Throws
IllegalArgumentException

if the Anchorable is not valid.

validate

public static final void validate(@NonNull Camera receiver)

Validates a specified Camera object.

Throws
IllegalArgumentException

If the Camera is not valid.

validate

public static final void validate(@NonNull CameraRestriction receiver)

Validates a specified CameraRestriction object.

Throws
IllegalArgumentException

If the CameraRestriction is not valid.

validate

public static final void validate(@NonNull FlyAroundOptions receiver)

Validates a specified FlyAroundOptions object.

Throws
IllegalArgumentException

If the FlyAroundOptions is not valid.

validate

public static final void validate(@NonNull FlyToOptions receiver)

Validates a specified FlyToOptions object.

Throws
IllegalArgumentException

If the FlyToOptions is not valid.

validate

public static final void validate(@NonNull Hole receiver)

Validates that the given Hole is correct.

Throws
IllegalArgumentException

If the Hole is not valid.

validate

public static final void validate(@NonNull LatLngAltitude receiver)

Validates that the given LatLngAltitude is correct.

Throws
IllegalArgumentException

If the LatLngAltitude is not valid.

validate

public static final void validate(@NonNull LatLngBounds receiver)

Validates a specified LatLngBounds object properties.

Throws
IllegalArgumentException

If any of the properties in the LatLngBounds is not valid.

validate

public static final void validate(@NonNull Map3DInitConfig receiver)

Validates a specified Map3DInitConfig objects.

Throws
IllegalArgumentException

If the Map3DInitConfig is not valid.

validate

public static final void validate(@NonNull MarkerOptions receiver)

Validates a specified MarkerOptions object.

Throws
IllegalArgumentException

If the MarkerOptions is not valid.

validate

public static final void validate(@NonNull ModelOptions receiver)

Validates a specified ModelOptions object.

Throws
IllegalArgumentException

If the ModelOptions is not valid.

validate

public static final void validate(@NonNull Orientation receiver)

Validates a specified Orientation object properties: heading, tilt, and roll.

Throws
IllegalArgumentException

If the Orientation is not valid.

validate

public static final void validate(@NonNull PolygonOptions receiver)

Validates a specified PolygonOptions object.

Throws
IllegalArgumentException

if the PolygonOptions is not valid.

validate

public static final void validate(@NonNull PolylineOptions receiver)

Validates a specified PolylineOptions object.

Throws
IllegalArgumentException

if the PolylineOptions is not valid.

validate

public static final void validate(@NonNull PopoverOptions receiver)

Validates a specified PopoverOptions object.

Throws
IllegalArgumentException

if the PopoverOptions is not valid.

validate

public static final void validate(@NonNull Vector3D receiver)

Validates a specified Vector3D object properties: x, y, and z to be finite values.

Throws
IllegalArgumentException

If the Vector3D is not valid.

validateAltitudeModeForCamera

public static final void validateAltitudeModeForCamera(int receiver)

Validates that the given AltitudeMode is valid for Camera.

The AltitudeMode can only be AltitudeMode.ABSOLUTE, AltitudeMode.RELATIVE_TO_GROUND, or AltitudeMode.RELATIVE_TO_MESH. It must not be AltitudeMode.CLAMP_TO_GROUND.

Throws
IllegalArgumentException

If the AltitudeMode is not valid for Camera.

validateForModel

public static final void validateForModel(@NonNull Orientation receiver)

Validates a specified Orientation object properties: heading, tilt, and roll for model.

Throws
IllegalArgumentException

If the Orientation is not valid.

validateMapMode

public static final boolean validateMapMode(int receiver)

Validates whether the given map mode is recognized.

Returns
boolean

True if the map mode is recognized, false otherwise.