Credentials

@objc
public class Credentials : NSObject

Container class used to provide credentials both for SitumSDK and Google Maps

  • Mail of the Situm dashboard user

    Declaration

    Swift

    public private(set) var user: String { get }
  • APIKey or password associated with the provided mail

    Declaration

    Swift

    public private(set) var password: String { get }
  • APIKey to use GoogleMaps services

    Declaration

    Swift

    public private(set) var mapsApiKey: String { get }
  • Boolean indicating if auth for SitumSDK will be done with APIKey or password

    Declaration

    Swift

    public private(set) var isApiKey: Bool { get }
  • Inits a Credentials object with user and APIKEY for SitumSDK and APIKEY for GoogleMaps

    Declaration

    Swift

    @objc
    public init(user: String, apiKey: String, googleMapsApiKey: String)

    Parameters

    user

    Mail of the Situm dashboard user

    password

    Apikey associated with the provided mail

    googleMapsApiKey

    APIKey to use GoogleMaps services

  • Inits a Credentials object with user and password for SitumSDK and APIKEY for GoogleMaps

    Declaration

    Swift

    public init(user: String, password: String, googleMapsApiKey: String)

    Parameters

    user

    Mail of the Situm dashboard user

    password

    Password associated with the provided mail

    googleMapsApiKey

    APIKey to use GoogleMaps services