CredentialsManager

Convenience class that holds MapboxMap related token. CredentialsManager could be created per MapView instance if given view should use some specific token. Most common use-case when all MapViews should use same token could be handled by using CredentialsManager.shared static object.

data class CredentialsManager(accessToken: String?)

Constructors

CredentialsManager
Link copied to clipboard
fun CredentialsManager(accessToken: String?)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

copy
Link copied to clipboard
fun copy(accessToken: String?): CredentialsManager
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getAccessToken
Link copied to clipboard

Get the access token. If the supplied token is null (which is the use-case for the shared), then we will search for an access token in the application resources.

fun getAccessToken(context: Context): String
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setAccessToken
Link copied to clipboard

Set a token as the default one.

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