Protocol

IKSlideshowDataSource

The IKSlideshowDataSource protocol describes the methods that an IKSlideshow object uses to access the contents of its data source object.

Declaration

protocol IKSlideshowDataSource

Overview

Topics

Providing Slideshow Information

func numberOfSlideshowItems() -> Int

Returns the number of items in a slideshow.

Required.

func slideshowItem(at: Int) -> Any!

Returns the item for a given index

Required.

func nameOfSlideshowItem(at: Int) -> String!

Returns the display name for item at the specified index.

func canExportSlideshowItem(at: Int, toApplication: String!) -> Bool

Reports whether the export button should be enabled for a slideshow item.

Performing Custom Tasks

func slideshowWillStart()

Performs custom tasks when the slideshow is about to start.

func slideshowDidStop()

Performs custom tasks when the slideshow stops.

func slideshowDidChangeCurrentIndex(Int)

Performs custom tasks when the slideshow changes to the item at the specified index.