//
//  NeuraSdkConfiguration.h
//  NeuraSDK
//
//  Created by Neura on 11/08/2016.
//  Copyright © 2016 Neura. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NeuraSDKAPIAvailability.h"

#pragma mark - Legacy API
/** Legacy flags (This will be deprecated soon) */
typedef NS_OPTIONS(NSUInteger, NEUFeatures) {
    /** NEUSDKCustomErrorNotification */
    NEUSDKCustomErrorNotification       =(1 << 0),
    /** NEUSDKDisableSdkLogging */
    NEUSDKDisableSdkLogging             =(1 << 1)
};


/**
 A shared object used to configure the SDK.
 */
@interface NeuraSdkConfiguration : NSObject

+ (nonnull instancetype)sharedInstance;

#if FOUNDATION_SWIFT_SDK_EPOCH_AT_LEAST(8)
/** shared class property
 
 The same as NeuraSdkConfiguration.sharedInstance
 This is just a convenience class property for shorter syntax under Swift 3.0+
 */
@property (class, nonatomic, readonly, nonnull) NeuraSdkConfiguration *shared;
#endif

#pragma mark - Settings flags
/**
 This default preferences dictionary is used when the remote preferences
 are not set on the server side.
 
 Mostly used for debugging: don't set this property in production apps.
 */
@property(nonatomic,assign, nullable) NSDictionary *defaultPreferences;

/**
 A flag indicating if Neura will register to push notifications automatically after successful authentication.
 Set this to NO if you want to implement yourself registering to user notifications.
 */
#pragma mark - Deprecated
@property(nonatomic,readwrite,assign) BOOL willSetupDefaultPushNotifications DEPRECATED_NEURA_API("Deprecated on SDK v4.12.0 - Call registerUserNotificationSettings it's the app developer responsibility.");;

@end
