|
9 | 9 | #import <XCDYouTubeKit/XCDYouTubeError.h>
|
10 | 10 |
|
11 | 11 | /**
|
12 |
| - * The `XCDYouTubeClient` class is responsible for interacting with the YouTube API. Given a YouTube video identifier, you will get video information with the `-getVideoWithIdentifier:completionHandler:` method. |
| 12 | + * The `XCDYouTubeClient` class is responsible for interacting with the YouTube API. Given a YouTube video identifier, you will get video information with the `<-getVideoWithIdentifier:completionHandler:>` method. |
13 | 13 | *
|
14 |
| - * On iOS, you probably don’t want to use `XCDYouTubeClient` directly but the higher level class `XCDYouTubeVideoPlayerViewController`. |
| 14 | + * On iOS, you probably don’t want to use `XCDYouTubeClient` directly but the higher level class `<XCDYouTubeVideoPlayerViewController>`. |
15 | 15 | */
|
16 | 16 | @interface XCDYouTubeClient : NSObject
|
17 | 17 |
|
|
62 | 62 | * @param videoIdentifier A 11 characters YouTube video identifier. If the video identifier is invalid (including nil) the completion handler will be called with an error with `XCDYouTubeVideoErrorDomain` domain and `XCDYouTubeErrorInvalidVideoIdentifier` code.
|
63 | 63 | * @param completionHandler A block to execute when the client finishes the operation. The completion handler is executed on the main thread. If the completion handler is nil, this method throws an exception.
|
64 | 64 | *
|
65 |
| - * @discussion If the operation completes successfully, the video parameter of the handler block contains a `XCDYouTubeVideo` object, and the error parameter is nil. If the operation fails, the video parameter is nil and the error parameter contains information about the failure. The error's domain is always `XCDYouTubeVideoErrorDomain`. |
| 65 | + * @discussion If the operation completes successfully, the video parameter of the handler block contains a `<XCDYouTubeVideo>` object, and the error parameter is nil. If the operation fails, the video parameter is nil and the error parameter contains information about the failure. The error's domain is always `XCDYouTubeVideoErrorDomain`. |
66 | 66 | *
|
67 | 67 | * @see XCDYouTubeErrorCode
|
68 | 68 | *
|
69 |
| - * @return An opaque object conforming to the `XCDYouTubeOperation` protocol for canceling the asynchronous video information operation. If you call the `cancel` method before the operation is finished, the completion handler will not be called. It is recommended that you store this opaque object as a weak property. |
| 69 | + * @return An opaque object conforming to the `<XCDYouTubeOperation>` protocol for canceling the asynchronous video information operation. If you call the `cancel` method before the operation is finished, the completion handler will not be called. It is recommended that you store this opaque object as a weak property. |
70 | 70 | */
|
71 | 71 | - (id<XCDYouTubeOperation>) getVideoWithIdentifier:(NSString *)videoIdentifier completionHandler:(void (^)(XCDYouTubeVideo *video, NSError *error))completionHandler __attribute__((nonnull(2)));
|
72 | 72 |
|
|
0 commit comments