AxpMessaging

Facade for the AXP Messaging module.

Properties

Link copied to clipboard
Link copied to clipboard

A Flow that emits IdleTimeout objects when an idle timeout event occurs.

Functions

Link copied to clipboard

Adds a listener for idle timeout events. This is useful for monitoring when the user session becomes idle. This is an alternative to using the idleTimeoutFlow for developers who prefer callback-based APIs over Kotlin's Flow API.

Link copied to clipboard
suspend fun getNotificationData(notificationPayload: NotificationPayload): AxpResult<out List<NotificationResult>>

This function is a suspending function that fetches notification data.

fun getNotificationData(notificationPayload: NotificationPayload, responseHandler: ResponseHandler<List<NotificationResult>>)

Fetches notification data asynchronously.

Link copied to clipboard
suspend fun reconnect()

This function is used to reconnect the session to fetch latest events.

Link copied to clipboard

Removes a listener for idle timeout events.

Link copied to clipboard

Reset the idleTimeout to indicate the SDK that the user session is still active. The SDK already resets the timeout when it receives a request to sendMessage. Invoke this method only when client want to indicate a user's activity visible only to the client (apart from the above mentioned activity)