diff --git a/example/lib/rokt_layouts_screen.dart b/example/lib/rokt_layouts_screen.dart index 8865735..284d8bc 100644 --- a/example/lib/rokt_layouts_screen.dart +++ b/example/lib/rokt_layouts_screen.dart @@ -144,7 +144,7 @@ class _RoktLayoutsScreenState extends State { .identify(identityRequest: identityRequest); widget.mpInstance?.rokt.selectPlacements( - placementId: _placementIdController.text, + identifier: _placementIdController.text, attributes: _getAttributesForPlatform()); print('${_getPlatform()} Rokt selectPlacements called'); } catch (e) { diff --git a/lib/mparticle_flutter_sdk.dart b/lib/mparticle_flutter_sdk.dart index ec79318..6c227ad 100644 --- a/lib/mparticle_flutter_sdk.dart +++ b/lib/mparticle_flutter_sdk.dart @@ -306,20 +306,20 @@ class Rokt { static const MethodChannel _channel = const MethodChannel('mparticle_flutter_sdk'); - /// Selects placements with a [placementId], optional [attributes], optional [roktConfig], and optional [fontFilePathMap]. + /// Selects placements with a [identifier], optional [attributes], optional [roktConfig], and optional [fontFilePathMap]. /// /// This method calls the Rokt selectPlacements API on each platform: /// - Web: mParticle.Rokt.selectPlacements() /// - Android: MParticle.getInstance()?.Rokt().selectPlacements() /// - iOS: MParticle.sharedInstance().rokt.selectPlacements() Future selectPlacements({ - required String placementId, + required String identifier, Map? attributes, RoktConfig? roktConfig, Map? fontFilePathMap, }) async { var params = { - 'placementId': placementId, + 'placementId': identifier, 'attributes': attributes, 'config': _roktConfigToMap(config: roktConfig), 'fontFilePathMap': fontFilePathMap, diff --git a/test/mparticle_flutter_sdk_test.dart b/test/mparticle_flutter_sdk_test.dart index 01f2e7d..47a4239 100644 --- a/test/mparticle_flutter_sdk_test.dart +++ b/test/mparticle_flutter_sdk_test.dart @@ -305,7 +305,7 @@ void main() { cacheDurationInSeconds: 100, cacheAttributes: {'key1': 'value1'})); await mp.rokt.selectPlacements( - placementId: 'placement1', + identifier: 'placement1', attributes: {'attr1': 'val1'}, roktConfig: roktConfig, fontFilePathMap: {'font1': 'path1'}); @@ -329,7 +329,7 @@ void main() { test('rokt select placements with placeholders', () async { mp.attachPlaceholder(id: 1, name: "placeholder1"); await mp.rokt.selectPlacements( - placementId: 'placement1', + identifier: 'placement1', ); expect(