ADEumCollectorChannel Protocol Reference

Conforms to NSObject
Declared in ADEumCollectorChannel.h

Overview

Protocol for customizing the connection between the agent SDK and the collector.

– sendSynchronousRequest:returningResponse:error: required method

Sends a request synchronously and returns the response recieved, or an error.

- (NSData *ADEUM_NULLABLE)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse *ADEUM_NULLABLE *ADEUM_NULLABLE)response error:(NSError **)error

Parameters

request

The URL request to load.

response

Out parameter for the URL response returned by the server.

error

Out parameter used if an error occurs while processing the request. May be NULL.

Discussion

The semantics of this method are exactly equivalient to NSURLConnection’s sendSynchronousRequest:returningResponse:error: method.

Declared In

ADEumCollectorChannel.h