<AGSPortalItemDelegate> Protocol Reference


Description

A protocol which must be adopted by a class wishing to serve as a delegate for AGSPortalItem. AGSPortalItem informs the delegate when operations complete successfully or encounter an error.

All of the methods of this protocol are optional.

Since:
2.2

List of all members.

Public Member Functions

(void) - portalItem:didFailToLoadWithError:
(void) - portalItem:operation:didFailToFetchCommentsWithError:
(void) - portalItem:operation:didFailToFetchDataWithError:
(void) - portalItem:operation:didFailToFetchThumbnailWithError:
(void) - portalItem:operation:didFetchComments:
(void) - portalItem:operation:didFetchData:
(void) - portalItem:operation:didFetchThumbnail:
(void) - portalItemDidLoad:

Member Function Documentation

- (void) portalItem: (AGSPortalItem *)  portalItem
didFailToLoadWithError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while tyring to load the portal item.

Parameters:
portalItem The portal item that failed to load.
error Information about the cause of the failure.
Since:
2.2
- (void) portalItem: (AGSPortalItem *)  portalItem
operation: (NSOperation *)  op
didFailToFetchCommentsWithError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while trying to fetch the item's comments.

Parameters:
portalItem The portal item for which the comments fetched.
op The operation that performed the fetch.
error Information about the cause of the failure.
Since:
2.2
- (void) portalItem: (AGSPortalItem *)  portalItem
operation: (NSOperation *)  op
didFailToFetchDataWithError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while tyring to fetch the item's data.

Parameters:
portalItem The portal item of which the data was fetched.
op The operation that performed the fetch.
error Information about the cause of the failure.
Since:
2.2
- (void) portalItem: (AGSPortalItem *)  portalItem
operation: (NSOperation *)  op
didFailToFetchThumbnailWithError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while fetching the item's thumbnail.

Parameters:
portalItem The portal item for which the thumbnail was fetched.
op The operation that performed the fetch.
error Information about the cause of the failure.
Since:
2.2
- (void) portalItem: (AGSPortalItem *)  portalItem
operation: (NSOperation *)  op
didFetchComments: (NSArray *)  comments 
[optional]

Tells the delegate that the item's comments were fetched successfully.

Parameters:
portalItem The portal item for which the comments were fetched.
op The operation that performed the fetch.
comments The comments.
Since:
2.2
- (void) portalItem: (AGSPortalItem *)  portalItem
operation: (NSOperation *)  op
didFetchData: (NSData *)  data 
[optional]

Tells the delegate that item's data was fetched successfully.

Parameters:
portalItem The portal item of which the data was fetched.
op The operation that performed the fetch.
data The NSData that was retrieved.
Since:
2.2
- (void) portalItem: (AGSPortalItem *)  portalItem
operation: (NSOperation *)  op
didFetchThumbnail: (UIImage *)  thumbnail 
[optional]

Tells the delegate that the item's thumbnail was fetched successfully.

Parameters:
portalItem The portal item for which the thumbnail was fetched.
op The operation that performed the fetch.
thumbnail The thumbnail image file.
Since:
2.2
- (void) portalItemDidLoad: (AGSPortalItem *)  portalItem   [optional]

Tells the delegate that the portal item was loaded successfully.

Parameters:
portalItem The portalItem that was loaded.
Since:
2.2