mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Objective-C
		
	
#import <Foundation/Foundation.h>
 | 
						|
 | 
						|
@class OWSAudioSession;
 | 
						|
@class OWSPreferences;
 | 
						|
@class OWSSounds;
 | 
						|
@class OWSWindowManager;
 | 
						|
 | 
						|
@protocol OWSProximityMonitoringManager;
 | 
						|
 | 
						|
/**
 | 
						|
 *
 | 
						|
 * Environment is a data and data accessor class.
 | 
						|
 * It handles application-level component wiring in order to support mocks for testing.
 | 
						|
 * It also handles network configuration for testing/deployment server configurations.
 | 
						|
 *
 | 
						|
 **/
 | 
						|
@interface Environment : NSObject
 | 
						|
 | 
						|
- (instancetype)init NS_UNAVAILABLE;
 | 
						|
 | 
						|
- (instancetype)initWithAudioSession:(OWSAudioSession *)audioSession
 | 
						|
                         preferences:(OWSPreferences *)preferences
 | 
						|
          proximityMonitoringManager:(id<OWSProximityMonitoringManager>)proximityMonitoringManager
 | 
						|
                              sounds:(OWSSounds *)sounds
 | 
						|
                       windowManager:(OWSWindowManager *)windowManager;
 | 
						|
 | 
						|
@property (nonatomic, readonly) OWSAudioSession *audioSession;
 | 
						|
@property (nonatomic, readonly) id<OWSProximityMonitoringManager> proximityMonitoringManager;
 | 
						|
@property (nonatomic, readonly) OWSPreferences *preferences;
 | 
						|
@property (nonatomic, readonly) OWSSounds *sounds;
 | 
						|
@property (nonatomic, readonly) OWSWindowManager *windowManager;
 | 
						|
 | 
						|
@property (class, nonatomic) Environment *shared;
 | 
						|
 | 
						|
#ifdef DEBUG
 | 
						|
// Should only be called by tests.
 | 
						|
+ (void)clearSharedForTests;
 | 
						|
#endif
 | 
						|
 | 
						|
@end
 |