FlyToOptions

public class FlyToOptions implements Parcelable


Represents the camera preset, fly to, in a 3D map.

Summary

Constants

static final Parcelable.Creator<FlyToOptions>

Public fields

long
Camera

Public constructors

FlyToOptions(Camera endCamera, long durationInMillis)

Constructor for FlyToOptions with parameters for required fields.

Public methods

long

The duration of the fly to animation in milliseconds.

Camera

The camera view at the end of the fly to animation.

void
setDurationInMillis(long durationInMillis)

Sets the duration of the fly to animation in milliseconds.

void
setEndCamera(Camera endCamera)

Sets the camera view at the end of the fly to animation.

void
writeToParcel(Parcel dest, int flags)

Extension functions

final void

Validates a specified FlyToOptions 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<FlyToOptionsCREATOR

Public fields

durationInMillis

public long durationInMillis

endCamera

public Camera endCamera

Public constructors

FlyToOptions

public FlyToOptions(Camera endCamera, long durationInMillis)

Constructor for FlyToOptions with parameters for required fields.

Parameters
Camera endCamera

The camera view at the end of the fly to animation.

long durationInMillis

The duration of the fly to animation in milliseconds.

Public methods

getDurationInMillis

public long getDurationInMillis()

The duration of the fly to animation in milliseconds.

getEndCamera

public Camera getEndCamera()

The camera view at the end of the fly to animation.

setDurationInMillis

public void setDurationInMillis(long durationInMillis)

Sets the duration of the fly to animation in milliseconds.

setEndCamera

public void setEndCamera(Camera endCamera)

Sets the camera view at the end of the fly to animation.

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Extension functions

ValidatorsKt.validate

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

Validates a specified FlyToOptions object.

Throws
java.lang.IllegalArgumentException

If the FlyToOptions is not valid.