Edit in GitHubLog an issue

Java

Syntax

Copied to your clipboard
public static void clearUpdatedConfiguration();

Example

Copied to your clipboard
MobileCore.clearUpdatedConfiguration();

Java

Syntax

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

Example

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

Swift

Syntax

Copied to your clipboard
static func configure(withAppId: String)

Example

Copied to your clipboard
ACPCore.configure(withAppId: "1423ae38-8385-8963-8693-28375403491d")

Objective-C

Syntax

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

Example

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

C#

Syntax

Copied to your clipboard
public static void ConfigureWithAppID(string appId)

Example

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

C#

Android syntax

Copied to your clipboard
public unsafe static void ConfigureWithAppID (string appId);

iOS syntax

Copied to your clipboard
public static void ConfigureWithAppID (string appid);

Example

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

Java

Syntax

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

Example

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

Java

Syntax

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

Example

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

Swift

Syntax

Copied to your clipboard
static func configureWithFile(inPath: String)

Example

Copied to your clipboard
let filePath = Bundle.main.path(forResource: "ExampleJSONFile", ofType: "json")
ACPCore.configureWithFile(inPath: 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"];
[ACPCore configureWithFileInPath:filePath];

C#

Android syntax

Copied to your clipboard
public unsafe static void ConfigureWithFileInPath (string filepath);

iOS syntax

Copied to your clipboard
public static void ConfigureWithFileInPath (string filepath);

Example

Copied to your clipboard
ACPCore.ConfigureWithFileInPath("absolute/path/to/exampleJSONfile.json");

Java

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

Swift

Copied to your clipboard
let coreExtensionVersion = ACPCore.extensionVersion()

Objective-C

Copied to your clipboard
NSString *coreExtensionVersion = [ACPCore extensionVersion];

JavaScript

Copied to your clipboard
ACPCore.extensionVersion().then(coreExtensionVersion => console.log("AdobeExperienceSDK: ACPCore version: " + coreExtensionVersion));

Dart

Copied to your clipboard
String coreExtensionVersion = await FlutterACPCore.extensionVersion;

Cordova

Copied to your clipboard
ACPCore.extensionVersion(function(version) {
console.log("ACPCore version: " + version);
}, function(error) {
console.log(error);
});

C#

Copied to your clipboard
string coreExtensionVersion = ACPCore.ExtensionVersion();

C#

Copied to your clipboard
string coreExtensionVersion = ACPCore.ExtensionVersion();

Java

Syntax

Copied to your clipboard
public static void updateConfiguration(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
static func updateConfiguration(_: [String: Any])

Example

Copied to your clipboard
let updatedConfig = ["global.privacy":"optedout"]
ACPCore.updateConfiguration(updatedConfig)

Objective-C

Syntax

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

Example

Copied to your clipboard
NSDictionary *updatedConfig = @{@"global.privacy":@"optedout"};
[ACPCore updateConfiguration:updatedConfig];

JavaScript

Syntax

Copied to your clipboard
updateConfiguration(configMap?: { string: any })

Example

Copied to your clipboard
ACPCore.updateConfiguration({"global.privacy":"optedout"});

Dart

Syntax

Copied to your clipboard
static Future<void> updateConfiguration(Map<String, Object> configMap);

Example

Copied to your clipboard
FlutterACPCore.updateConfiguration({"global.privacy":"optedout"});

Javascript

Copied to your clipboard
ACPCore.updateConfiguration({"newConfigKey":"newConfigValue"}, successCallback, errorCallback);

C#

Syntax

Copied to your clipboard
public static void UpdateConfiguration(Dictionary<string, object> config);

Example

Copied to your clipboard
var dict = new Dictionary<string, object>();
dict.Add("newConfigKey", "newConfigValue");
ACPCore.UpdateConfiguration(dict);

C#

Syntax

Copied to your clipboard
void UpdateConfiguration([NullAllowed] NSDictionary config);

iOS example

Copied to your clipboard
var config = new NSMutableDictionary<NSString, NSObject>
{
["newConfigKey"] = new NSString("newConfigValue")
};
ACPCore.UpdateConfiguration(config);

Android example

Copied to your clipboard
var config = new Dictionary<string, Java.Lang.Object>();
config.Add("newConfigKey", "newConfigValue");
ACPCore.UpdateConfiguration(config);
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.