@@ -68,17 +68,6 @@ NS_ASSUME_NONNULL_BEGIN
68
68
*/
69
69
+ (void )loginUnidentifiedUserWithSuccess : (void (^ __nullable)(void ))success failure : (void (^ __nullable)(NSError *_Nonnull error))failure NS_REFINED_FOR_SWIFT;
70
70
71
- /* !
72
- If you call registerUnidentifiedUser, all activity will be tracked anonymously. If you choose to subsequently
73
- identify that user, all that anonymous activity will be merged into the identified user. This means that you
74
- will no longer see the anonymous user in Intercom, but rather the identified one.
75
-
76
- We recommend this is called from within the application delegate's didFinishLaunchingWithOptions: method.
77
-
78
- @note You must call one of the user login methods in order to start communicating with Intercom.
79
- */
80
- + (void )registerUnidentifiedUser __attribute((deprecated(" '+[Intercom registerUnidentifiedUser]' is deprecated. 'Use +[Intercom loginUnidentifiedUserWithSuccess:failure:]' instead." )));
81
-
82
71
// =========================================================================================================
83
72
/* ! @name Working with identified users */
84
73
// =========================================================================================================
@@ -103,30 +92,6 @@ NS_ASSUME_NONNULL_BEGIN
103
92
*/
104
93
+ (void )loginUserWithUserAttributes : (ICMUserAttributes *)userAttributes success : (void (^ __nullable)(void ))success failure : (void (^ __nullable)(NSError *_Nonnull error))failure NS_REFINED_FOR_SWIFT;
105
94
106
- /* !
107
- Login as a user just with their userId and email.
108
-
109
- @param userId A unique identifier for your user.
110
- @param email Your user's email address.
111
- @note You must call one of the user registration methods in order to start communicating with Intercom.
112
- */
113
- + (void )registerUserWithUserId : (NSString *)userId email : (NSString *)email __attribute((deprecated(" '+[Intercom registerUserWithUserId:email:]' is deprecated. 'Use +[Intercom loginUserWithUserAttributes:success:failure:]' instead." )));
114
-
115
- /* !
116
- Login as a user just with their userId.
117
- @param userId A unique identifier for your user.
118
- @note You must call one of the user registration methods in order to start communicating with Intercom.
119
- */
120
- + (void )registerUserWithUserId : (NSString *)userId __attribute((deprecated(" '+[Intercom registerUserWithUserId:]' is deprecated. 'Use +[Intercom loginUserWithUserAttributes:success:failure:]' instead." )));
121
-
122
- /* !
123
- Login as a user with just their email address.
124
-
125
- @param email Your user's email address.
126
- @note You must call one of the user registration methods in order to start communicating with Intercom.
127
- */
128
- + (void )registerUserWithEmail : (NSString *)email __attribute((deprecated(" '+[Intercom registerUserWithEmail:]' is deprecated. 'Use +[Intercom loginUserWithUserAttributes:success:failure:]' instead." )));
129
-
130
95
// =========================================================================================================
131
96
/* ! @name Logging the user out */
132
97
// =========================================================================================================
@@ -137,11 +102,6 @@ NS_ASSUME_NONNULL_BEGIN
137
102
*/
138
103
+ (void )logout ;
139
104
140
- /* !
141
- @deprecated +[Intercom reset] is deprecated. Use +[Intercom logout] instead.
142
- */
143
- + (void )reset __attribute((deprecated(" '+[Intercom reset]' is deprecated. 'Use +[Intercom logout]' instead." )));
144
-
145
105
// =========================================================================================================
146
106
/* * @name Updating the user */
147
107
// =========================================================================================================
@@ -158,17 +118,6 @@ NS_ASSUME_NONNULL_BEGIN
158
118
*/
159
119
+ (void )updateUser : (ICMUserAttributes *)userAttributes success : (void (^ __nullable)(void ))success failure : (void (^ __nullable)(NSError *_Nonnull error))failure NS_REFINED_FOR_SWIFT;
160
120
161
- /* !
162
- You can send any data you like to Intercom. Typically our customers see a lot of value in sending data that
163
- relates to customer development, such as price plan, value of purchases, etc. Once these have been sent to
164
- Intercom you can then apply filters based on these attributes.
165
-
166
- Details on attributes available to update can be found in ICMUserAttributes.
167
-
168
- @param userAttributes The attributes to update the user with.
169
- */
170
- + (void )updateUser : (ICMUserAttributes *)userAttributes __attribute((deprecated(" '+[Intercom updateUser:]' is deprecated. 'Use +[Intercom updateUser:success:failure:]' instead." )));
171
-
172
121
#pragma mark - Log Event
173
122
174
123
/* !
@@ -219,21 +168,6 @@ NS_ASSUME_NONNULL_BEGIN
219
168
*/
220
169
+ (void )presentMessageComposer : (nullable NSString *)initialMessage ;
221
170
222
- /* !
223
- Present the message composer.
224
- */
225
- + (void )presentMessageComposer __attribute((deprecated(" '+[Intercom presentMessageComposer]' is deprecated. 'Use +[Intercom presentMessageComposer:initialMessage]' instead." )));
226
-
227
- /* !
228
- Present the message composer with a message to pre-populate the composer.
229
- */
230
- + (void )presentMessageComposerWithInitialMessage : (NSString *)message __attribute((deprecated(" '+[Intercom presentMessageComposerWithInitialMessage]' is deprecated. 'Use +[Intercom presentMessageComposer:initialMessage]' instead." )));
231
-
232
- /* !
233
- Present the conversation list.
234
- */
235
- + (void )presentConversationList __attribute((deprecated(" '+[Intercom presentConversationList]' is deprecated. 'Use +[Intercom presentMessenger]' instead." )));;
236
-
237
171
#pragma mark - Help Center UI
238
172
239
173
/* !
@@ -308,15 +242,6 @@ NS_ASSUME_NONNULL_BEGIN
308
242
*/
309
243
+ (void )setDeviceToken : (NSData *)deviceToken failure : (void (^ __nullable)(NSError * _Nullable error))failure ;
310
244
311
- /* !
312
- Set the device token for push notifications. Once the device token is set, the methods for receiving push
313
- notifications are safely swizzled so ones sent from Intercom can be intercepted. When a push notification from
314
- Intercom is received, Intercom for iOS will automatically launch the message from the notification.
315
-
316
- @param deviceToken The device token provided in the `didRegisterForRemoteNotificationsWithDeviceToken` method.
317
- */
318
- + (void )setDeviceToken : (NSData *)deviceToken __attribute((deprecated(" '+[Intercom setDeviceToken:]' is deprecated. 'Use +[Intercom setDeviceToken:failure:]' instead." )));
319
-
320
245
/* !
321
246
Use this method to check if a push notification payload was sent by Intercom. Typically you should call
322
247
+[Intercom handleIntercomPushNotification:] after checking this.
0 commit comments