SBBSurveyManager Class Reference

Inherits from SBBBridgeAPIManager : NSObject
Conforms to SBBComponent
SBBSurveyManagerProtocol
Declared in SBBSurveyManager.h
SBBSurveyManager.m

Overview

This class handles communication with the Bridge surveys API.

– getSurveyByRef:completion:

This is a convenience method that assumes the default caching policy, which is SBBCachingPolicyCheckCacheFirst, if caching is enabled.

- (NSURLSessionTask *)getSurveyByRef:(NSString *)ref completion:(SBBSurveyManagerGetCompletionBlock)completion

Declared In

SBBSurveyManager.h

– getSurveyByRef:cachingPolicy:completion:

Fetch a survey from the Bridge API via an activityRef (href).

- (NSURLSessionTask *)getSurveyByRef:(NSString *)ref cachingPolicy:(SBBCachingPolicy)policy completion:(SBBSurveyManagerGetCompletionBlock)completion

Parameters

ref

The href identifying the desired survey, obtained e.g. from the Schedules or Activities API.

policy

Caching policy to use (ignored if the SDK was initialized with useCache=NO).

completion

An SBBSurveyManagerGetCompletionBlock to be called upon completion.

Return Value

An NSURLSessionTask object so you can cancel or suspend/resume the request.

Declared In

SBBSurveyManager.h