About Discovery for iOS Native Apps

The SDK now includes support for Discovery.

The OODiscoveryManager class inherits from NSObject:

            @interface OODiscoveryManager : NSObject
            

A callback is used for OODiscoveryManager to notify the Discovery results, defined by

            typedef void(^OODiscoveryResultsCallback)(NSArray *results, OOOoyalaError *error);
            

It takes parameters results (an array of Discovery results) and error (an OOOyalaError object to capture a possible error). These are output parameters.

The OODiscoveryManager class includes the following methods:

Table 1. Discovery Methods
Class Method Description
getResults Use this method to get Discovery results for a specific asset. For more information see Get Discovery Results for iOS Native.
sendImpression Use this method to send Discovery feedback when a video recommendation is displayed. For more information see Send Discovery Impressions for iOS Native.
sendClick Use this method to send Discovery feedback when a recommended video is accessed. For more information see Send Discovery Click Notifications for iOS Native.

Was this article helpful?