IKImageBrowserDataSource Protocol

The IKImageBrowserDataSource informal protocol declares the methods that an instance of the IKImageBrowserView class uses to access the contents of its data source object.


Providing Information About Items (Required)

func numberOfItems(inImageBrowser: IKImageBrowserView!) -> Int

Returns the number of records managed by the data source object.

func imageBrowser(IKImageBrowserView!, itemAt: Int) -> Any!

Returns an object for the item in an image browser view that corresponds to the specified index.

Supporting Item Editing (Optional)

func imageBrowser(IKImageBrowserView!, removeItemsAt: IndexSet!)

Signals that a remove operation should be applied to the specified items.

func imageBrowser(IKImageBrowserView!, moveItemsAt: IndexSet!, to: Int) -> Bool

Signals that the specified items should be moved to the specified destination.

Providing Information About Groups (Optional)

func numberOfGroups(inImageBrowser: IKImageBrowserView!) -> Int

Returns the number of groups in an image browser view.