Vonage-Community / sample-video-flutter-app

Apache License 2.0
5 stars 1 forks source link

How to end the session #3

Closed swarupbc closed 1 year ago

swarupbc commented 1 year ago

There is a function to init a session "initSession", but How can I end a session? I can't find any function or method to end the session manually, please help me with a solution.

devwithzachary commented 1 year ago

Hi! You can do this using the Session.disconnect() method. This will disconnect you from that session.

So you could create a method in the Android/iOS native code to call this which can then be called from the Flutter code, in the same way that the initSession is.

swarupbc commented 1 year ago

Thank you @devwithzachary