SCAbstractItemsBrowser Class Reference
| 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
- Subclass SCAbstractItemsBrowser
- Add a content view for items
- Implement the delegate and datasource methods of the content view.
- Implement the methods of the SCAbstractItemsBrowserSubclassing protocol and trigger the content view within them
For details, please consider the implementation of
Tasks
Other Methods
-
apiSessionThe session to communicate with the Sitecore instance. It can be set from code only.
property -
rootItemAn item to start browsing with. It can be set from code only.
property -
nextLevelRequestBuilderSet this object to perform filtration by template or any other criteria.
property
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. -
delegateA delegate that gets notifications about levels loading.
property
It can be set from the Interface Builder.
Other Methods
-
– reloadDataReloads items using default settings of SCApiSession.
-
– forceRefreshDataReloads items by activating the SCReadItemRequestIngnoreCache flag.
-
– navigateToRootItemLoads child items of the root item using default settings of SCApiSession.
Properties
apiSession
The session to communicate with the Sitecore instance. It can be set from code only.
@property (nonatomic, strong) SCExtendedApiSession *apiSessionDeclared In
SCAbstractItemsBrowser.hdelegate
A delegate that gets notifications about levels loading.
It can be set from the Interface Builder.
@property (nonatomic, weak) IBOutlet id<SCItemsBrowserDelegate> delegateDeclared In
SCAbstractItemsBrowser.hnextLevelRequestBuilder
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> nextLevelRequestBuilderDeclared In
SCAbstractItemsBrowser.hInstance Methods
forceRefreshData
Reloads items by activating the SCReadItemRequestIngnoreCache flag.
- (void)forceRefreshDataDeclared In
SCItemsBrowserProtocol.h