This repository was archived by the owner on Jan 18, 2020. It is now read-only.
File tree 5 files changed +43
-3
lines changed
ObjCVoiceCallKitQuickstart
5 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 1
- github "twilio/twilio-voice-ios" >= 3 .0.0
1
+ github "twilio/twilio-voice-ios" >= 4 .0.0
2
2
Original file line number Diff line number Diff line change @@ -321,6 +321,12 @@ - (void)cancelledCallInviteReceived:(TVOCancelledCallInvite *)cancelledCallInvit
321
321
}
322
322
323
323
#pragma mark - TVOCallDelegate
324
+ - (void )callDidStartRinging : (TVOCall *)call {
325
+ NSLog (@" callDidStartRinging:" );
326
+
327
+ [self .placeCallButton setTitle: @" Ringing" forState: UIControlStateNormal];
328
+ }
329
+
324
330
- (void )callDidConnect : (TVOCall *)call {
325
331
NSLog (@" callDidConnect:" );
326
332
@@ -335,6 +341,20 @@ - (void)callDidConnect:(TVOCall *)call {
335
341
[self toggleAudioRoute: YES ];
336
342
}
337
343
344
+ - (void )call : (TVOCall *)call isReconnectingWithError : (NSError *)error {
345
+ NSLog (@" Call is reconnecting" );
346
+
347
+ [self .placeCallButton setTitle: @" Reconnecting" forState: UIControlStateNormal];
348
+ [self toggleUIState: NO showCallControl: NO ];
349
+ }
350
+
351
+ - (void )callDidReconnect : (TVOCall *)call {
352
+ NSLog (@" Call reconnected" );
353
+
354
+ [self .placeCallButton setTitle: @" Hang Up" forState: UIControlStateNormal];
355
+ [self toggleUIState: YES showCallControl: YES ];
356
+ }
357
+
338
358
- (void )call : (TVOCall *)call didFailToConnectWithError : (NSError *)error {
339
359
NSLog (@" Call failed to connect: %@ " , error);
340
360
Original file line number Diff line number Diff line change @@ -376,6 +376,12 @@ - (void)cancelledCallInviteReceived:(TVOCancelledCallInvite *)cancelledCallInvit
376
376
}
377
377
378
378
#pragma mark - TVOCallDelegate
379
+ - (void )callDidStartRinging : (TVOCall *)call {
380
+ NSLog (@" callDidStartRinging:" );
381
+
382
+ [self .placeCallButton setTitle: @" Ringing" forState: UIControlStateNormal];
383
+ }
384
+
379
385
- (void )callDidConnect : (TVOCall *)call {
380
386
NSLog (@" callDidConnect:" );
381
387
@@ -388,6 +394,20 @@ - (void)callDidConnect:(TVOCall *)call {
388
394
[self toggleAudioRoute: YES ];
389
395
}
390
396
397
+ - (void )call : (TVOCall *)call isReconnectingWithError : (NSError *)error {
398
+ NSLog (@" Call is reconnecting" );
399
+
400
+ [self .placeCallButton setTitle: @" Reconnecting" forState: UIControlStateNormal];
401
+ [self toggleUIState: NO showCallControl: NO ];
402
+ }
403
+
404
+ - (void )callDidReconnect : (TVOCall *)call {
405
+ NSLog (@" Call reconnected" );
406
+
407
+ [self .placeCallButton setTitle: @" Hang Up" forState: UIControlStateNormal];
408
+ [self toggleUIState: YES showCallControl: YES ];
409
+ }
410
+
391
411
- (void )call : (TVOCall *)call didFailToConnectWithError : (NSError *)error {
392
412
NSLog (@" Call failed to connect: %@ " , error);
393
413
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ source 'https://github.com/CocoaPods/Specs.git'
3
3
workspace 'ObjCVoiceQuickstart'
4
4
5
5
abstract_target 'TwilioVoice' do
6
- pod 'TwilioVoice' , '~> 3 .0'
6
+ pod 'TwilioVoice' , '~> 4 .0'
7
7
8
8
target 'ObjCVoiceQuickstart' do
9
9
platform :ios , '10.0'
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ Please ensure that after deleting the Push Credential you remove or replace the
315
315
You can find more documentation on getting started as well as our latest AppleDoc below:
316
316
317
317
* [ Getting Started] ( https://www.twilio.com/docs/api/voice-sdk/ios/getting-started )
318
- * [ AppleDoc] ( https://media.twiliocdn.com/sdk/ ios/voice /latest/docs )
318
+ * [ AppleDoc] ( https://twilio.github.io/twilio-voice- ios/docs /latest/ )
319
319
320
320
321
321
## Twilio Helper Libraries
You can’t perform that action at this time.
0 commit comments