Inherits from NSObject
Conforms to SCItemsBrowserInitialization
SCItemsBrowserProtocol
Declared in SCAbstractItemsBrowser.h
SCAbstractItemsBrowser.m

Overview

An abstract items browser class. It is responsible for requesting levels asynchronously and notifying the delegate about user’s actions.

In order to implement your own component, you should

  1. Subclass SCAbstractItemsBrowser
  2. Add a content view for items
  3. Implement the delegate and datasource methods of the content view.
  4. Implement the methods of the SCAbstractItemsBrowserSubclassing protocol and trigger the content view within them

For details, please consider the implementation of

Tasks

Other Methods

  •   apiSession

    The session to communicate with the Sitecore instance. It can be set from code only.

    property
  •   rootItem

    An item to start browsing with. It can be set from code only.

    property
  •   nextLevelRequestBuilder

    Set this object to perform filtration by template or any other criteria.
    It can be set from the Interface Builder. For default behaviour (getting all children of the item) please use an instance of the SIBAllChildrenRequestBuilder class.

    property
  •   delegate

    A delegate that gets notifications about levels loading.
    It can be set from the Interface Builder.

    property

Other Methods

Properties

apiSession

The session to communicate with the Sitecore instance. It can be set from code only.

@property (nonatomic, strong) SCExtendedApiSession *apiSession

Declared In

SCAbstractItemsBrowser.h

delegate

A delegate that gets notifications about levels loading.
It can be set from the Interface Builder.

@property (nonatomic, weak) IBOutlet id<SCItemsBrowserDelegate> delegate

Declared In

SCAbstractItemsBrowser.h

nextLevelRequestBuilder

Set this object to perform filtration by template or any other criteria.
It can be set from the Interface Builder. For default behaviour (getting all children of the item) please use an instance of the SIBAllChildrenRequestBuilder class.

@property (nonatomic, weak) IBOutlet id<SCItemsLevelRequestBuilder> nextLevelRequestBuilder

Declared In

SCAbstractItemsBrowser.h

rootItem

An item to start browsing with. It can be set from code only.

@property (nonatomic, strong) SCItem *rootItem

Declared In

SCAbstractItemsBrowser.h

Instance Methods

forceRefreshData

Reloads items by activating the SCReadItemRequestIngnoreCache flag.

- (void)forceRefreshData

Declared In

SCItemsBrowserProtocol.h

navigateToRootItem

Loads child items of the root item using default settings of SCApiSession.

- (void)navigateToRootItem

Declared In

SCItemsBrowserProtocol.h

reloadData

Reloads items using default settings of SCApiSession.

- (void)reloadData

Declared In

SCItemsBrowserProtocol.h