SWRideParametersBuilder
@objc
public class SWRideParametersBuilder : NSObject
This builder is used to create an immutable SWRideParameters instance.
-
Set the
idfor the user of the widget.Declaration
Swift
@objc public func set(userId: String) -> SWRideParametersBuilder -
Set a pickup location. Leave blank and the user will need to select a pickup.
Declaration
Swift
@objc public func set(pickupLocation: SWLocation) -> SWRideParametersBuilder -
Set a dropoff location. Leave blank and the user will need to select a dropoff location.
Declaration
Swift
@objc public func set(dropoffLocation: SWLocation) -> SWRideParametersBuilder -
Set a flight number that will be associated with the booking.
Declaration
Swift
@objc public func set(flightNumber: String) -> SWRideParametersBuilder -
Set a booking id from your system that will be associcated with the booking.
Declaration
Swift
@objc public func set(clientBookingId: String) -> SWRideParametersBuilder -
Set metadata to be associated with the booking.
Declaration
Swift
@objc public func set(metadata: [String : String]) -> SWRideParametersBuilder -
Set a deeplink url. Widget will append this to the loaded app path. This should only ever be set with values sent from Widget to your CWIS integration.
Declaration
Swift
@objc public func set(deeplink: String) -> SWRideParametersBuilder
-
Build an immutable instance of
SWRideParametersDeclaration
Swift
@objc public func build() -> SWRideParameters
SWRideParametersBuilder Class Reference