| 1 | 
           efrain | 
           1 | 
           /*
  | 
        
        
            | 
            | 
           2 | 
            * Copyright 2018 Google
  | 
        
        
            | 
            | 
           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 | 
           #import <Foundation/Foundation.h>
  | 
        
        
            | 
            | 
           17 | 
              | 
        
        
            | 
            | 
           18 | 
           #import "FirebaseCore/Sources/Private/FIRComponentContainer.h"
  | 
        
        
            | 
            | 
           19 | 
           #import "FirebaseCore/Sources/Private/FIRLibrary.h"
  | 
        
        
            | 
            | 
           20 | 
              | 
        
        
            | 
            | 
           21 | 
           @class FIRApp;
  | 
        
        
            | 
            | 
           22 | 
              | 
        
        
            | 
            | 
           23 | 
           NS_ASSUME_NONNULL_BEGIN
  | 
        
        
            | 
            | 
           24 | 
              | 
        
        
            | 
            | 
           25 | 
           @interface FIRComponentContainer (Private)
  | 
        
        
            | 
            | 
           26 | 
              | 
        
        
            | 
            | 
           27 | 
           /// Initializes a container for a given app. This should only be called by the app itself.
  | 
        
        
            | 
            | 
           28 | 
           - (instancetype)initWithApp:(FIRApp *)app;
  | 
        
        
            | 
            | 
           29 | 
              | 
        
        
            | 
            | 
           30 | 
           /// Retrieves an instance that conforms to the specified protocol. This will return `nil` if the
  | 
        
        
            | 
            | 
           31 | 
           /// protocol wasn't registered, or if the instance couldn't be instantiated for the provided app.
  | 
        
        
            | 
            | 
           32 | 
           - (nullable id)instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:));
  | 
        
        
            | 
            | 
           33 | 
              | 
        
        
            | 
            | 
           34 | 
           /// Instantiates all the components that have registered as "eager" after initialization.
  | 
        
        
            | 
            | 
           35 | 
           - (void)instantiateEagerComponents;
  | 
        
        
            | 
            | 
           36 | 
              | 
        
        
            | 
            | 
           37 | 
           /// Remove all of the cached instances stored and allow them to clean up after themselves.
  | 
        
        
            | 
            | 
           38 | 
           - (void)removeAllCachedInstances;
  | 
        
        
            | 
            | 
           39 | 
              | 
        
        
            | 
            | 
           40 | 
           /// Removes all the components. After calling this method no new instances will be created.
  | 
        
        
            | 
            | 
           41 | 
           - (void)removeAllComponents;
  | 
        
        
            | 
            | 
           42 | 
              | 
        
        
            | 
            | 
           43 | 
           /// Register a class to provide components for the interoperability system. The class should conform
  | 
        
        
            | 
            | 
           44 | 
           /// to `FIRComponentRegistrant` and provide an array of `FIRComponent` objects.
  | 
        
        
            | 
            | 
           45 | 
           + (void)registerAsComponentRegistrant:(Class<FIRLibrary>)klass;
  | 
        
        
            | 
            | 
           46 | 
              | 
        
        
            | 
            | 
           47 | 
           @end
  | 
        
        
            | 
            | 
           48 | 
              | 
        
        
            | 
            | 
           49 | 
           NS_ASSUME_NONNULL_END
  |