VehicleBeacon

@objc(ZDVehicleBeacon)
public class VehicleBeacon : NSObject

This class represents a unique combination of beacon and vehicleId. It is used to identify the beacons that are used to tag the trip with vehicle.

  • This should not be nil, should not have more than 64 characters and should satisfy Zendrive.isValidInputParameter(_:).

    Declaration

    Swift

    @objc
    public var vehicleId: String
  • The Beacon object that encapsulates the UUID, major, minor of the beacon device that is placed in the vehicle.

    Declaration

    Swift

    @objc
    public var beacon: Beacon
  • Initializer for VehicleBeacon.

    Declaration

    Swift

    @objc
    public init(vehicleId: String, beacon: Beacon)

    Parameters

    vehicleId

    The identifier of the vehicle.

    beacon

    The Beacon object which enapsulates the beacon attributes.

  • Undocumented

    Declaration

    Swift

    @objc
    public override func isEqual(_ other: Any?) -> Bool