class UnderOs::UI::Collection::Delegate
The iOS level events receiver, not for a public use
Public Class Methods
new(collection)
click to toggle source
# File lib/under_os/ui/collection/delegate.rb, line 6 def self.new(collection) alloc.tap do |instance| instance.instance_eval do @collection = collection end end end
Public Instance Methods
collectionView(collection, numberOfItemsInSection: section)
click to toggle source
# File lib/under_os/ui/collection/delegate.rb, line 22 def collectionView(collection, numberOfItemsInSection: section) @collection.number_of_items(section) end
numberOfSectionsInCollectionView(collection)
click to toggle source
DataSource API
# File lib/under_os/ui/collection/delegate.rb, line 18 def numberOfSectionsInCollectionView(collection) @collection.number_of_sections end