ModelOptions

class ModelOptions : Parcelable


Model options class to represent the options for a 3D model object within a 3D map scene.

Summary

Public constructors

Default constructor for ModelOptions.

ModelOptions(
    id: String!,
    position: LatLngAltitude!,
    url: String!,
    @AltitudeMode altitudeMode: Int,
    scale: Vector3D!,
    orientation: Orientation!
)

Constructor for ModelOptions with parameters for required fields.

Public functions

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

Extension functions

Unit

Validates a specified ModelOptions object.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<ModelOptions!>!

Public constructors

ModelOptions

ModelOptions()

Default constructor for ModelOptions.

ModelOptions

ModelOptions(
    id: String!,
    position: LatLngAltitude!,
    url: String!,
    @AltitudeMode altitudeMode: Int,
    scale: Vector3D!,
    orientation: Orientation!
)

Constructor for ModelOptions with parameters for required fields.

Parameters
id: String!

The unique identifier of the model.

position: LatLngAltitude!

The position of the model.

url: String!

The url of the 3D model asset to use.

@AltitudeMode altitudeMode: Int

The altitude mode of the model.

scale: Vector3D!

The scale of the model.

orientation: Orientation!

The orientation of the model.

Public functions

writeToParcel

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

Public properties

altitudeMode

var altitudeModeInt

id

var idString!

orientation

var orientationOrientation!

position

var positionLatLngAltitude!

scale

var scaleVector3D!

url

var urlString!

Extension functions

validate

fun ModelOptions.validate(): Unit

Validates a specified ModelOptions object.

Throws
java.lang.IllegalArgumentException

If the ModelOptions is not valid.