SBBActivityEventManagerProtocol Protocol Reference

Conforms to SBBBridgeAPIManagerProtocol
Declared in SBBActivityEventManager.h

Overview

This protocol defines the interface to the SBBActivityEventManager’s non-constructor, non-initializer methods. The interface is abstracted out for use in mock objects for testing, and to allow selecting among multiple implementations at runtime.

– createActivityEvent:withTimestamp:completion: required method

Create an activity event in Bridge.

- (nullable NSURLSessionTask *)createActivityEvent:(NSString *)eventKey withTimestamp:(NSDate *)timestamp completion:(nullable SBBActivityEventManagerCompletionBlock)completion

Parameters

eventKey

The event key for the activity event.

timestamp

The date/time with which to timestamp the event.

completion

An SBBActivityEventManagerCompletionBlock to be called upon completion. Optional.

Return Value

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

Declared In

SBBActivityEventManager.h

– getActivityEvents: required method

Get all the activity events for this participant from Bridge.

- (nullable NSURLSessionTask *)getActivityEvents:(nullable SBBActivityEventManagerGetCompletionBlock)completion

Parameters

completion

An SBBActivityEventManagerGetCompletionBlock to be called upon completion.

Return Value

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

Declared In

SBBActivityEventManager.h