Skip to content

Commit 5225034

Browse files
committed
Use explicit cross references in documentation
1 parent 7fef20b commit 5225034

6 files changed

+12
-11
lines changed

.cocoadocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
explicit-references: true

XCDYouTubeKit/XCDYouTubeClient.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#import <XCDYouTubeKit/XCDYouTubeError.h>
1010

1111
/**
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.
1313
*
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>`.
1515
*/
1616
@interface XCDYouTubeClient : NSObject
1717

@@ -62,11 +62,11 @@
6262
* @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.
6363
* @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.
6464
*
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`.
6666
*
6767
* @see XCDYouTubeErrorCode
6868
*
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.
7070
*/
7171
- (id<XCDYouTubeOperation>) getVideoWithIdentifier:(NSString *)videoIdentifier completionHandler:(void (^)(XCDYouTubeVideo *video, NSError *error))completionHandler __attribute__((nonnull(2)));
7272

XCDYouTubeKit/XCDYouTubeOperation.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#import <Foundation/Foundation.h>
66

77
/**
8-
* The `XCDYouTubeOperation` protocol is adopted by opaque objects returned by the `-[XCDYouTubeClient getVideoWithIdentifier:completionHandler:]` method.
8+
* The `XCDYouTubeOperation` protocol is adopted by opaque objects returned by the `<-[XCDYouTubeClient getVideoWithIdentifier:completionHandler:]>` method.
99
*/
1010
@protocol XCDYouTubeOperation <NSObject>
1111

XCDYouTubeKit/XCDYouTubeVideo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#import <Foundation/Foundation.h>
66

77
/**
8-
* The quality of YouTube videos. These values are used as keys in the `streamURLs` property of the `XCDYouTubeVideo` class.
8+
* The quality of YouTube videos. These values are used as keys in the `<[XCDYouTubeVideo streamURLs]>` property.
99
*
1010
* The constant numbers are the YouTube [itag](https://en.wikipedia.org/wiki/YouTube#Quality_and_formats) values.
1111
*/
@@ -43,7 +43,7 @@ typedef NS_ENUM(NSUInteger, XCDYouTubeVideoQuality) {
4343
extern NSString *const XCDYouTubeVideoQualityHTTPLiveStreaming;
4444

4545
/**
46-
* Represents a YouTube video. Use the `-[XCDYouTubeClient getVideoWithIdentifier:completionHandler:]` method to obtain a `XCDYouTubeVideo` object.
46+
* Represents a YouTube video. Use the `<-[XCDYouTubeClient getVideoWithIdentifier:completionHandler:]>` method to obtain a `XCDYouTubeVideo` object.
4747
*/
4848
@interface XCDYouTubeVideo : NSObject <NSCopying>
4949

XCDYouTubeKit/XCDYouTubeVideoOperation.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* XCDYouTubeVideoOperation is a subclass of `NSOperation` that connects to the YouTube API and parse the response.
1212
*
13-
* You should probably use the higher level class `XCDYouTubeClient`. Use this class only if you are very familiar with `NSOperation` and need to manage dependencies between operations.
13+
* You should probably use the higher level class `<XCDYouTubeClient>`. Use this class only if you are very familiar with `NSOperation` and need to manage dependencies between operations.
1414
*
1515
* Since version 2.2.0 this operation is synchronous and must not be started on the main thread. Starting the operation on the main thread throws an exception.
1616
*/

XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ MP_EXTERN NSString *const XCDYouTubeVideoUserInfoKey;
3131
*
3232
* Use UIViewController’s `presentMoviePlayerViewControllerAnimated:` method to play a YouTube video fullscreen.
3333
*
34-
* Use the `presentInView:` method to play a YouTube video inline.
34+
* Use the `<presentInView:>` method to play a YouTube video inline.
3535
*/
3636
@interface XCDYouTubeVideoPlayerViewController : MPMoviePlayerViewController
3737

@@ -48,7 +48,7 @@ MP_EXTERN NSString *const XCDYouTubeVideoUserInfoKey;
4848
*
4949
* @return An initialized YouTube video player view controller with the specified video identifier.
5050
*
51-
* @discussion You can pass a nil videoIdentifier (or use the standard `init` method instead) and set the `videoIdentifier` property later.
51+
* @discussion You can pass a nil *videoIdentifier* (or use the standard `init` method instead) and set the `<videoIdentifier>` property later.
5252
*/
5353
- (instancetype) initWithVideoIdentifier:(NSString *)videoIdentifier __attribute__((objc_designated_initializer));
5454

@@ -74,7 +74,7 @@ MP_EXTERN NSString *const XCDYouTubeVideoUserInfoKey;
7474
*
7575
* Defaults to @[ XCDYouTubeVideoQualityHTTPLiveStreaming, @(XCDYouTubeVideoQualityHD720), @(XCDYouTubeVideoQualityMedium360), @(XCDYouTubeVideoQualitySmall240) ]
7676
*
77-
* You should set this property right after calling the `initWithVideoIdentifier:` method. Setting this property to nil restores its default values.
77+
* You should set this property right after calling the `<initWithVideoIdentifier:>` method. Setting this property to nil restores its default values.
7878
*
7979
* @see `XCDYouTubeVideoQuality`
8080
*/

0 commit comments

Comments
 (0)