/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 Accessors for Global Constants.
 */
@interface FBConfiguration : NSObject

/*! If set to YES will ask TestManagerDaemon for element visibility */
@property (class, nonatomic, assign) BOOL shouldUseTestManagerForVisibilityDetection;

/* The maximum typing frequency for all typing activities */
@property (class, nonatomic, assign) NSUInteger maxTypingFrequency;

/**
 Switch for enabling/disabling reporting fake collection view cells by Accessibility framework.
 If set to YES it will report also invisible cells.
 */
+ (void)shouldShowFakeCollectionViewCells:(BOOL)showFakeCells;

/**
 The range of ports that the HTTP Server should attempt to bind on launch
 */
+ (NSRange)bindingPortRange;

/**
 YES if verbose logging is enabled. NO otherwise.
 */
+ (BOOL)verboseLoggingEnabled;

@end

NS_ASSUME_NONNULL_END

/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 Accessors for Global Constants.
 */
@interface FBConfiguration : NSObject

/*! If set to YES will ask TestManagerDaemon for element visibility */
+ (void)setShouldUseTestManagerForVisibilityDetection:(BOOL)value;
+ (BOOL)shouldUseTestManagerForVisibilityDetection;

/* The maximum typing frequency for all typing activities */
+ (void)setMaxTypingFrequency:(NSUInteger)value;
+ (NSUInteger)maxTypingFrequency;

/**
 Switch for enabling/disabling reporting fake collection view cells by Accessibility framework.
 If set to YES it will report also invisible cells.
 */
+ (void)shouldShowFakeCollectionViewCells:(BOOL)showFakeCells;

/**
 The range of ports that the HTTP Server should attempt to bind on launch
 */
+ (NSRange)bindingPortRange;

/**
 YES if verbose logging is enabled. NO otherwise.
 */
+ (BOOL)verboseLoggingEnabled;

@end

NS_ASSUME_NONNULL_END

Switch from class property to methods
Switch from class property to methods

Summary:
Some recent changes use class properties, which break building with Xcode 7. This exposes the same API without the new syntax.
Closes https://github.com/facebook/WebDriverAgent/pull/539

Differential Revision: D4880364

Pulled By: marekcirkos

fbshipit-source-id: dace4b2413cb8c52dd0783da03f216da8a26fc97
