Appcues

class Appcues

The main entry point for using Appcues functionality in your application - tracking analytics and rendering experiences.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Sets the listener to be notified about published analytics.

Link copied to clipboard

Set the listener to be notified about the display of Experience content.

Link copied to clipboard

Set the interceptor for additional control over SDK runtime behaviors.

Link copied to clipboard

Sets the handler to use for link navigation.

Link copied to clipboard

The current version of Appcues SDK.

Functions

Link copied to clipboard
fun anonymous()

Generate a unique Id for the current user when there is not a known identity to use in the {@link identity(String, Map) identity} call. This will cause the SDK to begin tracking activity and checking for qualified content.

Link copied to clipboard
fun debug(activity: Activity)

Starts the Appcues Debugger over the specified Activity.

Link copied to clipboard
fun group(groupId: String?, properties: Map<String, Any>? = null)

Identify a group for the current user.

Link copied to clipboard
fun identify(userId: String, properties: Map<String, Any>? = null)

Identify the user and determine if they should see Appcues content.

Link copied to clipboard
fun onNewIntent(activity: Activity, intent: Intent?): Boolean

Notify Appcues of a new Intent to check for deep link content. This should be used to pass along Intents that may be using the custom Appcues scheme, for things like previewing experiences.

Link copied to clipboard
fun registerEmbed(frameId: String, frame: AppcuesFrameView)

Register an AppcuesFrameView for a given frameId.

Link copied to clipboard
fun reset()

Clears out the current user in this session. Can be used when the user logs out of your application.

Link copied to clipboard
fun screen(title: String, properties: Map<String, Any>? = null)

Track an screen viewed by a user.

Link copied to clipboard
fun setPushToken(token: String?)

Provide the Firebase Cloud Messaging (FCM) device token to Appcues.

Link copied to clipboard
suspend fun show(experienceId: String): Boolean

Renders the specified Appcues experience for the current user.

Link copied to clipboard
fun stop()

Signals to Appcues that this instance should stop all ongoing jobs.

Link copied to clipboard
fun track(name: String, properties: Map<String, Any>? = null)

Track an action taken by a user.

Link copied to clipboard

Enables automatic screen tracking for Activities.