VOCannedSoundManagerProtocol

@protocol VOCannedSoundManagerProtocol

VOCannedSoundManagerProtocol is the interface responsible for getting prerecorded sounds from the Vouchr server.

  • Searches youtube with a specific query string.

    Declaration

    Objective-C

    - (void)getCannedSoundsWithLimit:(NSInteger)limit
                             success:(void (^)(
                                         NSDictionary<NSString *,
                                                      NSArray<VOSoundMedia *> *> *))
                                         onSuccess
                               error:(void (^)(NSError *))onError;

    Swift

    func getCannedSounds(withLimit limit: Any!, success onSuccess: ((Int32) -> Void)!, error onError: ((UnsafeMutablePointer<Int32>?) -> Void)!)

    Parameters

    limit

    -

    onSuccess

    - success block that returns an NSDictionary of VOSoundMedias if the request completes successfully.

    onError

    - error block if the request does not complete successfully.