-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactors AgoraClient's initialization #17
Conversation
Also there's a new getter to check if it has been initialized already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of edits from me, @Meherdeep and/or @tadaspetra will take a deeper look!
Me and @Meherdeep discussed this yesterday, and we think this is the right approach. But we want to go over a couple more things with this including
|
@tadaspetra that is true, I've noticed there was no dispose and that bugs me. Should I include it in this PR? I think the SessionController should be disposed, but I'm not sure in regards of RtcEngine. |
Of course, we would love it if you could add it 😄 |
@tadaspetra I've found out that RtcEngine has a |
So that might work, but one thing to look out for in the It might be a little more complex solution for this. |
Closes #13.
Moves initialization of
AgoraClient
from its constructor (implicit) to a proper function (explicit).This means that it's the user responsability to check for it, but it also gives the power to know when it's ready.
Release Notes
initialize
onAgoraClient
before further usage.Pull request checklist
Please check if your PR fulfills the following requirements:
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
The initialization is triggered by the constructor of
AgoraClient
at initialization and if it happens to failure, it can't recover from it.Issue Number: #13
What is the new behavior?
The initialization is triggered by a specific function by the client. If failure happens the client gets to know and can handle it. Also the same instance can be reused.
Does this introduce a breaking change?
QA Checklist
UIKit Update Checklist (Minor or Patch Release)