Edit in GitHubLog an issue

Java

Syntax

Copied to your clipboard
public static void clearUpdatedConfiguration();

Example

Copied to your clipboard
MobileCore.clearUpdatedConfiguration();

Swift

Syntax

Copied to your clipboard
static func clearUpdatedConfiguration()

Example

Copied to your clipboard
MobileCore.clearUpdatedConfiguration()

Objective-C

Syntax

Copied to your clipboard
+ (void) clearUpdatedConfiguration();

Example

Copied to your clipboard
[AEPMobileCore clearUpdatedConfiguration];

Java

Syntax

Copied to your clipboard
public static void configureWithAppID(@NonNull final String appId);

Example

Copied to your clipboard
MobileCore.configureWithAppId("1423ae38-8385-8963-8693-28375403491d");

Swift

Syntax

Copied to your clipboard
static func configureWith(appId: String)

Example

Copied to your clipboard
MobileCore.configureWith(appId: "1423ae38-8385-8963-8693-28375403491d")

Objective-C

Syntax

Copied to your clipboard
+ (void) configureWithAppId: (NSString* appId);

Example

Copied to your clipboard
[AEPMobileCore configureWithAppId: @"1423ae38-8385-8963-8693-28375403491d"];

Java

Syntax

Copied to your clipboard
public static void configureWithFileInAssets(@NonNull final String fileName);

Example

Copied to your clipboard
MobileCore.configureWithFileInAssets("exampleJSONfile.json");

Java

Syntax

Copied to your clipboard
public static void configureWithFileInPath(@NonNull final String filePath);

Example

Copied to your clipboard
MobileCore.configureWithFileInPath("absolute/path/to/exampleJSONfile.json");

Swift

Syntax

Copied to your clipboard
static func configureWith(filePath: String)

Example

Copied to your clipboard
let filePath = Bundle.main.path(forResource: "ExampleJSONFile", ofType: "json")
MobileCore.configureWith(filePath: filePath)

Objective-C

Syntax

Copied to your clipboard
+ (void) configureWithFileInPath: (NSString* __nullable) filepath;

Example

Copied to your clipboard
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"ExampleJSONFile" ofType:@"json"];
[AEPMobileCore configureWithFilePath:filePath];

Java

Copied to your clipboard
String coreExtensionVersion = MobileCore.extensionVersion();

Swift

Copied to your clipboard
let version = MobileCore.extensionVersion

Objective-C

Copied to your clipboard
NSString *version = [AEPMobileCore extensionVersion];

Java

Syntax

Copied to your clipboard
public static void updateConfiguration(@NonNull final Map configMap);

Example

Copied to your clipboard
HashMap<String, Object> data = new HashMap<String, Object>();
data.put("global.privacy", "optedout");
MobileCore.updateConfiguration(data);

Swift

Syntax

Copied to your clipboard
@objc(updateConfiguration:)
static func updateConfigurationWith(configDict: [String: Any])

Example

Copied to your clipboard
let updatedConfig = ["global.privacy":"optedout"]
MobileCore.updateConfigurationWith(configDict: updatedConfig)

Objective-C

Syntax

Copied to your clipboard
+ (void) updateConfiguration: (NSDictionary* __nullable) config;

Example

Copied to your clipboard
NSDictionary *updatedConfig = @{@"global.privacy":@"optedout"};
[AEPMobileCore updateConfiguration:updatedConfig];
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.