SWRLContentManagerDelegate Protocol Reference

Conforms to NSObject
Declared in SWRLContentManager.h

Overview

The SWRLContentManagerDelegate protocol defines the methods used to receive beacon update from the SWRLContentManager. Upon receiving a content event, you can use the result to update your user interface or perform other actions. The methods of your delegate object are called from the thread associated with the dispatch queue that you used when you added the delegate. See addDelegate:queue: addDelegate:queue:)

– contentManager:didRequestContentForVisit:

Tells the delegate that a content request was made in response to a visit event.

- (void)contentManager:(SWRLContentManager *)manager didRequestContentForVisit:(SWRLVisit *)visit

Parameters

manager

The SWRLContentManager reporting the event

visit

The visit object that triggered the content request.

Declared In

SWRLContentManager.h

– contentManager:didReceiveContentURL:

Tells the delegate that content of type URL has been received.

- (void)contentManager:(SWRLContentManager *)manager didReceiveContentURL:(SWRLContent *)content

Parameters

manager

The SWRLContentManager reporting the event

content

The content object that was received.

Declared In

SWRLContentManager.h

– contentManager:didReceiveContentSwirl:

Tells the delegate that content of type Swirl has been received.

- (void)contentManager:(SWRLContentManager *)manager didReceiveContentSwirl:(SWRLContent *)content

Parameters

manager

The SWRLContentManager reporting the event

content

The content object that was received.

Declared In

SWRLContentManager.h

– contentManager:didReceiveContentCustom:completion:

Tells the delegate that content of type Custom has been received (asynch version) which allows custom content to go out to another server before completing.

- (void)contentManager:(SWRLContentManager *)manager didReceiveContentCustom:(SWRLContent *)content completion:(void ( ^ ) ( SWRLContent *content ))completion

Parameters

manager

The SWRLContentManager reporting the event

content

The content object that was received.

completion

called when content is ready (content passed here may be different from original content)

Declared In

SWRLContentManager.h

– contentManager:didShowContentViewController:

Tells the delegate that the content view controller has been shown

- (void)contentManager:(SWRLContentManager *)manager didShowContentViewController:(SWRLContentViewController *)controller

Parameters

manager

The SWRLContentManager reporting the event

controller

The SWRLContentViewController

Declared In

SWRLContentManager.h

– contentManager:didDismissContentViewController:

Tells the delegate that the content view controller has been closed.

- (void)contentManager:(SWRLContentManager *)manager didDismissContentViewController:(SWRLContentViewController *)controller

Parameters

manager

The SWRLContentManager reporting the event

controller

The SWRLContentViewController

Declared In

SWRLContentManager.h