VOYoutubeManagerProtocol

@protocol VOYoutubeManagerProtocol

VOYoutubeManagerProtocol is the interface responsible for getting Youtube Videos.

  • Searches youtube with a specific query string.

    Declaration

    Objective-C

    - (void)requestYoutubeMediasMatchingQueryString:(NSString *)queryString
                                              token:(NSString *)token
                                            success:(void (^)(
                                                        NSArray<VOYouTubeMedia *> *,
                                                        NSString *))onSuccess
                                            failure:(void (^)(NSError *))onError;

    Swift

    func requestYoutubeMedias(matchingQueryString queryString: Any!, token: Any!, success onSuccess: ((Int32) -> Void)!, failure onError: ((UnsafeMutablePointer<Int32>?) -> Void)!)

    Parameters

    queryString

    - search term for the request

    token

    - Youtube API token.

    onSuccess

    - success block that returns a list of VOYouTubeMedias and a pageUrl string if the request completes successfully.

    onError

    - error block if the request does not complete successfully.