SPTAppRemoteContentAPI Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SPTAppRemoteContentAPI.h |
– fetchRecommendedContentItemsForType:callback:
required method
Fetches the root level of content items for the current user.
- (void)fetchRecommendedContentItemsForType:(SPTAppRemoteContentType)contentType callback:(nullable SPTAppRemoteCallback)callback
Parameters
contentType |
A type that is used to retrieve content for a specific purpose. |
---|---|
callback |
The callback to be called once the request is completed. |
Discussion
Note: The content returned is based on the users' home feeds, and as such may vary between different users.
Declared In
SPTAppRemoteContentAPI.h
– fetchChildrenOfContentItem:callback:
required method
Fetches the children items for the provided content item.
- (void)fetchChildrenOfContentItem:(id<SPTAppRemoteContentItem>)contentItem callback:(nullable SPTAppRemoteCallback)callback
Parameters
contentItem |
The content item to fetch the children for. |
---|---|
callback |
The callback to be called once the request is completed. |
Discussion
Note: The isContainer
property of the SPTAppRemoteContentItem
indicates whether or not the item has any children.
Declared In
SPTAppRemoteContentAPI.h