-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS tv-casting-app: Implementing AppDelegate
- Loading branch information
1 parent
068f877
commit 641215b
Showing
6 changed files
with
237 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
...ng-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/CommissioningCallbackHandlers.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* | ||
* Copyright (c) 2020-2023 Project CHIP Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#import "MatterError.h" | ||
#import <Foundation/Foundation.h> | ||
|
||
#ifndef CommissioningCallbacksHandlers_h | ||
#define CommissioningCallbacksHandlers_h | ||
|
||
@interface CommissioningCallbackHandlers : NSObject | ||
|
||
- (CommissioningCallbackHandlers * _Nonnull) | ||
initWithCommissioningWindowRequestedHandler:(void (^_Nonnull)(bool))commissioningWindowRequestedHandler | ||
commissioningCompleteCallback:(void (^_Nonnull)(bool))commissioningCompleteCallback | ||
sessionEstablishmentStartedCallback:(void (^_Nullable)(void))sessionEstablishmentStartedCallback | ||
sessionEstablishedCallback:(void (^_Nullable)(void))sessionEstablishedCallback | ||
sessionEstablishmentErrorCallback:(void (^_Nullable)(MatterError * _Nonnull))sessionEstablishmentErrorCallback | ||
sessionEstablishmentStoppedCallback:(void (^_Nullable)(void))sessionEstablishmentStoppedCallback; | ||
|
||
/** | ||
* This is called when request to open the commissioning window has been made. | ||
*/ | ||
@property void (^_Nullable commissioningWindowRequestedHandler)(bool); | ||
|
||
/** | ||
* This is called when the commissioning has been completed | ||
*/ | ||
@property void (^_Nullable commissioningCompleteCallback)(bool); | ||
|
||
/** | ||
* This is called when the PBKDFParamRequest is received and indicates the start of the session establishment process | ||
*/ | ||
@property void (^_Nullable sessionEstablishmentStartedCallback)(void); | ||
|
||
/** | ||
* This is called when the commissioning session has been established | ||
*/ | ||
@property void (^_Nullable sessionEstablishedCallback)(void); | ||
|
||
/** | ||
* This is called when the PASE establishment failed (such as, when an invalid passcode is provided) or PASE was established | ||
* fine but then the fail-safe expired (including being expired by the commissioner). The error param indicates the error that | ||
* occurred during session establishment or the error accompanying the fail-safe timeout. | ||
*/ | ||
@property void (^_Nullable sessionEstablishmentErrorCallback)(MatterError * _Nonnull); | ||
|
||
/** | ||
* This is called when the PASE establishment failed or PASE was established fine but then the fail-safe expired (including | ||
* being expired by the commissioner) AND the commissioning window is closed. The window may be closed because the commissioning | ||
* attempts limit was reached or advertising/listening for PASE failed. | ||
*/ | ||
@property void (^_Nullable sessionEstablishmentStoppedCallback)(void); | ||
|
||
@end | ||
|
||
#endif /* CommissioningCallbacksHandlers_h */ |
Oops, something went wrong.