SWConfiguration
public class SWConfiguration : NSObject, Codable
This model describes the configuration settings for the SplytWidget.
It should be created using the SWConfigurationBuilder.
-
Should the widget ask for the permission to access user location.
Declaration
Swift
@objc public internal(set) var shouldAskLocationPermission: Bool -
Your unique partnerId.
Declaration
Swift
@objc public internal(set) var partnerId: String? -
The default location to use for the Widget. This is used if if the widget can’t access GPS.
Declaration
Swift
@objc public internal(set) var defaultLocation: SWLocation? -
Preconfigure the ride options for the widget.
Declaration
Swift
@objc public internal(set) var rideParameters: SWRideParameters? -
The language in which to localise the text inside the widget.
Declaration
Swift
@objc public internal(set) var locale: String? -
Set which Widget enviornment to use.
Declaration
Swift
@objc public internal(set) var environment: SWEnvironment -
Log level used by widget, default is off. All logs are off in release builds.
Declaration
Swift
@objc public internal(set) var logLevel: SWLogLevel -
Primary Color, used for Navigation Bar and Buttons.
Declaration
Swift
@objc public internal(set) var primaryColor: String? -
Secondary Color, used for text.
Declaration
Swift
@objc public internal(set) var secondaryColor: String? -
No internet error message text.
Declaration
Swift
@objc public internal(set) var noInternetErrorMessage: String? -
Default error message text.
Declaration
Swift
@objc public internal(set) var defaultErrorMessage: String? -
Try again button text.
Declaration
Swift
@objc public internal(set) var tryAgainButtonTitle: String?
SWConfiguration Class Reference