sfmcsdk / com.salesforce.marketingcloud.sfmcsdk.components.behaviors / Behavior

Behavior

sealed class Behavior

Container for all known BehaviorTypes.

Types

AppBackgrounded

This behavior will be notified when the application's UI is no longer visible on the screen.

class AppBackgrounded : Behavior

AppForegrounded

This behavior will be notified when the application comes into the foreground and is "sticky".

class AppForegrounded : Behavior

AppVersionChanged

This behavior will be notified when the previously recorded version of the application does not match the current version of the application.

class AppVersionChanged : Behavior

ScreenEntry

This behavior will be notified as the user traverses through the application's Activities.

class ScreenEntry : Behavior

Properties

appName

The application name.

val appName: String?

appVersion

The current application version.

val appVersion: String?

previousVersion

The previously recorded version or null.

val previousVersion: String?

timestamp

The timestamp of the behavior event.

val timestamp: Long

Extension Functions

toEvent

fun Behavior.toEvent(): Event?