ALBusSeatViewDataSource
public protocol ALBusSeatViewDataSource
This protocol represents the data model of seatView
-
Asks the data source to return seat type given indexPath of seatView
Declaration
Swift
func seatView(_ seatView: ALBusSeatView, seatTypeForIndex indexPath: IndexPath) -> ALBusSeatTypeParameters
seatViewSeatView requesting the seatType
indexPathIndexpath indicating a seat in seatView
-
Asks the data source to return seat number text given indexPath of seatView
Declaration
Swift
func seatView(_ seatView: ALBusSeatView, seatNumberForIndex indexPath: IndexPath) -> StringParameters
seatViewSeatView requesting the seat number text
indexPathIndexpath indicating a seat in seatView
-
Asks the data source to return number of section given seatView
Declaration
Swift
func numberOfSections(in seatView: ALBusSeatView) -> IntParameters
seatViewSeatView requesting the number of section
-
Asks the data source to return number of seat in a given section of a seatView
Declaration
Swift
func seatView(_ seatView: ALBusSeatView, numberOfSeatInSection section: Int) -> IntParameters
seatViewSeatView requesting the number of seat given section
sectionAn index number indicating a section in seatView
ALBusSeatViewDataSource Protocol Reference