-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update AppDelegate to report error param and callback for when session establishment starts #28138
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,12 +22,18 @@ | |
|
||
#pragma once | ||
|
||
#include <lib/core/CHIPError.h> | ||
|
||
class AppDelegate | ||
{ | ||
public: | ||
virtual ~AppDelegate() {} | ||
/** | ||
* This is called on start of session establishment process | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This says nothing useful. What is considered the "start of the session establishment process" @sharadb-amazon? This specifically gets called when PBKDFParamRequest is received, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going to address it in this PR: #28186 |
||
*/ | ||
virtual void OnCommissioningSessionEstablishmentStarted() {} | ||
sharadb-amazon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
virtual void OnCommissioningSessionStarted() {} | ||
virtual void OnCommissioningSessionStopped() {} | ||
virtual void OnCommissioningSessionStopped(CHIP_ERROR err) {} | ||
|
||
/* | ||
* This is called anytime a basic or enhanced commissioning window is opened. | ||
|
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.
This changes public API. This should have been a new callback for status in addition to OnCommissioningSessionStopped.
Furthermore, usage of the
err
argument is not documented.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.
Addressing part of this in this PR: #28240
and tracking the rest in this issue: #28136