MapboxOptions

Configuration object for Mapbox Maps SDK For Android.

object MapboxOptions

Functions

createResourceOptions
Link copied to clipboard

Create resource options

fun createResourceOptions(context: Context, accessToken: String): ResourceOptions
fun createResourceOptions(accessToken: String, cachePath: String): ResourceOptions
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getDefaultResourceOptions
Link copied to clipboard

Get the default resource options

fun getDefaultResourceOptions(context: Context, accessToken: String?): ResourceOptions
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isInitialized
Link copied to clipboard

Returns if the default resource options have been initialised.

fun isInitialized(): Boolean
setDefaultResourceOptions
Link copied to clipboard

Override the default used resource options given a ResourceOptions configuration object. This allows to have full control over the location of the database.

fun setDefaultResourceOptions(resourceOptions: ResourceOptions)

Override the default used resource options given a context and access token. This function allows you to use standard configuration, Context is used to look up the app specific directories. Access token is used to authenticate with Mapbox API endpoints.

fun setDefaultResourceOptions(context: Context, accessToken: String): ResourceOptions
toString
Link copied to clipboard
open override fun toString(): String