Init

@Serializable
data class Init @JvmOverloads constructor(    val clientId: String = "",     val clientSecret: String = "",     val venue: String = "",     val perspective: String? = "Website",     val baseUrl: String = "",     val noAuth: Boolean = false,     val firstMapId: String? = null,     val headers: List<MPIHeader>? = null,     val useBundle: Boolean? = false,     val emitAnalyticsEvents: Boolean? = true,     val useDraftData: Boolean? = false,     val language: String? = null)

This class hold the properties of values to be used when initialzing a map

Constructors

Link copied to clipboard
fun Init(    clientId: String = "",     clientSecret: String = "",     venue: String = "",     perspective: String? = "Website",     baseUrl: String = "",     noAuth: Boolean = false,     firstMapId: String? = null,     headers: List<MPIHeader>? = null,     useBundle: Boolean? = false,     emitAnalyticsEvents: Boolean? = true,     useDraftData: Boolean? = false,     language: String? = null)

Properties

Link copied to clipboard
val baseUrl: String

Base url string of the venue

Link copied to clipboard
val clientId: String

Client id provided to you by Mappedin to access our API- Note: Contact your Mappedin representative if you do not have one.

Link copied to clipboard
val clientSecret: String

Client secret provided to you by Mappedin to access our API- Note: Contact your Mappedin representative if you do not have one.

Link copied to clipboard
val emitAnalyticsEvents: Boolean? = true

Whether analytics events should be sent.

Link copied to clipboard
val firstMapId: String? = null

Set the first map with first map id when showing the venue

Link copied to clipboard
val headers: List<MPIHeader>? = null

An array of MPIHeader for requests

Link copied to clipboard
val language: String? = null

Language to load. Accepts an ISO 639-1 language code.

Link copied to clipboard
val noAuth: Boolean = false

Boolean value of whether there is no authorization

Link copied to clipboard
val perspective: String?

Perspective of the venue

Link copied to clipboard
val useBundle: Boolean? = false

Use a bundle for venue loading and cache it for faster subsequent loading

Link copied to clipboard
val useDraftData: Boolean? = false

Whether a draft map should be loaded. Default is false.

Link copied to clipboard
val venue: String

Name string of your venue