setCustomId method

Future<void> setCustomId(
  1. String customId
)

Sets and saves a custom id. @param customId The custom id that will be saved.

Implementation

Future<void> setCustomId(String customId) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  await prefs.setString(_customIdKey, customId);
  await MBAudienceManager.shared.updateMetadata();
}