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 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
kotlin.IllegalArgumentException

if the Anchorable is not valid.

validate

public static final void validate(@NonNull Camera receiver)

Validates a specified Camera object.

Throws
kotlin.IllegalArgumentException

If the Camera is not valid.

validate

public static final void validate(@NonNull CameraRestriction receiver)

Validates a specified CameraRestriction object.

validate

public static final void validate(@NonNull FlyAroundOptions receiver)

Validates a specified FlyAroundOptions object.

validate

public static final void validate(@NonNull FlyToOptions receiver)

Validates a specified FlyToOptions object.

Throws
kotlin.IllegalArgumentException

If the FlyToOptions is not valid.

validate

public static final void validate(@NonNull Hole receiver)

Validates that the given Hole is correct.

Throws
kotlin.IllegalArgumentException

If the Hole is not valid.

validate

public static final void validate(@NonNull LatLngAltitude receiver)

Validates that the given LatLngAltitude is correct.

Throws
kotlin.IllegalArgumentException

If the LatLngAltitude is not valid.

validate

public static final void validate(@NonNull LatLngBounds receiver)

Validates a specified LatLngBounds object properties.

Throws
kotlin.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
kotlin.IllegalArgumentException

If the Map3DInitConfig is not valid.

validate

public static final void validate(@NonNull MarkerOptions receiver)

Validates a specified MarkerOptions object.

Throws
kotlin.IllegalArgumentException

If the MarkerOptions is not valid.

validate

public static final void validate(@NonNull ModelOptions receiver)

Validates a specified ModelOptions object.

Throws
kotlin.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
kotlin.IllegalArgumentException

If the Orientation is not valid.

validate

public static final void validate(@NonNull PolygonOptions receiver)

Validates a specified PolygonOptions object.

Throws
kotlin.IllegalArgumentException

if the PolygonOptions is not valid.

validate

public static final void validate(@NonNull PolylineOptions receiver)

Validates a specified PolylineOptions object.

Throws
kotlin.IllegalArgumentException

if the PolylineOptions is not valid.

validate

public static final void validate(@NonNull PopoverOptions receiver)

Validates a specified PopoverOptions object.

Throws
kotlin.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
kotlin.IllegalArgumentException

If the Vector3D is not valid.

validateForModel

public static final void validateForModel(@NonNull Orientation receiver)

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

Throws
kotlin.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.