com.medallia.mxo
Automatic API
Get or set the current automatic Interaction tracking configuration using the following:
public var mxoAutomaticInteractionTrackingConfiguration: MXOAutomaticInteractionTrackingConfiguration?
Use the convenience function to configure the automatic Interaction tracking:
public fun mxoConfigureAutomaticInteractionTracking(
initializer: MXOAutomaticInteractionTrackingConfiguration.Builder.() -> Unit = { },
): MXOAutomaticInteractionTrackingConfiguration
Property | Type | Description |
---|---|---|
initializer | MXOAutomaticInteractionTrackingConfiguration.Builder.() | The receiver function for the Builder. |
To retrieve an automatic Interaction, use the extension functions below:
public fun Activity.getMxoAutomaticInteraction(
throwErrors: Boolean = false,
): MXOInteraction?
public fun Fragment.getMxoAutomaticInteraction(
throwErrors: Boolean = false,
): MXOInteraction?
Property | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Automatic Interaction assignment API
Assign an automatic Interaction to a View to be used instead of using the automatic path.
public fun mxoAssignAutomaticInteraction(
throwErrors: Boolean = false,
assignment: MXOAutomaticInteractionAssignment?,
)
Property | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
assignment | MXOAutomaticInteractionAssignment? | The assigned Interaction. |
Use the convenience function below to assign an Interaction:
public inline fun mxoAssignAutomaticInteraction(
throwErrors: Boolean = false,
initializer: MXOAutomaticInteractionAssignment.Builder.() -> Unit = { },
): Unit
Property | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
initializer | MXOAutomaticInteractionAssignment.Builder.() | The receiver function for the Builder. |
Automatic Interaction exclusion API
Exclude a View from automatically being tracked as an Interaction using the following:
public fun mxoExcludeAutomaticInteraction(
throwErrors: Boolean = false,
exclusion: MXOAutomaticInteractionExclusion?,
)
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
exclusion | MXOAutomaticInteractionExclusion? | The excluded Interaction. |
Use the convenience function to exclude an Interaction:
@JvmSynthetic
public inline fun mxoExcludeAutomaticInteraction(
throwErrors: Boolean = false,
initializer: MXOAutomaticInteractionExclusion.Builder.() -> Unit = { },
): Unit
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
initializer | MXOAutomaticInteractionExclusion.Builder.() | The receiver function for the Builder. |
Automatic Interaction subscription API
Subscribe to automatic Interaction request responses using the following:
public fun mxoSubscribeToAutomaticInteraction(
throwErrors: Boolean = false,
subscriber: MXOAutomaticInteractionSubscriber?,
): MXOAutomaticInteractionSubscription?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
subscriber | MXOAutomaticInteractionSubscriber? | The subscriber for an Interaction. |
Use the convenience function to subscribe to automatic Interaction tracking:
@JvmSynthetic
public inline fun mxoAssignAutomaticInteraction(
throwErrors: Boolean = false,
initializer: MXOAutomaticInteractionAssignment.Builder.() -> Unit = { },
): Unit
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
initializer | MXOAutomaticInteractionAssignment.Builder.() | The receiver function for the Builder. |
Configuration API
Get or set the MXO SDK configuration using the following:
public var mxoConfiguration: MXOConfiguration?
Use the convenience function to configure the SDK:
public fun mxoConfigure(
initializer: MXOConfiguration.Builder.() -> Unit = { },
): MXOConfiguration
Parameter | Type | Description |
---|---|---|
initializer | MXOConfiguration.Builder.() | The receiver function for the Builder. |
Identity APIs
Retrieve the TID of the current user using the following:
public fun mxoGetTid(
throwErrors: Boolean = false,
): String
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Clear the current user's TID from the SDK using the following:
public fun mxoClearTid(
throwErrors: Boolean = false
): Unit
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
This feature enables the SDK to notify MXO when multiple user's may access the same app on the same device.
Identity Transfer API
Programmatic API to process a deep link to an app that has had the MXO Orchestration Plugin disabled or has had the identity transfer disabled therefore preventing the automatic sending of deep link parameters to MXO.
Get or set the MXO SDK identity transfer configuration using the following:
public var mxoIdentityTransferConfiguration: MXOIdentityTransferConfiguration?
Use the convenience function to configure the identity transfer:
public fun mxoConfigureIdentityTransfer(
initializer: MXOIdentityTransferConfiguration.Builder.() -> Unit = { },
): MXOIdentityTransferConfiguration
Parameter | Type | Description |
---|---|---|
initializer | MXOIdentityTransferConfiguration.Builder.() | The receiver function for the Builder. |
Process a URL or Uri deep link using the extension functions below:
public fun Uri?.process(
throwErrors: Boolean = false,
)
public fun URI?.process(
throwErrors: Boolean = false,
)
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Generate a URL or Uri with a tid
query parameter using the extension functions below:
public fun URL?.generateIdentityTransferUrl(
throwErrors: Boolean = false,
): URL?
public fun Uri?.generateIdentityTransferUri(
throwErrors: Boolean = false,
): Uri?
public fun URI?.generateIdentityTransferUri(
throwErrors: Boolean = false,
): URI?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Interaction API
Process the response returned from sending an Interaction using the following:
public fun MXOInteractionResponse?.process(
throwErrors: Boolean = false,
)
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Interaction Network API
Send Interactions to MXO using the following:
public suspend fun mxoSendInteraction(
throwErrors: Boolean = false,
mxoInteractionRequest: MXOInteractionRequest,
): MXOInteractionResponse?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
mxoInteractionRequest | MXOInteractionRequest | The Interaction request to be sent. |
Use the convenience function to send Interactions:
public suspend inline fun mxoSendInteraction(
throwErrors: Boolean = false,
initializer: MXOInteractionRequest.Builder.() -> Unit = { },
): MXOInteractionResponse?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
initializer | MXOInteractionRequest.Builder.() | The receiver function for the Builder. |
Send Properties to MXO using the following:
public suspend fun mxoSendProperties(
throwErrors: Boolean = false,
mxoInteractionRequest: MXOInteractionRequest,
): MXOInteractionResponse?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
mxoInteractionRequest | MXOInteractionRequest | The Interaction request to be sent. |
Use the convenience function to send Properties:
public suspend inline fun mxoSendProperties(
throwErrors: Boolean = false,
initializer: MXOInteractionRequest.Builder.() -> Unit = { },
): MXOInteractionResponse?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
initializer | MXOInteractionRequest.Builder.() | The receiver function for the Builder. |
Send response code to MXO using the following:
public suspend fun mxoSendInteractionResponseCode(
throwErrors: Boolean = false,
mxoResponseCodeRequest: MXOResponseCodeRequest,
): MXOInteractionResponse?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
mxoResponseCodeRequest | MXOResponseCodeRequest | The response code to be sent. |
Use the convenience function to send a response code:
public suspend inline fun mxoSendInteractionResponseCode(
throwErrors: Boolean = false,
initializer: MXOResponseCodeRequest.Builder.() -> Unit = { },
): MXOInteractionResponse?
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
initializer | MXOResponseCodeRequest.Builder.() | The receiver function for the Builder. |
Interaction URI API
Programmatic API to track an outbound link when the automatic outbound link tracking is disabled.
Generate a URL or Uri for outbound link tracking using the extension functions below:
public fun URL?.sendInteractionForOutboundLink(
throwErrors: Boolean = false,
): Unit
public fun Uri?.sendInteractionForOutboundLink(
throwErrors: Boolean = false,
): Unit
public fun URI?.sendInteractionForOutboundLink(
throwErrors: Boolean = false,
): Unit
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Location API
Inform the MXO SDK about location details using the following:
public fun Location?.process(
throwErrors: Boolean = false,
): Unit
Parameter | Type | Description |
---|---|---|
throwErrors | Boolean | Optional to handle errors using try/catch in addition to logging. |
Logging API
Get or set the MXO SDK logging configuration using the following:
public var mxoLoggingConfiguration: MXOLoggingConfiguration?
Use the convenience function to configure logging for the SDK:
@JvmSynthetic
public fun mxoConfigureLogging(
initializer: MXOLoggingConfiguration.Builder.() -> Unit = { },
): MXOLoggingConfiguration
Property | Type | Description |
---|---|---|
initializer | MXOLoggingConfiguration.Builder.() | The receiver function for the Builder. |
MXOError
An MXO SDK Runtime exception.
public sealed class MXOError(
message: String,
): RuntimeException(message)
Parameter | Type | Description |
---|---|---|
message | String | The message describing the error. |
MXOErrorApi
The error class used to signify that an API error was encountered.
public class MXOErrorApi(
public val errorMessage: String,
): MXOError(errorMessage)
Parameter | Type | Description |
---|---|---|
errorMessage | String | API Error message. |
MXOErrorSdk
The error class used to signify that an SDK error was encountered.
public class MXOErrorSdk(
public val systemCode: Int,
public val errorMessage: String,
): MXOError(errorMessage)
Parameter | Type | Description |
---|---|---|
systemCode | Int | SDK error code. |
errorMessage | String | SDK error message. |
Opt Out API
Get or set the optout
settings for compliance with a user's will to be tracked or not using the following:
public var mxoOptOutConfiguration: MXOOptOutConfiguration?
Use the convenience function to configure optout
for the SDK:
@JvmSynthetic
public fun mxoConfigureOptOut(
initializer: MXOOptOutConfiguration.Builder.() -> Unit = { },
): MXOOptOutConfiguration
Property | Type | Description |
---|---|---|
initializer | MXOOptOutConfiguration.Builder.() | The receiver function for the Builder. |
Version API
public val mxoVersion: String