Conforms to NSObject
Declared in SCItemsBrowserDelegate.h

Overview

Implement this protocol to receive items browsing events from the controller.

Tasks

Instance Methods

itemsBrowser:didLoadLevelForItem:

This method notifies about successful level load for the item selected by the user.

- (void)itemsBrowser:(id)sender didLoadLevelForItem:(SCItem *)levelParentItem

Parameters

sender

One of the items browser controllers below.

levelParentItem

The root of a successfully loaded level of items.

Declared In

SCItemsBrowserDelegate.h

itemsBrowser:didReceiveLevelProgressNotification:

This event is called whenever some event in request processing occurs. For example,

- (void)itemsBrowser:(id)sender didReceiveLevelProgressNotification:(id)progressInfo

Parameters

sender

One of the items browser controllers below.
* SCItemListBrowser
* SCItemGridBrowser

progressInfo

At the moment there is no single class that holds the progress information. To be defined…

Discussion

  • HTTP request has been sent
  • HTTP response has neen received
  • Responce has been cached
  • etc.

Declared In

SCItemsBrowserDelegate.h

itemsBrowser:levelLoadingFailedWithError:

This method is called when a given level has failed to load.

- (void)itemsBrowser:(id)sender levelLoadingFailedWithError:(NSError *)error

Parameters

sender

One of the items browser controllers below.

error

An error object received from the Mobile SDK.

Declared In

SCItemsBrowserDelegate.h

itemsBrowser:shouldLoadLevelForItem:

This method is called to determine whether the browser should navigate down for this item.
You can use it either to restrict the user from not seeing some branches of the content tree or to define some custom parent-child item relationships.

- (BOOL)itemsBrowser:(id)sender shouldLoadLevelForItem:(SCItem *)levelParentItem

Parameters

sender

One of the items browser controllers below.

levelParentItem

An item selected by the user.

Return Value

YES if the item is considered to have child items.

Declared In

SCItemsBrowserDelegate.h