SASConfiguration
Objective-C
@interface SASConfiguration : NSObject
Swift
class SASConfiguration : NSObject
Hold the configuration of the Display SDK.
Note
This singleton class is used for the initial SDK configuration. This configuration is MANDATORY and should be done before performing any ad call. Check the complete documentation for more information.-
The shared instance of the SASConfiguration object.
Declaration
Objective-C
@property (class, nonatomic, readonly) NS_SWIFT_NAME(shared) SASConfiguration *sharedInstance;
Swift
class var shared: SASConfiguration { get }
-
YES if the SDK has been configured (using the
SASConfiguration.configure()
method), NO otherwise.Declaration
Objective-C
@property (readonly, getter=isConfigured) BOOL configured;
Swift
var configured: Bool { get }
-
Ad call timeout in seconds.
Declaration
Objective-C
@property NSTimeInterval adCallTimeout;
Swift
var adCallTimeout: TimeInterval { get set }
-
Additional implementation information that can be provided to the SDK when integrated as secondary SDK.
Declaration
Objective-C
@property (strong, nullable) SASSecondaryImplementationInfo *secondaryImplementationInfo;
Swift
var secondaryImplementationInfo: SASSecondaryImplementationInfo? { get set }
-
YES if the SDK needs to display debug informations in the Xcode console, NO otherwise.
Declaration
Objective-C
@property (getter=isLoggingEnabled) BOOL loggingEnabled;
Swift
var loggingEnabled: Bool { get set }
-
The bundle for localized strings, nil to use the default localized strings.
The Display SDK embeds some localized string in English and French. You can add support for other languages by providing localized strings from your own app’s bundle.
Check the documentation for the full list of string’s keys.
Declaration
Objective-C
@property (strong) NSBundle *_Nonnull stringsBundle;
Swift
var stringsBundle: Bundle { get set }
-
YES if the SDK is allowed to retrieve the user’s location available in the app, NO otherwise.
Declaration
Objective-C
@property (atomic, assign, unsafe_unretained, readwrite, getter=isAutomaticLocationDetectionAllowed) BOOL automaticLocationDetectionAllowed;
Swift
var automaticLocationDetectionAllowed: Bool { get set }
-
Configure the SDK.
Warning
You must call this method before performing any ad call, otherwise the SDK will crash!Declaration
Objective-C
- (void)configure;
Swift
func configure()