<AGSPortalDelegate> Protocol Reference


Description

A protocol which must be adopted by a class wishing to serve as a delegate for AGSPortal. AGSPortal 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) - portal:didFailToLoadWithError:
(void) - portal:operation:didFailToFindGroupsForQueryParams:withError:
(void) - portal:operation:didFailToFindItemsForQueryParams:withError:
(void) - portal:operation:didFindGroups:
(void) - portal:operation:didFindItems:
(void) - portalDidLoad:

Member Function Documentation

- (void) portal: (AGSPortal *)  portal
didFailToLoadWithError: (NSError *)  error 
[optional]

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

Parameters:
portal The portal that failed to load.
error Information about the cause of the failure.
Since:
2.2
- (void) portal: (AGSPortal *)  portal
operation: (NSOperation *)  op
didFailToFindGroupsForQueryParams: (AGSPortalQueryParams *)  queryParams
withError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while tyring to query groups.

Parameters:
portal The portal on which the query was made.
op The operation that performed the query.
queryParams The query parameters
error Information about the cause of the failure.
Since:
2.2
- (void) portal: (AGSPortal *)  portal
operation: (NSOperation *)  op
didFailToFindItemsForQueryParams: (AGSPortalQueryParams *)  queryParams
withError: (NSError *)  error 
[optional]

Tells the delegate that an error was encountered while tyring to query items.

Parameters:
portal The portal on which the query was made.
op The operation that performed the query.
queryParams The query parameters
error Information about the cause of the failure.
Since:
2.2
- (void) portal: (AGSPortal *)  portal
operation: (NSOperation *)  op
didFindGroups: (AGSPortalQueryResultSet *)  resultSet 
[optional]

Tells the delegate that the query to find groups completed successfully.

Parameters:
portal The portal on which the query was made.
op The operation that performed the query.
resultSet The AGSPortalQueryResultSet containing the results as an array of AGSPortalGroup
Since:
2.2
- (void) portal: (AGSPortal *)  portal
operation: (NSOperation *)  op
didFindItems: (AGSPortalQueryResultSet *)  resultSet 
[optional]

Tells the delegate that the query to find items completed successfully.

Parameters:
portal The portal on which the query was made.
op The operation that performed the query.
resultSet The AGSPortalQueryResultSet containing the results as an array of AGSPortalItem
Since:
2.2
- (void) portalDidLoad: (AGSPortal *)  portal   [optional]

Tells the delegate that the portal was loaded successfully.

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