Other Classes

The following classes are available globally.

  • Model used to describe a location address.

    See more

    Declaration

    Swift

    public class SWAddress : NSObject, Codable
  • This model is used to describe a booking that a user has made. It will be returned in the raiseIssueWithBooking delegate callback contained in SplytWidgetDelegate.

    See more

    Declaration

    Swift

    public class SWBooking : NSObject, Codable
  • Model used to describe a driver.

    See more

    Declaration

    Swift

    public class SWDriver : NSObject, Codable
  • Model used to describe the receipt of a booking.

    See more

    Declaration

    Swift

    public class SWReceipt : NSObject, Codable
  • Model used to describe the payment method used by a widget user when booking a ride.

    See more

    Declaration

    Swift

    public class SWPaymentMethod : NSObject, Codable
  • Model used to describe a status transition of the booking.

    See more

    Declaration

    Swift

    public class SWStatusTransition : NSObject, Codable
  • Model used to describe a vehicle.

    See more

    Declaration

    Swift

    public class SWVehicle : NSObject, Codable
  • This model describes the configuration settings for the SplytWidget. It should be created using the SWConfigurationBuilder.

    See more

    Declaration

    Swift

    public class SWConfiguration : NSObject, Codable
  • This is a model returned by the SplytWidget when errors have occured. The code and message can be used to understand what caused the error.

    See more

    Declaration

    Swift

    @objc
    public class SWError : NSObject
  • This model is used to describe a location. The model has various uses with the SplytWidget.

    See more

    Declaration

    Swift

    @objc
    public class SWLocation : NSObject, Codable
  • This model allows you to pre-configure the ride options for the user. This can be used to set the userId, pick up, drop off and payment methods.

    See more

    Declaration

    Swift

    @objc
    public class SWRideParameters : NSObject, Codable