ViewportData

class ViewportData @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX]) constructor(val cameraForFollowing: CameraOptions, val cameraForOverview: CameraOptions, val cameraForPointsOverview: CameraOptions = cameraForOverview)

Data object that carries the camera frames that NavigationCamera uses for transitions and continuous updates.

Constructors

Link copied to clipboard
constructor(cameraForFollowing: CameraOptions, cameraForOverview: CameraOptions)

Creates a ViewportData for sources that do not distinguish points overview: cameraForPointsOverview is set to cameraForOverview.

constructor(cameraForFollowing: CameraOptions, cameraForOverview: CameraOptions, cameraForPointsOverview: CameraOptions = cameraForOverview)

Properties

Link copied to clipboard
val cameraForFollowing: CameraOptions

Target camera frame to use when transitioning to FOLLOWING or for continuous updates when already in FOLLOWING state.

Link copied to clipboard
val cameraForOverview: CameraOptions

Target camera frame to use for the route overview - when transitioning to OVERVIEW or for continuous updates when already in OVERVIEW state.

Link copied to clipboard

Target camera frame to use for the points overview (framing an arbitrary set of points), which is reported publicly as OVERVIEW.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.