0.21.0 / 5-3-2018

Breaking Change

New

call.memberState.subscribe(onSuccess: { state in
    switch state {
    case .answered(let member):
        break
    case .rejected(let member):
        break
        case .hangUp(let member):
        break
    }
})
```objective-c
[conversation memberChangesObjcOnInvited:^(NXMMember * _Nonnull member) {
    // code here
} onJoined:^(NXMMember * _Nonnull member) {
    // code here
} onLeft:^(NXMMember * _Nonnull member) {
    // code here
}];

Bugs

0.20.0 / 22-2-2018

Breaking changes

Rename

Previous version:

Conversation.audio

Client.media

New version:

Conversation.media

Client.media // same property name

Observable

Previous version:

events.newEventReceived.addHandler { event in
    // code here
}

client.login(with: token).subscribe(onNext: {
    // code here           
}, onError: { error in
    // code here
}).disposed(by: disposeBag)

New version:

client.login(with: token).subscribe(onSuccess: {
    // code here           
}, onError: { error in
    // code here
})

Note:

NexmoConversation.Observable class

Two property: .mainThread .backgroundThread

6 Methods: (2 for subscribe and 4 high order function for chaining observable). filter map flatMap reduce subscribe

NexmoConversation.MutableObservable class (subclass of NexmoConversation.Observable class)

One extra property: .value

Call

Simple wrapper for Conversation class to create a call

Create call

do {
    let users = ["user1", "user2"]

    try client.media.call(users, onSuccess: { result in
        // code here
        // result contains Call object and any errors from requesting invites for users
    }, onError: { networkError in
        // code here
    })
} catch let error {
    // code here
}

Pass a list of users to create a Call object

Receive an incoming call

try client.media.inboundCalls.subscribe(onSuccess: { call in
    // code here
})

Get given a Call object for all incoming calls

Answer incoming call

call.answer(onSuccess: {
    // code here              
}, onFailure: { error in
    // code here
})

onSuccess: will be called when call has been answered

Reject incoming call

call.reject()

optional onError: can be called

hangup call

call.hangUp(onSuccess: {
    // code here
}, onFailure: { error in
    // code here
})

onSuccess is called when call has successfully hangup

Bugs

Others

0.19.2 / 8-2-2018

Fix issue where muting did not work on second attempt and issues where full sync had to happen on second launch due to database permissions.

0.19.1 / 2-2-2018

Fix cocoapods build

0.19.0 / 1-2-2018

Breaking changes

AudioEvent has now be renamed to MediaEvent to reflect other media type that will soon be available

let event = event as? MediaEvent

invitations in RTCController has been renamed to media getter

Old:

client.rtc.invitations

New:

client.media.invitations

MessageSent in Conversation class has now moved to EventCollection inside the Conversation class Old:

conversation.messageSent.addHandler { event in
    // sent event here...            
}

New:

conversation.events.eventSent.addHandler { event in
    // sent event here...            
}

Changes

Documentation has been updated to reflect most recent API change. This should now be much more simple to understand

Removed GLOSS dependency for Swift 4 JSON

0.18.1 / 26-12-2017

Bugs

0.18.0 / 26-12-2017

Feature

0.18.2 / 1-1-2018

Bugs

0.18.1 / 26-12-2017

Bugs

0.18.0 / 26-12-2017

Feature

0.17.0 / 20-12-2017

Bugs

Feature

0.16.0 / 06-11-2017

Bugs

0.15.0 / 14-09-2017

Breaking Change

Feature

0.14.0 / 14-09-2017

Breaking Change

Feature

Changes

0.13.0 / 05-09-2017

Bugs

0.12.0 / 21-08-2017

Feature

Bugs

0.11.0 / 08-08-2017

Feature

Bugs

0.10.0 / 21-07-2017

Feature

Bugs

0.9.3 / 06-07-2017

Breaking change

Feature

Bugs

0.9.2 / 30-06-2017

Bugs

0.9.1 / 26-06-2017

Feature

Bugs

0.9.0 / 16-06-2017

Breaking change

Feature

Bugs

0.8.0 / 31-05-2017

Breaking changes

Changes

 client.configuration = Configuration(with: .info)
 client.login(with: TOKEN)

0.7.0 / 26-04-2017

Changes

Bugs

0.6.1 / 11-04-2017

Feature

Bugs

Changes

0.0.6 / 24-03-2017

Bugs

Changes

0.0.5 / 08-11-2016

Bugs

0.0.4 / 04-10-2016

Feature

0.0.3 / 07-10-2016

Bugs

Changes

0.0.1 / 04-10-2016

Changes