sfmcsdk / com.salesforce.marketingcloud.sfmcsdk.components.identity / Identity

Identity

class Identity

Properties

moduleIdentities

val moduleIdentities: Map<ModuleIdentifier, ModuleIdentity>

platform

val platform: String

registrationId

val registrationId: String

Functions

clearProfileAttribute

Method to clear a profile Attribute on modules identified by ModuleIdentifier If modules are not specified , defaults to all modules via ModuleIdentifier

fun clearProfileAttribute(key: String, vararg modules: ModuleIdentifier = ModuleIdentifier.values()): Unit

clearProfileAttributes

Method to clear a profile list of attributes on modules identified by ModuleIdentifier If modules are not specified , defaults to all modules via ModuleIdentifier

fun clearProfileAttributes(keys: List<String>, vararg modules: ModuleIdentifier = ModuleIdentifier.values()): Unit

setProfile

Method to set the Profile Id , Profile attributes for a module ModuleIdentifier and notify change to modules specified

fun setProfile(profileId: String, attributes: Map<String, String?>, module: ModuleIdentifier, vararg modules: ModuleIdentifier): Unit

Method to set the new Profile Profile for a module ModuleIdentifier and notify change to modules specified

fun setProfile(profile: Profile, module: ModuleIdentifier, vararg modules: ModuleIdentifier): Unit

Method to set the Profile information for map of Modules identified by ModuleIdentifier

fun setProfile(identities: Map<ModuleIdentifier, Profile>): Unit

setProfileAttribute

Method to set Profile Attributes to the modules identified by ModuleIdentifier If modules are not specified , defaults to all modules via ModuleIdentifier

fun setProfileAttribute(key: String, value: String?, vararg modules: ModuleIdentifier = ModuleIdentifier.values()): Unit

setProfileAttributes

Method to set Profile Attributes to the modules identified by ModuleIdentifier If modules are not specified , defaults to all modules via ModuleIdentifier

fun setProfileAttributes(attributes: Map<String, String?>, vararg modules: ModuleIdentifier = ModuleIdentifier.values()): Unit

setProfileId

Method to set the Profile Id to the modules identified by ModuleIdentifier If modules are not specified , it defaults to all modules via ModuleIdentifier

fun setProfileId(id: String, vararg modules: ModuleIdentifier = ModuleIdentifier.values()): Unit

Method to set the Profile Id for each module identified by ModuleIdentifier

fun setProfileId(ids: Map<ModuleIdentifier, String>): Unit

toString

fun toString(): String

Companion Object Properties

instance

var instance: Identity