"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-5186/ios/sdk/src/RCTBridgeWrapper.h" (30 Jul 2021, 1391 Bytes) of package /linux/misc/jitsi-meet-5186.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Copyright @ 2017-present Atlassian Pty Ltd
    3  *
    4  * Licensed under the Apache License, Version 2.0 (the "License");
    5  * you may not use this file except in compliance with the License.
    6  * You may obtain a copy of the License at
    7  *
    8  *     http://www.apache.org/licenses/LICENSE-2.0
    9  *
   10  * Unless required by applicable law or agreed to in writing, software
   11  * distributed under the License is distributed on an "AS IS" BASIS,
   12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13  * See the License for the specific language governing permissions and
   14  * limitations under the License.
   15  */
   16 
   17 #import <Foundation/Foundation.h>
   18 
   19 #import <React/RCTBridge.h>
   20 #import <React/RCTBridgeDelegate.h>
   21 
   22 /**
   23  * A wrapper around the `RCTBridge` which implements the delegate methods
   24  * that allow us to serve the JS bundle from within the framework's resources
   25  * directory. This is the recommended way for those cases where the builtin API
   26  * doesn't cut it, as is the case.
   27  *
   28  * In addition, we will create a single bridge and then create all root views
   29  * off it, thus only loading the JS bundle a single time. This class is not a
   30  * singleton, however, so it's possible for us to create multiple instances of
   31  * it, though that's not currently used.
   32  */
   33 @interface RCTBridgeWrapper : NSObject<RCTBridgeDelegate>
   34 
   35 @property (nonatomic, readonly, strong)  RCTBridge *bridge;
   36 
   37 @end