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
-
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.
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. -
delegate
A delegate that gets notifications about levels loading.
property
It can be set from the Interface Builder.
Other Methods
-
– reloadData
Reloads items using default settings of SCApiSession.
-
– forceRefreshData
Reloads items by activating the SCReadItemRequestIngnoreCache flag.
-
– navigateToRootItem
Loads 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 *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
Instance Methods
forceRefreshData
Reloads items by activating the SCReadItemRequestIngnoreCache flag.
- (void)forceRefreshData
Declared In
SCItemsBrowserProtocol.h