hank
2017-06-14 a0a84333e64f1e94ae9d0f69545037c60e781842
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
//
//  TWTRNotificationConstants.h
//  TwitterKit
//
//  Copyright © 2016 Twitter. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
/**
 *  Constants for notifications that are posted from TwitterKit. These are posted on the default notification center.
 */
 
#pragma mark - Tweet Action Notifications
 
/**
 *  Notification indicating a Tweet was selected.
 */
FOUNDATION_EXPORT NSString *const TWTRDidSelectTweetNotification;
 
/**
 *  Notification indicating the Tweet detail view was shown for a given Tweet.
 */
FOUNDATION_EXPORT NSString *const TWTRDidShowTweetDetailNotification;
 
/**
 *  Notification indicating the user has selected to share Tweet.
 */
FOUNDATION_EXPORT NSString *const TWTRWillShareTweetNotification;
 
/**
 *  Notification indicating the Tweet was shared.
 */
FOUNDATION_EXPORT NSString *const TWTRDidShareTweetNotification;
 
/**
 *  Notification indicating the user has cancelled sharing of the Tweet.
 */
FOUNDATION_EXPORT NSString *const TWTRCancelledShareTweetNotification;
 
/**
 *  Notification indicating the user has liked a Tweet.
 */
FOUNDATION_EXPORT NSString *const TWTRDidLikeTweetNotification;
 
/**
 *  Notification indicating the user has unliked a Tweet.
 */
FOUNDATION_EXPORT NSString *const TWTRDidUnlikeTweetNotification;
 
#pragma mark - Media Notifications
 
/**
 *  Notification indicating the the playback state of a video
 *  has changed.
 *
 *  object: The UIView emitting these notifications
 *  userInfo: {TWTRVideoPlaybackStateKey: TWTRVideoStateValuePlaying}
 *            {TWTRVideoPlaybackStateKey: TWTRVideoStateValuePaused}
 *            {TWTRVideoPlaybackStateKey: TWTRVideoStateValueCompleted}
 */
FOUNDATION_EXPORT NSString *const TWTRVideoPlaybackStateChangedNotification;
 
/**
 *  User info key for the state of video playback.
 */
FOUNDATION_EXPORT NSString *const TWTRVideoPlaybackStateKey;
 
/**
 *  User info values for the state of video playback.
 */
FOUNDATION_EXPORT NSString *const TWTRVideoStateValuePlaying;
FOUNDATION_EXPORT NSString *const TWTRVideoStateValuePaused;
FOUNDATION_EXPORT NSString *const TWTRVideoStateValueCompleted;
 
#pragma mark - Presentation Notifications
 
/**
 *  Notification indicating that the video view controller will
 *  be presented.
 *
 *  object: The UIViewController hosting the video view
 *  userInfo: {TWTRVideoTypeKey: TWTRVideoTypeGIF}
 *            {TWTRVideoTypeKey: TWTRVideoTypeStandard}
 *            {TWTRVideoTypeKey: TWTRVideoTypeVine}
 */
FOUNDATION_EXPORT NSString *const TWTRWillPresentVideoNotification;
 
/**
 *  Notification indicating that the video view controller has
 *  been dismissed.
 *
 *  object: The UIViewController hosting the video view
 */
FOUNDATION_EXPORT NSString *const TWTRDidDismissVideoNotification;
 
/**
 *  The key to fetch the type of video being displayed in a
 *  TWTRVideoViewController.
 */
FOUNDATION_EXPORT NSString *const TWTRVideoTypeKey;
 
/**
 *  User info values for the type of video being displayed
 *  in a TWTRVideoViewController.
 */
FOUNDATION_EXPORT NSString *const TWTRVideoTypeGIF;
FOUNDATION_EXPORT NSString *const TWTRVideoTypeStandard;
FOUNDATION_EXPORT NSString *const TWTRVideoTypeVine;
 
#pragma mark - Notification User Info
 
/**
 *  User info key to fetch the associated Tweet in the notification.
 */
FOUNDATION_EXPORT NSString *const TWTRNotificationInfoTweet;
 
/**
 * A notification which is posted when a user logs out of Twitter.
 * The notification will contain a user dictionary which contains
 * the user id which is being logged out. Note, this notification may
 * be posted as a result of starting the Twitter object.
 */
FOUNDATION_EXPORT NSString *const TWTRUserDidLogOutNotification;
FOUNDATION_EXPORT NSString *const TWTRLoggedOutUserIDKey;
 
/**
 * A notification which is posted when a user logs in to Twitter.
 * The notification will contain a user dictionary which contains
 * the user id which is being logged in. Note, this notification may
 * be posted as a result of starting the Twitter object.
 */
FOUNDATION_EXPORT NSString *const TWTRUserDidLogInNotification;
FOUNDATION_EXPORT NSString *const TWTRLoggedInUserIDKey;
 
NS_ASSUME_NONNULL_END