-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
…this API to set lambdas to be ran either onConnect or onDisconnect events
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.
Did a quick review. I'll find a bit more time to give more feedback.
You can update API via: ./gradlew apiDump
Unfortunately Android Studio and Kotlinter do not agree on import ordering. I think JetBrains has a fix coming so Android Studio can play nicer with Kotlinter. Until then, I've opted to have Kotlinter enforce it's import ordering. It's slightly cumbersome but at least makes ordering enforceable by CI. So you'll have to run |
* @return `true` if connection was established (then dropped), or `false` if connection attempt failed. | ||
* @throws ConnectionRejected if the operating system rejects the connection request. | ||
*/ | ||
private suspend fun establishConnection(): Boolean { |
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.
I like this new naming way better
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.
Pushed the fixes we discussed. Please add tests around event handling and re-request review. Thanks!
@Chris-Corea re-requested your review as we had to make substantial changes since you reviewed. |
Allows the consumer of this API to provide lambdas to run on either connection or disconnection events.
Rendered markdown of the updated documentation re:
Event
s is available here.