diff --git a/_versions/7.6.md b/_versions/7.6.md new file mode 100644 index 00000000..a36c454c --- /dev/null +++ b/_versions/7.6.md @@ -0,0 +1,3 @@ +--- +version: 7.6 +--- \ No newline at end of file diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-a-p-p_-s-t-a-r-t/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-a-p-p_-s-t-a-r-t/index.md new file mode 100644 index 00000000..cbd2b364 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-a-p-p_-s-t-a-r-t/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[APP_START](index.md) + +# APP_START + +[androidJvm]\ +[APP_START](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Event type id | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-c-u-s-t-o-m/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-c-u-s-t-o-m/index.md new file mode 100644 index 00000000..98ab96cf --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-c-u-s-t-o-m/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[CUSTOM](index.md) + +# CUSTOM + +[androidJvm]\ +[CUSTOM](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Event type id | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/get-by-id.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/get-by-id.md new file mode 100644 index 00000000..4a51271b --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/get-by-id.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[Companion](index.md)/[getById](get-by-id.md) + +# getById + +[androidJvm]\ + +@Nullable + +fun [getById](get-by-id.md)(@NotNulltypeId: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [EventType](../index.md)? + +Gets the trigger log event type for a given [typeId](get-by-id.md). If [typeId](get-by-id.md) argument is not any of the valid id, null will be returned. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/index.md new file mode 100644 index 00000000..bd7c5145 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/index.md @@ -0,0 +1,12 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[Companion](index.md) + +# Companion + +[androidJvm]\ +object [Companion](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [getById](get-by-id.md) | [androidJvm]
@Nullable
fun [getById](get-by-id.md)(@NotNulltypeId: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [EventType](../index.md)?
Gets the trigger log event type for a given [typeId](get-by-id.md). If [typeId](get-by-id.md) argument is not any of the valid id, null will be returned. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-i-n-v-a-l-i-d/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-i-n-v-a-l-i-d/index.md new file mode 100644 index 00000000..594acd38 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-i-n-v-a-l-i-d/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[INVALID](index.md) + +# INVALID + +[androidJvm]\ +[INVALID](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Event type id | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-l-o-g-i-n_-s-u-c-c-e-s-s-f-u-l/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-l-o-g-i-n_-s-u-c-c-e-s-s-f-u-l/index.md new file mode 100644 index 00000000..54479037 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-l-o-g-i-n_-s-u-c-c-e-s-s-f-u-l/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[LOGIN_SUCCESSFUL](index.md) + +# LOGIN_SUCCESSFUL + +[androidJvm]\ +[LOGIN_SUCCESSFUL](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Event type id | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-p-u-r-c-h-a-s-e_-s-u-c-c-e-s-s-f-u-l/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-p-u-r-c-h-a-s-e_-s-u-c-c-e-s-s-f-u-l/index.md new file mode 100644 index 00000000..9f1b4812 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-p-u-r-c-h-a-s-e_-s-u-c-c-e-s-s-f-u-l/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[EventType](../index.md)/[PURCHASE_SUCCESSFUL](index.md) + +# PURCHASE_SUCCESSFUL + +[androidJvm]\ +[PURCHASE_SUCCESSFUL](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Event type id | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md new file mode 100644 index 00000000..89fa073a --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md @@ -0,0 +1,39 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[EventType](index.md) + +# EventType + +[androidJvm]\ +enum [EventType](index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)<[EventType](index.md)> + +Local events type according to type ID. + +## Entries + +| | | +|---|---| +| [INVALID](-i-n-v-a-l-i-d/index.md) | [androidJvm]
[INVALID](-i-n-v-a-l-i-d/index.md) | +| [APP_START](-a-p-p_-s-t-a-r-t/index.md) | [androidJvm]
[APP_START](-a-p-p_-s-t-a-r-t/index.md) | +| [LOGIN_SUCCESSFUL](-l-o-g-i-n_-s-u-c-c-e-s-s-f-u-l/index.md) | [androidJvm]
[LOGIN_SUCCESSFUL](-l-o-g-i-n_-s-u-c-c-e-s-s-f-u-l/index.md) | +| [PURCHASE_SUCCESSFUL](-p-u-r-c-h-a-s-e_-s-u-c-c-e-s-s-f-u-l/index.md) | [androidJvm]
[PURCHASE_SUCCESSFUL](-p-u-r-c-h-a-s-e_-s-u-c-c-e-s-s-f-u-l/index.md) | +| [CUSTOM](-c-u-s-t-o-m/index.md) | [androidJvm]
[CUSTOM](-c-u-s-t-o-m/index.md) | + +## Types + +| Name | Summary | +|---|---| +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [valueOf](value-of.md) | [androidJvm]
fun [valueOf](value-of.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [EventType](index.md)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) | +| [values](values.md) | [androidJvm]
fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[EventType](index.md)>
Returns an array containing the constants of this enum type, in the order they're declared. | + +## Properties + +| Name | Summary | +|---|---| +| [name](../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](type-id.md) | [androidJvm]
val [typeId](type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Event type id | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/type-id.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/type-id.md new file mode 100644 index 00000000..ee53c966 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/type-id.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[EventType](index.md)/[typeId](type-id.md) + +# typeId + +[androidJvm]\ +val [typeId](type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/value-of.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/value-of.md new file mode 100644 index 00000000..c8bb81de --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/value-of.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[EventType](index.md)/[valueOf](value-of.md) + +# valueOf + +[androidJvm]\ +fun [valueOf](value-of.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [EventType](index.md) + +Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) + +#### Throws + +| | | +|---|---| +| [IllegalArgumentException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html) | if this enum type has no constant with the specified name | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/values.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/values.md new file mode 100644 index 00000000..45f747ae --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/values.md @@ -0,0 +1,10 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[EventType](index.md)/[values](values.md) + +# values + +[androidJvm]\ +fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[EventType](index.md)> + +Returns an array containing the constants of this enum type, in the order they're declared. + +This method may be used to iterate over the constants. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-b-o-o-l-e-a-n/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-b-o-o-l-e-a-n/index.md new file mode 100644 index 00000000..4966e249 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-b-o-o-l-e-a-n/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[BOOLEAN](index.md) + +# BOOLEAN + +[androidJvm]\ +[BOOLEAN](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/get-by-id.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/get-by-id.md new file mode 100644 index 00000000..be39aab0 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/get-by-id.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[Companion](index.md)/[getById](get-by-id.md) + +# getById + +[androidJvm]\ + +@Nullable + +fun [getById](get-by-id.md)(@NotNulltypeId: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [ValueType](../index.md)? + +Gets the value data type for a given [typeId](get-by-id.md). If [typeId](get-by-id.md) argument is not any of the valid id, null will be returned. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/index.md new file mode 100644 index 00000000..145297b1 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/index.md @@ -0,0 +1,12 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[Companion](index.md) + +# Companion + +[androidJvm]\ +object [Companion](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [getById](get-by-id.md) | [androidJvm]
@Nullable
fun [getById](get-by-id.md)(@NotNulltypeId: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [ValueType](../index.md)?
Gets the value data type for a given [typeId](get-by-id.md). If [typeId](get-by-id.md) argument is not any of the valid id, null will be returned. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-d-o-u-b-l-e/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-d-o-u-b-l-e/index.md new file mode 100644 index 00000000..0fd1f5b7 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-d-o-u-b-l-e/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[DOUBLE](index.md) + +# DOUBLE + +[androidJvm]\ +[DOUBLE](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-t-e-g-e-r/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-t-e-g-e-r/index.md new file mode 100644 index 00000000..b8a1887a --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-t-e-g-e-r/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[INTEGER](index.md) + +# INTEGER + +[androidJvm]\ +[INTEGER](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-v-a-l-i-d/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-v-a-l-i-d/index.md new file mode 100644 index 00000000..78b0c4d4 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-v-a-l-i-d/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[INVALID](index.md) + +# INVALID + +[androidJvm]\ +[INVALID](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-s-t-r-i-n-g/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-s-t-r-i-n-g/index.md new file mode 100644 index 00000000..0d40fadb --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-s-t-r-i-n-g/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[STRING](index.md) + +# STRING + +[androidJvm]\ +[STRING](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](../-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md new file mode 100644 index 00000000..b0117f89 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../../index.md)/[ValueType](../index.md)/[TIME_IN_MILLI](index.md) + +# TIME_IN_MILLI + +[androidJvm]\ +[TIME_IN_MILLI](index.md) + +## Properties + +| Name | Summary | +|---|---| +| [name](index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](../type-id.md) | [androidJvm]
val [typeId](../type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md new file mode 100644 index 00000000..b339a91d --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md @@ -0,0 +1,40 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[ValueType](index.md) + +# ValueType + +[androidJvm]\ +enum [ValueType](index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)<[ValueType](index.md)> + +Data value's type supported by InAppMessaging's custom events. + +## Entries + +| | | +|---|---| +| [INVALID](-i-n-v-a-l-i-d/index.md) | [androidJvm]
[INVALID](-i-n-v-a-l-i-d/index.md) | +| [STRING](-s-t-r-i-n-g/index.md) | [androidJvm]
[STRING](-s-t-r-i-n-g/index.md) | +| [INTEGER](-i-n-t-e-g-e-r/index.md) | [androidJvm]
[INTEGER](-i-n-t-e-g-e-r/index.md) | +| [DOUBLE](-d-o-u-b-l-e/index.md) | [androidJvm]
[DOUBLE](-d-o-u-b-l-e/index.md) | +| [BOOLEAN](-b-o-o-l-e-a-n/index.md) | [androidJvm]
[BOOLEAN](-b-o-o-l-e-a-n/index.md) | +| [TIME_IN_MILLI](-t-i-m-e_-i-n_-m-i-l-l-i/index.md) | [androidJvm]
[TIME_IN_MILLI](-t-i-m-e_-i-n_-m-i-l-l-i/index.md) | + +## Types + +| Name | Summary | +|---|---| +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [valueOf](value-of.md) | [androidJvm]
fun [valueOf](value-of.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [ValueType](index.md)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) | +| [values](values.md) | [androidJvm]
fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[ValueType](index.md)>
Returns an array containing the constants of this enum type, in the order they're declared. | + +## Properties + +| Name | Summary | +|---|---| +| [name](-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661) | [androidJvm]
val [name](-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-372974862%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [ordinal](-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661) | [androidJvm]
val [ordinal](-t-i-m-e_-i-n_-m-i-l-l-i/index.md#-739389684%2FProperties%2F-93201661): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [typeId](type-id.md) | [androidJvm]
val [typeId](type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Value type id. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/type-id.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/type-id.md new file mode 100644 index 00000000..d7a76408 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/type-id.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[ValueType](index.md)/[typeId](type-id.md) + +# typeId + +[androidJvm]\ +val [typeId](type-id.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/value-of.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/value-of.md new file mode 100644 index 00000000..dca0c1e9 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/value-of.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[ValueType](index.md)/[valueOf](value-of.md) + +# valueOf + +[androidJvm]\ +fun [valueOf](value-of.md)(value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [ValueType](index.md) + +Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) + +#### Throws + +| | | +|---|---| +| [IllegalArgumentException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html) | if this enum type has no constant with the specified name | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/values.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/values.md new file mode 100644 index 00000000..968be738 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/values.md @@ -0,0 +1,10 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](../index.md)/[ValueType](index.md)/[values](values.md) + +# values + +[androidJvm]\ +fun [values](values.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[ValueType](index.md)> + +Returns an array containing the constants of this enum type, in the order they're declared. + +This method may be used to iterate over the constants. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/index.md new file mode 100644 index 00000000..a441404c --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/index.md @@ -0,0 +1,10 @@ +//[inappmessaging](../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](index.md) + +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [EventType](-event-type/index.md) | [androidJvm]
enum [EventType](-event-type/index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)<[EventType](-event-type/index.md)>
Local events type according to type ID. | +| [ValueType](-value-type/index.md) | [androidJvm]
enum [ValueType](-value-type/index.md) : [Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)<[ValueType](-value-type/index.md)>
Data value's type supported by InAppMessaging's custom events. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/-app-start-event.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/-app-start-event.md new file mode 100644 index 00000000..20d7d4e0 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/-app-start-event.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[AppStartEvent](index.md)/[AppStartEvent](-app-start-event.md) + +# AppStartEvent + +[androidJvm]\ +constructor() diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/index.md new file mode 100644 index 00000000..84cbfafa --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/index.md @@ -0,0 +1,25 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[AppStartEvent](index.md) + +# AppStartEvent + +[androidJvm]\ +class [AppStartEvent](index.md) : [BaseEvent](../-base-event/index.md) + +App start logEvent for host app to use. Host app can send this event after every app launch, including first launch, or resume. It is recommended to log this event in host app's base activity's onResume(). + +## Constructors + +| | | +|---|---| +| [AppStartEvent](-app-start-event.md) | [androidJvm]
constructor() | + +## Functions + +| Name | Summary | +|---|---| +| [getAttributeMap](../-base-event/get-attribute-map.md) | [androidJvm]
@NotNull
open override fun [getAttributeMap](../-base-event/get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?>
This method is intended to be used by child classes which doesn't override this method. Returns an empty map. | +| [getEventName](../-base-event/get-event-name.md) | [androidJvm]
open override fun [getEventName](../-base-event/get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
This method returns the event name. | +| [getEventType](../-base-event/get-event-type.md) | [androidJvm]
@NotNull
open override fun [getEventType](../-base-event/get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
This method returns the event type id. | +| [getRatEventMap](../-base-event/get-rat-event-map.md) | [androidJvm]
@NotNull
open override fun [getRatEventMap](../-base-event/get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
A map will be created containing event's base attributes like event name, and timestamp. | +| [getTimestamp](../-base-event/get-timestamp.md) | [androidJvm]
@NotNull
open override fun [getTimestamp](../-base-event/get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
This method returns the timestamp. | +| [isPersistentType](../-base-event/is-persistent-type.md) | [androidJvm]
@NotNull
open override fun [isPersistentType](../-base-event/is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-base-event.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-base-event.md new file mode 100644 index 00000000..4476ebc4 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-base-event.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[BaseEvent](-base-event.md) + +# BaseEvent + +[androidJvm]\ +constructor(@NotNulleventType: [EventType](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md), @NotNulleventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullisPersistent: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-companion/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-companion/index.md new file mode 100644 index 00000000..22ad712c --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-companion/index.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../../index.md)/[BaseEvent](../index.md)/[Companion](index.md) + +# Companion + +[androidJvm]\ +object [Companion](index.md) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-attribute-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-attribute-map.md new file mode 100644 index 00000000..98a62035 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-attribute-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[getAttributeMap](get-attribute-map.md) + +# getAttributeMap + +[androidJvm]\ + +@NotNull + +open override fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?> + +This method is intended to be used by child classes which doesn't override this method. Returns an empty map. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-name.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-name.md new file mode 100644 index 00000000..bd54dd33 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-name.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[getEventName](get-event-name.md) + +# getEventName + +[androidJvm]\ +open override fun [getEventName](get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) + +This method returns the event name. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-type.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-type.md new file mode 100644 index 00000000..69a4fd53 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-type.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[getEventType](get-event-type.md) + +# getEventType + +[androidJvm]\ + +@NotNull + +open override fun [getEventType](get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +This method returns the event type id. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-rat-event-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-rat-event-map.md new file mode 100644 index 00000000..41731b37 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-rat-event-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[getRatEventMap](get-rat-event-map.md) + +# getRatEventMap + +[androidJvm]\ + +@NotNull + +open override fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +A map will be created containing event's base attributes like event name, and timestamp. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-timestamp.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-timestamp.md new file mode 100644 index 00000000..13aa8778 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-timestamp.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[getTimestamp](get-timestamp.md) + +# getTimestamp + +[androidJvm]\ + +@NotNull + +open override fun [getTimestamp](get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) + +This method returns the timestamp. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/index.md new file mode 100644 index 00000000..7874e8c1 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/index.md @@ -0,0 +1,43 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md) + +# BaseEvent + +abstract class [BaseEvent](index.md)(@NotNulleventType: [EventType](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md), @NotNulleventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullisPersistent: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [Event](../-event/index.md) + +BaseEvent will be the base class of all local events objects, including CustomEvent. During initialization, constructor parameters will be checked for validity if there are reasons to believe that parameter could be invalid. + +

Constructor will automatically store eventType, eventName, and timestamp at the moment of +object creation.

Event name can't be empty or null, else IllegalArgumentException will be thrown. Also, +logEvent name will be stored in upper case form. + +#### Inheritors + +| | +|---| +| [AppStartEvent](../-app-start-event/index.md) | +| [CustomEvent](../-custom-event/index.md) | +| [LoginSuccessfulEvent](../-login-successful-event/index.md) | +| [PurchaseSuccessfulEvent](../-purchase-successful-event/index.md) | + +## Constructors + +| | | +|---|---| +| [BaseEvent](-base-event.md) | [androidJvm]
constructor(@NotNulleventType: [EventType](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md), @NotNulleventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullisPersistent: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) | + +## Types + +| Name | Summary | +|---|---| +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [getAttributeMap](get-attribute-map.md) | [androidJvm]
@NotNull
open override fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?>
This method is intended to be used by child classes which doesn't override this method. Returns an empty map. | +| [getEventName](get-event-name.md) | [androidJvm]
open override fun [getEventName](get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
This method returns the event name. | +| [getEventType](get-event-type.md) | [androidJvm]
@NotNull
open override fun [getEventType](get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
This method returns the event type id. | +| [getRatEventMap](get-rat-event-map.md) | [androidJvm]
@NotNull
open override fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
A map will be created containing event's base attributes like event name, and timestamp. | +| [getTimestamp](get-timestamp.md) | [androidJvm]
@NotNull
open override fun [getTimestamp](get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
This method returns the timestamp. | +| [isPersistentType](is-persistent-type.md) | [androidJvm]
@NotNull
open override fun [isPersistentType](is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/is-persistent-type.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/is-persistent-type.md new file mode 100644 index 00000000..c275d929 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/is-persistent-type.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[BaseEvent](index.md)/[isPersistentType](is-persistent-type.md) + +# isPersistentType + +[androidJvm]\ + +@NotNull + +open override fun [isPersistentType](is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/-custom-event.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/-custom-event.md new file mode 100644 index 00000000..cffcb814 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/-custom-event.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[CustomEvent](index.md)/[CustomEvent](-custom-event.md) + +# CustomEvent + +[androidJvm]\ +constructor(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)eventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md new file mode 100644 index 00000000..d564cb5b --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md @@ -0,0 +1,43 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[CustomEvent](index.md)/[addAttribute](add-attribute.md) + +# addAttribute + +[androidJvm]\ + +@NotNull + +fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [CustomEvent](index.md) + +This method adds custom attribute of integer type. + +[androidJvm]\ + +@NotNull + +fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)): [CustomEvent](index.md) + +This method adds custom attribute of double type. + +[androidJvm]\ + +@NotNull + +fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [CustomEvent](index.md) + +This method adds custom attribute of string type. + +[androidJvm]\ + +@NotNull + +fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [CustomEvent](index.md) + +This method adds custom attribute of boolean type. + +[androidJvm]\ + +@NotNull + +fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Date](https://developer.android.com/reference/kotlin/java/util/Date.html)): [CustomEvent](index.md) + +This method adds custom attribute of date type. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-attribute-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-attribute-map.md new file mode 100644 index 00000000..b14ce328 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-attribute-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[CustomEvent](index.md)/[getAttributeMap](get-attribute-map.md) + +# getAttributeMap + +[androidJvm]\ + +@NotNull + +open override fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?> + +This method returns an unmodifiable map which contains all custom attributes. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-rat-event-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-rat-event-map.md new file mode 100644 index 00000000..53b4f036 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-rat-event-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[CustomEvent](index.md)/[getRatEventMap](get-rat-event-map.md) + +# getRatEventMap + +[androidJvm]\ + +@NotNull + +open override fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +This method returns an unmodifiable map which contains all event's attributes. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/index.md new file mode 100644 index 00000000..1bd8c059 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/index.md @@ -0,0 +1,31 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[CustomEvent](index.md) + +# CustomEvent + +class [CustomEvent](index.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)eventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [BaseEvent](../-base-event/index.md) + +Logging custom event for client to use. Note: Please don't use the same attribute's name more than once because the new attribute will replace the old one. + +#### Throws + +| | | +|---|---| +| [IllegalArgumentException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html) | if eventName is an empty string or is more than 255 characters. | + +## Constructors + +| | | +|---|---| +| [CustomEvent](-custom-event.md) | [androidJvm]
constructor(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)eventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | + +## Functions + +| Name | Summary | +|---|---| +| [addAttribute](add-attribute.md) | [androidJvm]
@NotNull
fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Date](https://developer.android.com/reference/kotlin/java/util/Date.html)): [CustomEvent](index.md)
This method adds custom attribute of date type.
[androidJvm]
@NotNull
fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [CustomEvent](index.md)
This method adds custom attribute of boolean type.
[androidJvm]
@NotNull
fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)): [CustomEvent](index.md)
This method adds custom attribute of double type.
[androidJvm]
@NotNull
fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [CustomEvent](index.md)
This method adds custom attribute of integer type.
[androidJvm]
@NotNull
fun [addAttribute](add-attribute.md)(@NotNullkey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [CustomEvent](index.md)
This method adds custom attribute of string type. | +| [getAttributeMap](get-attribute-map.md) | [androidJvm]
@NotNull
open override fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?>
This method returns an unmodifiable map which contains all custom attributes. | +| [getEventName](../-base-event/get-event-name.md) | [androidJvm]
open override fun [getEventName](../-base-event/get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
This method returns the event name. | +| [getEventType](../-base-event/get-event-type.md) | [androidJvm]
@NotNull
open override fun [getEventType](../-base-event/get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
This method returns the event type id. | +| [getRatEventMap](get-rat-event-map.md) | [androidJvm]
@NotNull
open override fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
This method returns an unmodifiable map which contains all event's attributes. | +| [getTimestamp](../-base-event/get-timestamp.md) | [androidJvm]
@NotNull
open override fun [getTimestamp](../-base-event/get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
This method returns the timestamp. | +| [isPersistentType](../-base-event/is-persistent-type.md) | [androidJvm]
@NotNull
open override fun [isPersistentType](../-base-event/is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-attribute-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-attribute-map.md new file mode 100644 index 00000000..cea7b7f3 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-attribute-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md)/[getAttributeMap](get-attribute-map.md) + +# getAttributeMap + +[androidJvm]\ + +@NotNull + +abstract fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?> + +This method returns event attribute map. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-name.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-name.md new file mode 100644 index 00000000..21dbfe6a --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-name.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md)/[getEventName](get-event-name.md) + +# getEventName + +[androidJvm]\ + +@NotNull + +abstract fun [getEventName](get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) + +This method returns event name. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-type.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-type.md new file mode 100644 index 00000000..8ecde254 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-type.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md)/[getEventType](get-event-type.md) + +# getEventType + +[androidJvm]\ + +@NotNull + +abstract fun [getEventType](get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +This method returns event type. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-rat-event-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-rat-event-map.md new file mode 100644 index 00000000..2b276c7b --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-rat-event-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md)/[getRatEventMap](get-rat-event-map.md) + +# getRatEventMap + +[androidJvm]\ + +@NotNull + +abstract fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +This method returns RAT event map. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-timestamp.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-timestamp.md new file mode 100644 index 00000000..3d931809 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-timestamp.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md)/[getTimestamp](get-timestamp.md) + +# getTimestamp + +[androidJvm]\ + +@NotNull + +abstract fun [getTimestamp](get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) + +This method returns event timestamp. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/index.md new file mode 100644 index 00000000..e58b128b --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/index.md @@ -0,0 +1,24 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md) + +# Event + +interface [Event](index.md) + +Interface of local events. + +#### Inheritors + +| | +|---| +| [BaseEvent](../-base-event/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [getAttributeMap](get-attribute-map.md) | [androidJvm]
@NotNull
abstract fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?>
This method returns event attribute map. | +| [getEventName](get-event-name.md) | [androidJvm]
@NotNull
abstract fun [getEventName](get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
This method returns event name. | +| [getEventType](get-event-type.md) | [androidJvm]
@NotNull
abstract fun [getEventType](get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
This method returns event type. | +| [getRatEventMap](get-rat-event-map.md) | [androidJvm]
@NotNull
abstract fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
This method returns RAT event map. | +| [getTimestamp](get-timestamp.md) | [androidJvm]
@NotNull
abstract fun [getTimestamp](get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
This method returns event timestamp. | +| [isPersistentType](is-persistent-type.md) | [androidJvm]
@NotNull
abstract fun [isPersistentType](is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/is-persistent-type.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/is-persistent-type.md new file mode 100644 index 00000000..a7ae936d --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/is-persistent-type.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[Event](index.md)/[isPersistentType](is-persistent-type.md) + +# isPersistentType + +[androidJvm]\ + +@NotNull + +abstract fun [isPersistentType](is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/-login-successful-event.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/-login-successful-event.md new file mode 100644 index 00000000..92c26ca5 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/-login-successful-event.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[LoginSuccessfulEvent](index.md)/[LoginSuccessfulEvent](-login-successful-event.md) + +# LoginSuccessfulEvent + +[androidJvm]\ +constructor() diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/index.md new file mode 100644 index 00000000..39373a28 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/index.md @@ -0,0 +1,25 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[LoginSuccessfulEvent](index.md) + +# LoginSuccessfulEvent + +[androidJvm]\ +class [LoginSuccessfulEvent](index.md) : [BaseEvent](../-base-event/index.md) + +Login Successful Event for host app to use. Please note: this will trigger InAppMessaging SDK to update current session data to the new user. + +## Constructors + +| | | +|---|---| +| [LoginSuccessfulEvent](-login-successful-event.md) | [androidJvm]
constructor() | + +## Functions + +| Name | Summary | +|---|---| +| [getAttributeMap](../-base-event/get-attribute-map.md) | [androidJvm]
@NotNull
open override fun [getAttributeMap](../-base-event/get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?>
This method is intended to be used by child classes which doesn't override this method. Returns an empty map. | +| [getEventName](../-base-event/get-event-name.md) | [androidJvm]
open override fun [getEventName](../-base-event/get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
This method returns the event name. | +| [getEventType](../-base-event/get-event-type.md) | [androidJvm]
@NotNull
open override fun [getEventType](../-base-event/get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
This method returns the event type id. | +| [getRatEventMap](../-base-event/get-rat-event-map.md) | [androidJvm]
@NotNull
open override fun [getRatEventMap](../-base-event/get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
A map will be created containing event's base attributes like event name, and timestamp. | +| [getTimestamp](../-base-event/get-timestamp.md) | [androidJvm]
@NotNull
open override fun [getTimestamp](../-base-event/get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
This method returns the timestamp. | +| [isPersistentType](../-base-event/is-persistent-type.md) | [androidJvm]
@NotNull
open override fun [isPersistentType](../-base-event/is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-companion/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-companion/index.md new file mode 100644 index 00000000..bf52a6fd --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-companion/index.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../../index.md)/[PurchaseSuccessfulEvent](../index.md)/[Companion](index.md) + +# Companion + +[androidJvm]\ +object [Companion](index.md) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-purchase-successful-event.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-purchase-successful-event.md new file mode 100644 index 00000000..50e10bac --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-purchase-successful-event.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[PurchaseSuccessfulEvent](-purchase-successful-event.md) + +# PurchaseSuccessfulEvent + +[androidJvm]\ +constructor() diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/currency-code.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/currency-code.md new file mode 100644 index 00000000..d42e62a3 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/currency-code.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[currencyCode](currency-code.md) + +# currencyCode + +[androidJvm]\ + +@NotNull + +fun [currencyCode](currency-code.md)(@NotNullcurrencyCode: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [PurchaseSuccessfulEvent](index.md) + +This method sets the currency code of this purchase successful logEvent. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-attribute-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-attribute-map.md new file mode 100644 index 00000000..135c7f1a --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-attribute-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[getAttributeMap](get-attribute-map.md) + +# getAttributeMap + +[androidJvm]\ + +@NotNull + +open override fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?> + +This method returns a map of Attribute objects. Key: Attribute's name, Value: Attribute object. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-rat-event-map.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-rat-event-map.md new file mode 100644 index 00000000..ce8427f6 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-rat-event-map.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[getRatEventMap](get-rat-event-map.md) + +# getRatEventMap + +[androidJvm]\ + +@NotNull + +open override fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +This method returns an unmodifiable map which contains all event's attributes. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/index.md new file mode 100644 index 00000000..163714e9 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/index.md @@ -0,0 +1,35 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md) + +# PurchaseSuccessfulEvent + +[androidJvm]\ +class [PurchaseSuccessfulEvent](index.md) : [BaseEvent](../-base-event/index.md) + +Purchase successful Event for host app to use. + +## Constructors + +| | | +|---|---| +| [PurchaseSuccessfulEvent](-purchase-successful-event.md) | [androidJvm]
constructor() | + +## Types + +| Name | Summary | +|---|---| +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [currencyCode](currency-code.md) | [androidJvm]
@NotNull
fun [currencyCode](currency-code.md)(@NotNullcurrencyCode: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [PurchaseSuccessfulEvent](index.md)
This method sets the currency code of this purchase successful logEvent. | +| [getAttributeMap](get-attribute-map.md) | [androidJvm]
@NotNull
open override fun [getAttributeMap](get-attribute-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Attribute](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md)?>
This method returns a map of Attribute objects. Key: Attribute's name, Value: Attribute object. | +| [getEventName](../-base-event/get-event-name.md) | [androidJvm]
open override fun [getEventName](../-base-event/get-event-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
This method returns the event name. | +| [getEventType](../-base-event/get-event-type.md) | [androidJvm]
@NotNull
open override fun [getEventType](../-base-event/get-event-type.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
This method returns the event type id. | +| [getRatEventMap](get-rat-event-map.md) | [androidJvm]
@NotNull
open override fun [getRatEventMap](get-rat-event-map.md)(): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
This method returns an unmodifiable map which contains all event's attributes. | +| [getTimestamp](../-base-event/get-timestamp.md) | [androidJvm]
@NotNull
open override fun [getTimestamp](../-base-event/get-timestamp.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
This method returns the timestamp. | +| [isPersistentType](../-base-event/is-persistent-type.md) | [androidJvm]
@NotNull
open override fun [isPersistentType](../-base-event/is-persistent-type.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign. | +| [itemIdList](item-id-list.md) | [androidJvm]
@NotNull
fun [itemIdList](item-id-list.md)(@NotNullitemIdList: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>): [PurchaseSuccessfulEvent](index.md)
This method sets the list of purchased item IDs. | +| [numberOfItems](number-of-items.md) | [androidJvm]
@NotNull
fun [numberOfItems](number-of-items.md)(@NotNullnumberOfItems: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [PurchaseSuccessfulEvent](index.md)
This method sets the number of items in this purchase. | +| [purchaseAmountMicros](purchase-amount-micros.md) | [androidJvm]
@NotNull
fun [purchaseAmountMicros](purchase-amount-micros.md)(@NotNullpurchaseAmountMicros: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [PurchaseSuccessfulEvent](index.md)
This method sets the purchase amount in micros, $1 = 100_000. Such as $10.58 = 1058_000. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/item-id-list.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/item-id-list.md new file mode 100644 index 00000000..35182bda --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/item-id-list.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[itemIdList](item-id-list.md) + +# itemIdList + +[androidJvm]\ + +@NotNull + +fun [itemIdList](item-id-list.md)(@NotNullitemIdList: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>): [PurchaseSuccessfulEvent](index.md) + +This method sets the list of purchased item IDs. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/number-of-items.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/number-of-items.md new file mode 100644 index 00000000..daa1573f --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/number-of-items.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[numberOfItems](number-of-items.md) + +# numberOfItems + +[androidJvm]\ + +@NotNull + +fun [numberOfItems](number-of-items.md)(@NotNullnumberOfItems: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [PurchaseSuccessfulEvent](index.md) + +This method sets the number of items in this purchase. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/purchase-amount-micros.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/purchase-amount-micros.md new file mode 100644 index 00000000..3041f413 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/purchase-amount-micros.md @@ -0,0 +1,11 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](../index.md)/[PurchaseSuccessfulEvent](index.md)/[purchaseAmountMicros](purchase-amount-micros.md) + +# purchaseAmountMicros + +[androidJvm]\ + +@NotNull + +fun [purchaseAmountMicros](purchase-amount-micros.md)(@NotNullpurchaseAmountMicros: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [PurchaseSuccessfulEvent](index.md) + +This method sets the purchase amount in micros, $1 = 100_000. Such as $10.58 = 1058_000. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/index.md new file mode 100644 index 00000000..50f99977 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](index.md) + +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [AppStartEvent](-app-start-event/index.md) | [androidJvm]
class [AppStartEvent](-app-start-event/index.md) : [BaseEvent](-base-event/index.md)
App start logEvent for host app to use. Host app can send this event after every app launch, including first launch, or resume. It is recommended to log this event in host app's base activity's onResume(). | +| [BaseEvent](-base-event/index.md) | [androidJvm]
abstract class [BaseEvent](-base-event/index.md)(@NotNulleventType: [EventType](../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md), @NotNulleventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullisPersistent: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [Event](-event/index.md)
BaseEvent will be the base class of all local events objects, including CustomEvent. During initialization, constructor parameters will be checked for validity if there are reasons to believe that parameter could be invalid. | +| [CustomEvent](-custom-event/index.md) | [androidJvm]
class [CustomEvent](-custom-event/index.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)eventName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [BaseEvent](-base-event/index.md)
Logging custom event for client to use. Note: Please don't use the same attribute's name more than once because the new attribute will replace the old one. | +| [Event](-event/index.md) | [androidJvm]
interface [Event](-event/index.md)
Interface of local events. | +| [LoginSuccessfulEvent](-login-successful-event/index.md) | [androidJvm]
class [LoginSuccessfulEvent](-login-successful-event/index.md) : [BaseEvent](-base-event/index.md)
Login Successful Event for host app to use. Please note: this will trigger InAppMessaging SDK to update current session data to the new user. | +| [PurchaseSuccessfulEvent](-purchase-successful-event/index.md) | [androidJvm]
class [PurchaseSuccessfulEvent](-purchase-successful-event/index.md) : [BaseEvent](-base-event/index.md)
Purchase successful Event for host app to use. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/-attribute.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/-attribute.md new file mode 100644 index 00000000..cf435f94 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/-attribute.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models](../index.md)/[Attribute](index.md)/[Attribute](-attribute.md) + +# Attribute + +[androidJvm]\ +constructor(@NotNullnm: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNulltype: [ValueType](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md)) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md new file mode 100644 index 00000000..53b796be --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md @@ -0,0 +1,22 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models](../index.md)/[Attribute](index.md) + +# Attribute + +[androidJvm]\ +data class [Attribute](index.md)(@NotNullnm: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullval value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNulltype: [ValueType](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md)) + +This class represents InAppMessaging's custom event attribute. + +## Constructors + +| | | +|---|---| +| [Attribute](-attribute.md) | [androidJvm]
constructor(@NotNullnm: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullvalue: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNulltype: [ValueType](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md)) | + +## Properties + +| Name | Summary | +|---|---| +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Attribute name. | +| [value](value.md) | [androidJvm]
val [value](value.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
attribute value. | +| [valueType](value-type.md) | [androidJvm]
val [valueType](value-type.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Attribute value type. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/name.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/name.md new file mode 100644 index 00000000..22e9c0c4 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/name.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models](../index.md)/[Attribute](index.md)/[name](name.md) + +# name + +[androidJvm]\ +val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) + +Attribute name. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value-type.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value-type.md new file mode 100644 index 00000000..1832f07c --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value-type.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models](../index.md)/[Attribute](index.md)/[valueType](value-type.md) + +# valueType + +[androidJvm]\ +val [valueType](value-type.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +Attribute value type. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value.md new file mode 100644 index 00000000..5cf04055 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models](../index.md)/[Attribute](index.md)/[value](value.md) + +# value + +[androidJvm]\ +val [value](value.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/index.md new file mode 100644 index 00000000..8166a14e --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/index.md @@ -0,0 +1,9 @@ +//[inappmessaging](../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.data.models](index.md) + +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [Attribute](-attribute/index.md) | [androidJvm]
data class [Attribute](-attribute/index.md)(@NotNullnm: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNullval value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), @NotNulltype: [ValueType](../com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md))
This class represents InAppMessaging's custom event attribute. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/-in-app-messaging-exception.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/-in-app-messaging-exception.md new file mode 100644 index 00000000..b2fea981 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/-in-app-messaging-exception.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.exception](../index.md)/[InAppMessagingException](index.md)/[InAppMessagingException](-in-app-messaging-exception.md) + +# InAppMessagingException + +[androidJvm]\ +constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? = null) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/index.md new file mode 100644 index 00000000..665279f5 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/index.md @@ -0,0 +1,34 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.exception](../index.md)/[InAppMessagingException](index.md) + +# InAppMessagingException + +[androidJvm]\ +class [InAppMessagingException](index.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? = null) : [RuntimeException](https://developer.android.com/reference/kotlin/java/lang/RuntimeException.html) + +Custom exception of In-App Messaging. + +## Constructors + +| | | +|---|---| +| [InAppMessagingException](-in-app-messaging-exception.md) | [androidJvm]
constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? = null) | + +## Functions + +| Name | Summary | +|---|---| +| [addSuppressed](index.md#282858770%2FFunctions%2F-93201661) | [androidJvm]
fun [addSuppressed](index.md#282858770%2FFunctions%2F-93201661)(p0: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | +| [fillInStackTrace](index.md#-1102069925%2FFunctions%2F-93201661) | [androidJvm]
open fun [fillInStackTrace](index.md#-1102069925%2FFunctions%2F-93201661)(): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) | +| [getLocalizedMessage](index.md#1043865560%2FFunctions%2F-93201661) | [androidJvm]
open fun [getLocalizedMessage](index.md#1043865560%2FFunctions%2F-93201661)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [getStackTrace](index.md#2050903719%2FFunctions%2F-93201661) | [androidJvm]
open fun [getStackTrace](index.md#2050903719%2FFunctions%2F-93201661)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[StackTraceElement](https://developer.android.com/reference/kotlin/java/lang/StackTraceElement.html)> | +| [getSuppressed](index.md#672492560%2FFunctions%2F-93201661) | [androidJvm]
fun [getSuppressed](index.md#672492560%2FFunctions%2F-93201661)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)> | +| [initCause](index.md#-418225042%2FFunctions%2F-93201661) | [androidJvm]
open fun [initCause](index.md#-418225042%2FFunctions%2F-93201661)(p0: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) | +| [printStackTrace](index.md#-1769529168%2FFunctions%2F-93201661) | [androidJvm]
open fun [printStackTrace](index.md#-1769529168%2FFunctions%2F-93201661)()
open fun [printStackTrace](index.md#1841853697%2FFunctions%2F-93201661)(p0: [PrintStream](https://developer.android.com/reference/kotlin/java/io/PrintStream.html))
open fun [printStackTrace](index.md#1175535278%2FFunctions%2F-93201661)(p0: [PrintWriter](https://developer.android.com/reference/kotlin/java/io/PrintWriter.html)) | +| [setStackTrace](index.md#2135801318%2FFunctions%2F-93201661) | [androidJvm]
open fun [setStackTrace](index.md#2135801318%2FFunctions%2F-93201661)(p0: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[StackTraceElement](https://developer.android.com/reference/kotlin/java/lang/StackTraceElement.html)>) | + +## Properties + +| Name | Summary | +|---|---| +| [cause](index.md#-654012527%2FProperties%2F-93201661) | [androidJvm]
open val [cause](index.md#-654012527%2FProperties%2F-93201661): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? | +| [message](index.md#1824300659%2FProperties%2F-93201661) | [androidJvm]
open val [message](index.md#1824300659%2FProperties%2F-93201661): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/index.md new file mode 100644 index 00000000..b0409d27 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/index.md @@ -0,0 +1,9 @@ +//[inappmessaging](../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.exception](index.md) + +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [InAppMessagingException](-in-app-messaging-exception/index.md) | [androidJvm]
class [InAppMessagingException](-in-app-messaging-exception/index.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? = null) : [RuntimeException](https://developer.android.com/reference/kotlin/java/lang/RuntimeException.html)
Custom exception of In-App Messaging. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/-custom-on-touch-listener.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/-custom-on-touch-listener.md new file mode 100644 index 00000000..52ecc570 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/-custom-on-touch-listener.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.view](../index.md)/[CustomOnTouchListener](index.md)/[CustomOnTouchListener](-custom-on-touch-listener.md) + +# CustomOnTouchListener + +[androidJvm]\ +constructor() diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/index.md new file mode 100644 index 00000000..e89ac3a7 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/index.md @@ -0,0 +1,20 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.view](../index.md)/[CustomOnTouchListener](index.md) + +# CustomOnTouchListener + +[androidJvm]\ +abstract class [CustomOnTouchListener](index.md) : [View.OnTouchListener](https://developer.android.com/reference/kotlin/android/view/View.OnTouchListener.html) + +Custom on touch listener to handle displaying of tooltip campaign on scrollable views. + +## Constructors + +| | | +|---|---| +| [CustomOnTouchListener](-custom-on-touch-listener.md) | [androidJvm]
constructor() | + +## Functions + +| Name | Summary | +|---|---| +| [onTouch](on-touch.md) | [androidJvm]
open override fun [onTouch](on-touch.md)(v: [View](https://developer.android.com/reference/kotlin/android/view/View.html), event: [MotionEvent](https://developer.android.com/reference/kotlin/android/view/MotionEvent.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/on-touch.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/on-touch.md new file mode 100644 index 00000000..d810242a --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/on-touch.md @@ -0,0 +1,6 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.view](../index.md)/[CustomOnTouchListener](index.md)/[onTouch](on-touch.md) + +# onTouch + +[androidJvm]\ +open override fun [onTouch](on-touch.md)(v: [View](https://developer.android.com/reference/kotlin/android/view/View.html), event: [MotionEvent](https://developer.android.com/reference/kotlin/android/view/MotionEvent.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/index.md new file mode 100644 index 00000000..ed1a39a9 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/index.md @@ -0,0 +1,9 @@ +//[inappmessaging](../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime.view](index.md) + +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [CustomOnTouchListener](-custom-on-touch-listener/index.md) | [androidJvm]
abstract class [CustomOnTouchListener](-custom-on-touch-listener/index.md) : [View.OnTouchListener](https://developer.android.com/reference/kotlin/android/view/View.OnTouchListener.html)
Custom on touch listener to handle displaying of tooltip campaign on scrollable views. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md new file mode 100644 index 00000000..e1bbf7d3 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../../index.md)/[InAppMessaging](../index.md)/[Companion](index.md)/[PUSH_PRIMER_REQ_CODE](-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md) + +# PUSH_PRIMER_REQ_CODE + +[androidJvm]\ +const val [PUSH_PRIMER_REQ_CODE](-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 999 + +This is the request code that will be used when requesting push permission. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/configure.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/configure.md new file mode 100644 index 00000000..a08d3f84 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/configure.md @@ -0,0 +1,26 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../../index.md)/[InAppMessaging](../index.md)/[Companion](index.md)/[configure](configure.md) + +# configure + +[androidJvm]\ + +@[JvmOverloads](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html) + +fun [configure](configure.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), subscriptionKey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, configUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, enableTooltipFeature: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = false): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +Configures the In-App Messaging SDK. + +#### Return + +`true` if configuration is successful, and `false` otherwise. + +#### Parameters + +androidJvm + +| | | +|---|---| +| context | Context object. | +| subscriptionKey | An optional subscription key. Default is the value set in your app's AndroidManifest. | +| configUrl | An optional config URL. Default is the value set in your app's AndroidManifest. | +| enableTooltipFeature | An optional flag to en/dis-able tooltip campaigns feature. Disabled by default. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/error-callback.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/error-callback.md new file mode 100644 index 00000000..1243d195 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/error-callback.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../../index.md)/[InAppMessaging](../index.md)/[Companion](index.md)/[errorCallback](error-callback.md) + +# errorCallback + +[androidJvm]\ +var [errorCallback](error-callback.md): ([Exception](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)? + +This optional callback function is for app to receive the exception that caused failed configuration or non-fatal failures in the SDK. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/index.md new file mode 100644 index 00000000..603746e3 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/index.md @@ -0,0 +1,20 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../../index.md)/[InAppMessaging](../index.md)/[Companion](index.md) + +# Companion + +[androidJvm]\ +object [Companion](index.md) + +## Functions + +| Name | Summary | +|---|---| +| [configure](configure.md) | [androidJvm]
@[JvmOverloads](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html)
fun [configure](configure.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), subscriptionKey: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, configUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, enableTooltipFeature: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = false): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Configures the In-App Messaging SDK. | +| [instance](instance.md) | [androidJvm]
@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html)
fun [instance](instance.md)(): [InAppMessaging](../index.md)
Instance of [InAppMessaging](../index.md). | + +## Properties + +| Name | Summary | +|---|---| +| [errorCallback](error-callback.md) | [androidJvm]
var [errorCallback](error-callback.md): ([Exception](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)?
This optional callback function is for app to receive the exception that caused failed configuration or non-fatal failures in the SDK. | +| [PUSH_PRIMER_REQ_CODE](-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md) | [androidJvm]
const val [PUSH_PRIMER_REQ_CODE](-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 999
This is the request code that will be used when requesting push permission. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/instance.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/instance.md new file mode 100644 index 00000000..0edd1752 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/instance.md @@ -0,0 +1,15 @@ +//[inappmessaging](../../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../../index.md)/[InAppMessaging](../index.md)/[Companion](index.md)/[instance](instance.md) + +# instance + +[androidJvm]\ + +@[JvmStatic](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html) + +fun [instance](instance.md)(): [InAppMessaging](../index.md) + +Instance of [InAppMessaging](../index.md). + +#### Return + +[InAppMessaging](../index.md) instance diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-message.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-message.md new file mode 100644 index 00000000..977f7d17 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-message.md @@ -0,0 +1,16 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[closeMessage](close-message.md) + +# closeMessage + +[androidJvm]\ +abstract fun [closeMessage](close-message.md)(clearQueuedCampaigns: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false) + +Close the currently displayed message. This should be called when app needs to force-close the displayed message without user action. Calling this method will not increment the campaign impression. + +#### Parameters + +androidJvm + +| | | +|---|---| +| clearQueuedCampaigns | An optional parameter, when set to true (false by default), will additionally remove all campaigns that were queued to be displayed. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-tooltip.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-tooltip.md new file mode 100644 index 00000000..b8b683d4 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-tooltip.md @@ -0,0 +1,16 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[closeTooltip](close-tooltip.md) + +# closeTooltip + +[androidJvm]\ +abstract fun [closeTooltip](close-tooltip.md)(viewId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) + +Closes a tooltip by `viewId` (`UIElement` identifier). This should be called when app needs to force-close the displayed tooltip without user action. Calling this method will not increment the campaign impression. + +#### Parameters + +androidJvm + +| | | +|---|---| +| viewId | The ID of UI element where the tooltip is attached. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/index.md new file mode 100644 index 00000000..502f558f --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/index.md @@ -0,0 +1,33 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md) + +# InAppMessaging + +[androidJvm]\ +abstract class [InAppMessaging](index.md) + +Main entry point for the IAM SDK. Should be accessed via [InAppMessaging.instance](-companion/instance.md). + +## Types + +| Name | Summary | +|---|---| +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | + +## Functions + +| Name | Summary | +|---|---| +| [closeMessage](close-message.md) | [androidJvm]
abstract fun [closeMessage](close-message.md)(clearQueuedCampaigns: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false)
Close the currently displayed message. This should be called when app needs to force-close the displayed message without user action. Calling this method will not increment the campaign impression. | +| [closeTooltip](close-tooltip.md) | [androidJvm]
abstract fun [closeTooltip](close-tooltip.md)(viewId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Closes a tooltip by `viewId` (`UIElement` identifier). This should be called when app needs to force-close the displayed tooltip without user action. Calling this method will not increment the campaign impression. | +| [logEvent](log-event.md) | [androidJvm]
abstract fun [logEvent](log-event.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)event: [Event](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/index.md))
This methods logs the [event](log-event.md) which the InAppMessaging SDK checks to know the messages' triggers are satisfied, then display that message if all trigger conditions are satisfied. | +| [registerMessageDisplayActivity](register-message-display-activity.md) | [androidJvm]
abstract fun [registerMessageDisplayActivity](register-message-display-activity.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)activity: [Activity](https://developer.android.com/reference/kotlin/android/app/Activity.html))
This method registers [activity](register-message-display-activity.md) where message can be displayed This method should be called in onResume() of the activity to register. In order for InAppMessaging SDK to display messages, host app must pass an Activity which the host app allows the SDK to display any Messages. | +| [registerPreference](register-preference.md) | [androidJvm]
abstract fun [registerPreference](register-preference.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)userInfoProvider: [UserInfoProvider](../-user-info-provider/index.md))
This method registers provider containing user information [userInfoProvider](register-preference.md), like Access Token and User ID. | +| [trackPushPrimer](track-push-primer.md) | [androidJvm]
abstract fun [trackPushPrimer](track-push-primer.md)(permissions: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>, grantResults: [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html))
Tracks if user grants or denies the push notification via push primer message. This API only works for Android 13 and up devices. | +| [unregisterMessageDisplayActivity](unregister-message-display-activity.md) | [androidJvm]
abstract fun [unregisterMessageDisplayActivity](unregister-message-display-activity.md)()
This method unregisters the activity from InAppMessaging This method should be called in onPause() of the registered activity in order to avoid memory leaks. If there is message being displayed, it will be closed automatically. | + +## Properties + +| Name | Summary | +|---|---| +| [onPushPrimer](on-push-primer.md) | [androidJvm]
abstract var [onPushPrimer](on-push-primer.md): () -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)?
This callback is called if a push primer button is tapped. If not set, SDK will request push permission. | +| [onVerifyContext](on-verify-context.md) | [androidJvm]
abstract var [onVerifyContext](on-verify-context.md): (contexts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>, campaignTitle: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) -> [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
This callback is called just before showing a message of campaign that has registered contexts. Return `false` to prevent the message from displaying. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/log-event.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/log-event.md new file mode 100644 index 00000000..02ac8602 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/log-event.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[logEvent](log-event.md) + +# logEvent + +[androidJvm]\ +abstract fun [logEvent](log-event.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)event: [Event](../../com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/index.md)) + +This methods logs the [event](log-event.md) which the InAppMessaging SDK checks to know the messages' triggers are satisfied, then display that message if all trigger conditions are satisfied. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-push-primer.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-push-primer.md new file mode 100644 index 00000000..8b3c9b3b --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-push-primer.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[onPushPrimer](on-push-primer.md) + +# onPushPrimer + +[androidJvm]\ +abstract var [onPushPrimer](on-push-primer.md): () -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)? + +This callback is called if a push primer button is tapped. If not set, SDK will request push permission. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-verify-context.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-verify-context.md new file mode 100644 index 00000000..2c27a993 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-verify-context.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[onVerifyContext](on-verify-context.md) + +# onVerifyContext + +[androidJvm]\ +abstract var [onVerifyContext](on-verify-context.md): (contexts: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>, campaignTitle: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) -> [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +This callback is called just before showing a message of campaign that has registered contexts. Return `false` to prevent the message from displaying. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-message-display-activity.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-message-display-activity.md new file mode 100644 index 00000000..530de199 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-message-display-activity.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[registerMessageDisplayActivity](register-message-display-activity.md) + +# registerMessageDisplayActivity + +[androidJvm]\ +abstract fun [registerMessageDisplayActivity](register-message-display-activity.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)activity: [Activity](https://developer.android.com/reference/kotlin/android/app/Activity.html)) + +This method registers [activity](register-message-display-activity.md) where message can be displayed This method should be called in onResume() of the activity to register. In order for InAppMessaging SDK to display messages, host app must pass an Activity which the host app allows the SDK to display any Messages. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-preference.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-preference.md new file mode 100644 index 00000000..c0dddc8d --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-preference.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[registerPreference](register-preference.md) + +# registerPreference + +[androidJvm]\ +abstract fun [registerPreference](register-preference.md)(@[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)userInfoProvider: [UserInfoProvider](../-user-info-provider/index.md)) + +This method registers provider containing user information [userInfoProvider](register-preference.md), like Access Token and User ID. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/track-push-primer.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/track-push-primer.md new file mode 100644 index 00000000..c9cdbb39 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/track-push-primer.md @@ -0,0 +1,16 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[trackPushPrimer](track-push-primer.md) + +# trackPushPrimer + +[androidJvm]\ +abstract fun [trackPushPrimer](track-push-primer.md)(permissions: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>, grantResults: [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)) + +Tracks if user grants or denies the push notification via push primer message. This API only works for Android 13 and up devices. + +#### Parameters + +androidJvm + +| | | +|---|---| +| | : [grantResults](track-push-primer.md) permission granted/denied results. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/unregister-message-display-activity.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/unregister-message-display-activity.md new file mode 100644 index 00000000..1a738acc --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/unregister-message-display-activity.md @@ -0,0 +1,8 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[InAppMessaging](index.md)/[unregisterMessageDisplayActivity](unregister-message-display-activity.md) + +# unregisterMessageDisplayActivity + +[androidJvm]\ +abstract fun [unregisterMessageDisplayActivity](unregister-message-display-activity.md)() + +This method unregisters the activity from InAppMessaging This method should be called in onPause() of the registered activity in order to avoid memory leaks. If there is message being displayed, it will be closed automatically. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/index.md new file mode 100644 index 00000000..a44e249d --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/index.md @@ -0,0 +1,16 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[UserInfoProvider](index.md) + +# UserInfoProvider + +[androidJvm]\ +interface [UserInfoProvider](index.md) + +Interface which client app should implement in order for InAppMessaging SDK to get information when needed. + +## Functions + +| Name | Summary | +|---|---| +| [provideAccessToken](provide-access-token.md) | [androidJvm]
open fun [provideAccessToken](provide-access-token.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
Only return access token if user is logged in. Else return null. | +| [provideIdTrackingIdentifier](provide-id-tracking-identifier.md) | [androidJvm]
open fun [provideIdTrackingIdentifier](provide-id-tracking-identifier.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
Only return ID tracking identifier used in the current session. | +| [provideUserId](provide-user-id.md) | [androidJvm]
open fun [provideUserId](provide-user-id.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
Only return user ID used when logging if user is logged in in the current session. | diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-access-token.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-access-token.md new file mode 100644 index 00000000..2c13f232 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-access-token.md @@ -0,0 +1,12 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[UserInfoProvider](index.md)/[provideAccessToken](provide-access-token.md) + +# provideAccessToken + +[androidJvm]\ +open fun [provideAccessToken](provide-access-token.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +Only return access token if user is logged in. Else return null. + +#### Return + +String of access token. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-id-tracking-identifier.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-id-tracking-identifier.md new file mode 100644 index 00000000..07280178 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-id-tracking-identifier.md @@ -0,0 +1,12 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[UserInfoProvider](index.md)/[provideIdTrackingIdentifier](provide-id-tracking-identifier.md) + +# provideIdTrackingIdentifier + +[androidJvm]\ +open fun [provideIdTrackingIdentifier](provide-id-tracking-identifier.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +Only return ID tracking identifier used in the current session. + +#### Return + +String of the ID Tracking Identifier. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-user-id.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-user-id.md new file mode 100644 index 00000000..c702b953 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-user-id.md @@ -0,0 +1,12 @@ +//[inappmessaging](../../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](../index.md)/[UserInfoProvider](index.md)/[provideUserId](provide-user-id.md) + +# provideUserId + +[androidJvm]\ +open fun [provideUserId](provide-user-id.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? + +Only return user ID used when logging if user is logged in in the current session. + +#### Return + +String of the user ID. diff --git a/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/index.md b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/index.md new file mode 100644 index 00000000..c130c390 --- /dev/null +++ b/docs/7.6/api/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/index.md @@ -0,0 +1,10 @@ +//[inappmessaging](../../index.md)/[com.rakuten.tech.mobile.inappmessaging.runtime](index.md) + +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [InAppMessaging](-in-app-messaging/index.md) | [androidJvm]
abstract class [InAppMessaging](-in-app-messaging/index.md)
Main entry point for the IAM SDK. Should be accessed via [InAppMessaging.instance](-in-app-messaging/-companion/instance.md). | +| [UserInfoProvider](-user-info-provider/index.md) | [androidJvm]
interface [UserInfoProvider](-user-info-provider/index.md)
Interface which client app should implement in order for InAppMessaging SDK to get information when needed. | diff --git a/docs/7.6/api/inappmessaging/package-list b/docs/7.6/api/inappmessaging/package-list new file mode 100644 index 00000000..0f492c91 --- /dev/null +++ b/docs/7.6/api/inappmessaging/package-list @@ -0,0 +1,105 @@ +$dokka.format:gfm-v1 +$dokka.linkExtension:md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums////PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.APP_START///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-a-p-p_-s-t-a-r-t/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.CUSTOM///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-c-u-s-t-o-m/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.Companion///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.Companion/getById/#kotlin.Int/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-companion/get-by-id.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.INVALID///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-i-n-v-a-l-i-d/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.LOGIN_SUCCESSFUL///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-l-o-g-i-n_-s-u-c-c-e-s-s-f-u-l/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType.PURCHASE_SUCCESSFUL///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/-p-u-r-c-h-a-s-e_-s-u-c-c-e-s-s-f-u-l/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType/typeId/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/type-id.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType/valueOf/#kotlin.String/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/value-of.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/EventType/values/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-event-type/values.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.BOOLEAN///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-b-o-o-l-e-a-n/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.Companion///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.Companion/getById/#kotlin.Int/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-companion/get-by-id.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.DOUBLE///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-d-o-u-b-l-e/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.INTEGER///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-t-e-g-e-r/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.INVALID///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-i-n-v-a-l-i-d/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.STRING///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-s-t-r-i-n-g/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType.TIME_IN_MILLI///PointingToDeclaration/{"org.jetbrains.dokka.links.EnumEntryDRIExtra":{"key":"org.jetbrains.dokka.links.EnumEntryDRIExtra"}}inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/-t-i-m-e_-i-n_-m-i-l-l-i/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType/typeId/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/type-id.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType/valueOf/#kotlin.String/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/value-of.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/ValueType/values/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/-value-type/values.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents////PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/AppStartEvent///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/AppStartEvent/AppStartEvent/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-app-start-event/-app-start-event.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent.Companion///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-companion/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/BaseEvent/#com.rakuten.tech.mobile.inappmessaging.runtime.data.enums.EventType#kotlin.String#kotlin.Boolean/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/-base-event.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/getAttributeMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-attribute-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/getEventName/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-name.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/getEventType/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-event-type.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/getRatEventMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-rat-event-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/getTimestamp/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/get-timestamp.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/BaseEvent/isPersistentType/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-base-event/is-persistent-type.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/CustomEvent/#kotlin.String/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/-custom-event.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/addAttribute/#kotlin.String#java.util.Date/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/addAttribute/#kotlin.String#kotlin.Boolean/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/addAttribute/#kotlin.String#kotlin.Double/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/addAttribute/#kotlin.String#kotlin.Int/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/addAttribute/#kotlin.String#kotlin.String/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/add-attribute.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/getAttributeMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-attribute-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/CustomEvent/getRatEventMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-custom-event/get-rat-event-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event/getAttributeMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-attribute-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event/getEventName/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-name.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event/getEventType/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-event-type.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event/getRatEventMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-rat-event-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event/getTimestamp/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/get-timestamp.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/Event/isPersistentType/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-event/is-persistent-type.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/LoginSuccessfulEvent///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/LoginSuccessfulEvent/LoginSuccessfulEvent/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-login-successful-event/-login-successful-event.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent.Companion///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-companion/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/PurchaseSuccessfulEvent/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/-purchase-successful-event.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/currencyCode/#kotlin.String/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/currency-code.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/getAttributeMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-attribute-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/getRatEventMap/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/get-rat-event-map.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/itemIdList/#kotlin.collections.List[kotlin.String]/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/item-id-list.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/numberOfItems/#kotlin.Int/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/number-of-items.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent/purchaseAmountMicros/#kotlin.Int/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/-purchase-successful-event/purchase-amount-micros.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models////PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models/Attribute///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models/Attribute/Attribute/#kotlin.String#kotlin.String#com.rakuten.tech.mobile.inappmessaging.runtime.data.enums.ValueType/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/-attribute.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models/Attribute/name/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/name.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models/Attribute/value/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.data.models/Attribute/valueType/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/-attribute/value-type.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.exception////PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.exception/InAppMessagingException///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.exception/InAppMessagingException/InAppMessagingException/#kotlin.String#kotlin.Throwable?/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/-in-app-messaging-exception/-in-app-messaging-exception.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.view////PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.view/CustomOnTouchListener///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.view/CustomOnTouchListener/CustomOnTouchListener/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/-custom-on-touch-listener.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime.view/CustomOnTouchListener/onTouch/#android.view.View#android.view.MotionEvent/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/-custom-on-touch-listener/on-touch.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime////PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging.Companion///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging.Companion/PUSH_PRIMER_REQ_CODE/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/-p-u-s-h_-p-r-i-m-e-r_-r-e-q_-c-o-d-e.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging.Companion/configure/#android.content.Context#kotlin.String?#kotlin.String?#kotlin.Boolean?/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/configure.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging.Companion/errorCallback/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/error-callback.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging.Companion/instance/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/-companion/instance.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/closeMessage/#kotlin.Boolean/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-message.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/closeTooltip/#kotlin.String/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/close-tooltip.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/logEvent/#com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents.Event/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/log-event.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/onPushPrimer/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-push-primer.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/onVerifyContext/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/on-verify-context.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/registerMessageDisplayActivity/#android.app.Activity/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-message-display-activity.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/registerPreference/#com.rakuten.tech.mobile.inappmessaging.runtime.UserInfoProvider/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/register-preference.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/trackPushPrimer/#kotlin.Array[kotlin.String]#kotlin.IntArray/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/track-push-primer.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/InAppMessaging/unregisterMessageDisplayActivity/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-in-app-messaging/unregister-message-display-activity.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/UserInfoProvider///PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/index.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/UserInfoProvider/provideAccessToken/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-access-token.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/UserInfoProvider/provideIdTrackingIdentifier/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-id-tracking-identifier.md +$dokka.location:com.rakuten.tech.mobile.inappmessaging.runtime/UserInfoProvider/provideUserId/#/PointingToDeclaration/inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/-user-info-provider/provide-user-id.md +com.rakuten.tech.mobile.inappmessaging.runtime +com.rakuten.tech.mobile.inappmessaging.runtime.data.enums +com.rakuten.tech.mobile.inappmessaging.runtime.data.models +com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents +com.rakuten.tech.mobile.inappmessaging.runtime.exception +com.rakuten.tech.mobile.inappmessaging.runtime.view + diff --git a/docs/7.6/api/index.md b/docs/7.6/api/index.md new file mode 100644 index 00000000..cd485a1d --- /dev/null +++ b/docs/7.6/api/index.md @@ -0,0 +1,14 @@ +//[inappmessaging](index.md) + +# inappmessaging + +## Packages + +| Name | +|---| +| [com.rakuten.tech.mobile.inappmessaging.runtime](inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime/index.md) | +| [com.rakuten.tech.mobile.inappmessaging.runtime.data.enums](inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.enums/index.md) | +| [com.rakuten.tech.mobile.inappmessaging.runtime.data.models](inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models/index.md) | +| [com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents](inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/index.md) | +| [com.rakuten.tech.mobile.inappmessaging.runtime.exception](inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.exception/index.md) | +| [com.rakuten.tech.mobile.inappmessaging.runtime.view](inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.view/index.md) | diff --git a/docs/7.6/images/what-is-inapp.png b/docs/7.6/images/what-is-inapp.png new file mode 100644 index 00000000..1a994725 Binary files /dev/null and b/docs/7.6/images/what-is-inapp.png differ diff --git a/docs/7.6/index.md b/docs/7.6/index.md new file mode 100644 index 00000000..88832ebb --- /dev/null +++ b/docs/7.6/index.md @@ -0,0 +1,694 @@ +--- +layout: userguide +--- + +# In-App Messaging + +In-App Messaging (IAM) module allows app developers to easily configure and display messages or campaigns within their app. + +![In-App Messaging Sample](images/what-is-inapp.png) + +### This page covers: +* [Requirements](#requirements) +* [Configuration](#configuration) +* [Final Code Preview (Sample)](#final-code) +* [Using the SDK](#using-the-sdk) +* [Advanced Features](#advanced-features) +* [SDK Logic](#sdk-logic) +* [Troubleshooting](#troubleshooting) +* [FAQ](#faq) +* [Changelog](#changelog) + +# Requirements + +----- + +* `minSdkVersion` >= `23` +* `targetSdkVersion` and `compileSdkVersion` >= `33` +* `Subscription Key` from the Dashboard + +# Configuration + +----- + +### 1. Include Maven Central repo in root `build.gradle` + +```groovy +allprojects { + repositories { + mavenCentral() + } +} +``` + +### 2. Add the SDK in dependencies + +```groovy +dependencies { + implementation 'io.github.rakutentech.inappmessaging:inappmessaging:${latest_version}' +} +``` +> Note: +> - This SDK only uses AndroidX libraries. Apps should migrate to AndroidX to avoid duplicate dependencies. +> - For the latest version, refer to [Changelog](#changelog). + +### 3. Add subscription ID and config URL in `AndroidManifest.xml` + +```xml + + + +``` +> Note: These can also be set at runtime, as described [here](#configure). + +### 4. Enable debug logs (Optional) + +If you want to enable SDK debug logging (tags begins with "IAM_"), add this metadata in `AndroidManifest.xml`: +```xml + +``` + +### 5. Call configure() +This method initializes the SDK and should be called in your Application's `onCreate`. + +An optional lambda function callback can be set to receive exceptions that caused failed configuration or non-fatal failures in the SDK. + +```kotlin +class MainApplication : Application() { + + override fun onCreate() { + // This can be used for analytics and logging of encountered configuration issues. + InAppMessaging.errorCallback = { Log.e(TAG, it.localizedMessage, it.cause) } + + // If using Java, call with `InAppMessaging.Companion.configure(context: Context)`. + InAppMessaging.configure( + context = this, + subscriptionKey = "your_subscription_key", // Optional + configUrl = "endpoint for fetching configuration", // Optional + enableTooltipFeature = true // Optional (disabled by default) + ) + } +} +``` +> Notes: +> - Specifying values for `subscriptionKey` and/or `configUrl` overrides the values set from `AndroidManifest.xml`. +> - To enable [tooltips](#tooltip-campaigns) (beta feature) you must set `enableTooltipFeature` flag to true. +> - If `configure()` is not called, subsequent calls to other public API SDK functions have no effect. + +### 6. Enable and disable the SDK remotely (Optional) + +We recommend, as good engineering practice, that you integrate with a remote config service so that you can fetch a feature flag, e.g. `Enable_IAM_SDK`, and use its value to dynamically enable/disable the SDK without making an app release. There are many remote config services on the market, both free and paid. + +## Final Code Preview (Sample) + +----- + +By the end of this guide, your SDK integration code will look something like this: + +

+(click to expand) + +MainApplication.kt +```kotlin +class MainApplication: Application() { + + val yourUserProvider = YourUserInfoProvider() + + override fun onCreate() { + InAppMessaging.configure(this) + InAppMessaging.instance().registerPreference(yourUserProvider) + } +} +``` + +YourUserInfoProvider.kt +```kotlin +class YourUserInfoProvider: UserInfoProvider() { + + // Update during login or logout + var userId = "" + var accessToken = "" + var idTracking = "" + + override fun provideUserId() = userId + + override fun provideAccessToken() = accessToken + + override fun provideIdTrackingIdentifier() = idTracking +} +``` + +MainActivity.kt +```kotlin +class MainActivity: AppCompatActivity(), View.OnClickListener { + + override fun onStart() { + InAppMessaging.instance().logEvent(AppStartEvent()) + } + + override fun onResume() { + InAppMessaging.instance().registerMessageDisplayActivity(this) + } + + override fun onPause() { + InAppMessaging.instance().unregisterMessageDisplayActivity() + } + + override fun onClick(v: View) { + // Log the events based on your use-cases + when (v.id) { + R.id.purchase_button_tapped -> InAppMessaging.instance().logEvent(PurchaseSuccessfulEvent()) + + R.id.home_tab_tapped -> InAppMessaging.instance().logEvent(CustomEvent("tab_visit").addAttribute("tab_name", "home")) + + R.id.cart_tab_tapped -> InAppMessaging.instance().logEvent(CustomEvent("tab_visit").addAttribute("tab_name", "cart")) + } + } + + fun onUserLogin() { + yourUserProvider.userId = "" + yourUserProvider.accessToken = "" // or idTracking + InAppMessaging.instance().logEvent(LoginSuccessfulEvent()) + } + + fun onUserLogout() { + yourUserProvider.userId = "" + yourUserProvider.accessToken = "" // or idTracking + } +} +``` +
+ +## Using the SDK + +----- + +### 1. registerMessageDisplayActivity() and unregisterMessageDisplayActivity() + +Decide which activities in your app can display messages, then, call `registerMessageDisplayActivity()` method in those activities' `onResume`. It should be paired with `unregisterMessageDisplayActivity()` in `onPause`. + +The activities will be kept in a `WeakReference` object, so it will not cause any memory leaks. + +```kotlin +override fun onResume() { + super.onResume() + InAppMessaging.instance().registerMessageDisplayActivity(this) +} + +override fun onPause() { + super.onPause() + InAppMessaging.instance().unregisterMessageDisplayActivity() +} +``` + +### 2. logEvent() +This method initiates the display of a message whenever a specific event or a set of events occur. Call this method at appropriate locations in your app, and based on your use-case. + +For each logged event, the SDK will match it with the ongoing message's triggers that are configured in the Dashboard. Once all of the required events are logged by the app, the message will be displayed in the current registered activity. If no activity is registered, it will be displayed in the next registered activity. + +#### Pre-defined event classes: + +#### AppStartEvent +Log this event on app launch from terminated state. Recommended to log this event in app's main activity's `Activity#onStart()`. + +App Start Event is persistent, meaning, once it's logged it will always satisfy corresponding trigger in a message. All subsequent logs of this event are ignored. Messages that require only AppStartEvent are shown once per app session. + +```kotlin +class MainActivity: AppCompatActivity() { + + override fun onStart() { + super.onStart() + InAppMessaging.instance().logEvent(AppStartEvent()) + } +} +``` +> Note: +> Because this event is logged almost instantly after app launch, there may be situation wherein user information is not yet available due to some delay, and may cause unexpected behavior. Therefore we recommend to ensure user information is up-to-date (see [User Targeting](#register-preference) section for details) when using AppStart-only as trigger, or combine it with other event wherein user information is guaranteed to be available. + +#### LoginSuccessfulEvent +Log this every time the user logs in successfully. + +```kotlin +InAppMessaging.instance().logEvent(LoginSuccessfulEvent()) +``` + +#### PurchaseSuccessfulEvent +Log this event after every successful purchase. + +```kotlin +InAppMessaging.instance().logEvent(PurchaseSuccessfulEvent()) +``` + +#### Custom event class: + +#### CustomEvent +Log this after app-defined states are reached or conditions are met. Example use-case is an event based on tabs or certain screens in your app. + +Custom events can have attributes with names and values. Attributes can be `integer`, `double`, `String`, `boolean`, or `java.util.Date` type. + +* Every custom event requires a name(case insensitive), but doesn't require to add any attributes with the custom event. +* Each custom event attribute also requires a name(case insensitive), and a value. +* Recommended to use English characters only. +* Because the custom event's name will be used when matching messages with triggers; therefore, please make sure the actual message event's name and attribute's name must match with the logged events to SDK. + +```kotlin +InAppMessaging.instance().logEvent(CustomEvent("search").addAttribute("keyword", "book").addAttribute("number_of_keyword", 1)) +``` + +### 3. registerPreference() + +> Required if you want to target messages to specific users. + +To identify users, you must provide the following user information (the required data varies based on the login SDK used): + +| User Info | Description | For Mobile Login SDK users | For ID SDK users | +|-|-|-|-| +| User ID | ID when registering a Rakuten account (e.g. email address or username) | Required | Optional | +| Access Token | Access token value provided by the internal Mobile Login SDK | Required | Do not override or leave empty | +| ID Tracking Identifier | Tracking identifier value provided by the internal ID SDK | Do not override or leave empty | Required | + +#### 1. Create a new class that implements `UserInfoProvider`: + +```kotlin +import com.rakuten.tech.mobile.inappmessaging.runtime.UserInfoProvider + +class YourUserInfoProvider: UserInfoProvider() { + + // Update during login or logout + var userId = "" + var accessToken = "" + var idTracking = "" + + override fun provideUserId() = userId + + override fun provideAccessToken() = accessToken + + override fun provideIdTrackingIdentifier() = idTracking +} +``` + +You must provide the relevant information through this class. It will be retrieved by SDK on demand, so make sure values are up-to-date. + +After logout is complete, please ensure that all `UserInfoProvider` methods in the preference object return `null` or empty string. + +> Notes: +> - Regarding access token: +> - Only provide access token if the user is logged in +> - The internal Backend only supports production access token +> - Migrating from legacy Mobile Login SDK to ID SDK +> - Update your `UserInfoProvider` and override the `provideIdTrackingIdentifier()` method. Do not override other methods or leave them as null or empty +> - **Impact**: User will be treated as a new user, therefore if there are **active** messages that were previously displayed/opted-out by the user, then it will be displayed again + +#### 2. Register your `UserInfoProvider` + +Call `registerPreference()` method right after `configure()`. + +```kotlin +class MainApplication : Application() { + + override fun onCreate() { + + // configure called here... + + InAppMessaging.instance().registerPreference(YourUserInfoProvider()) + } +} +``` + +## Advanced Features + +----- + +### 1. Context verification +Message contexts are used to add more control on when messages are displayed. +A context can be defined as the text inside "[]" within the Dashboard's "Campaign Name" e.g. the message name is "[ctx1] title" so the context is "ctx1". +Multiple contexts are supported. +In order to handle defined contexts in the code an optional callback is called before a message is displayed: + +```kotlin +InAppMessaging.instance().onVerifyContext = { contexts: List, campaignTitle: String -> Boolean + if /* check your condition e.g. are you on the correct screen to display this message? */ { + true // campaign message will be displayed + } else { + false // campaign message won't be displayed + } +} +``` + +### 2. closeCampaign() + +There may be cases where apps need to manually close the messages without user interaction. + +An example is when a different user logs-in and the currently displayed message does not target the new user. It is possible that the new user did not close the message (tapping the 'X' button) when logging in. The app can force-close the message by calling this method. + +An optional parameter, `clearQueuedCampaigns`, can be set to `true` (`false` by default) which will additionally remove all messages that were queued to be displayed. + +```kotlin +InAppMessaging.instance().closeMessage(clearQueuedCampaigns = true|false) +``` + +> Note: Calling this method will not increment the campaign's impression (i.e not counted as displayed) + +### 3. Custom fonts + +The SDK can optionally use custom fonts on the message' header and body texts, and button texts. The default Android system font will be used if custom fonts are not added. + +To use custom fonts: +1. Add the font files, `ttf` or `otf` format, to the `font` resource folder of your app. +2. To use custom font for the following message parts, define a string resource in the app's `res/values/string.xml`: +* for message header texts, set font filename to `iam_custom_font_header` resource name +* for message body texts, set font filename to `iam_custom_font_body` resource name +* for message button texts, set font filename to `iam_custom_font_button` resource name + +Note: You can set the same font filename for the different string resources to use the same font. + +```bash +... +├── res + ├── font + ├── your_app_font.otf // or ttf format + ├── your_app_other_font.otf // or ttf format +``` + +in strings.xml: +```xml + your_app_font + your_app_font + your_app_other_font +``` + +### 4. Tooltips + +Tooltips are messages attached to particular anchor views within the app. To enable this feature, refer to the Configuration section. + +> This feature is in beta testing, therefore its features and behavior might change in the future. Please refer to the internal guide for more information. + +## SDK Logic + +----- + +
+(click to expand) + +### Client-side opt-out handling + +If user (with valid identifiers in `UserInfoProvider`) opts out from a message, that information is saved in user cache locally on the device and the message won't be shown again for that user on the same device. The opt-out status is not shared between devices. The same applies for anonymous user. +* Each user has a separate cache container that is persisted in `SharedPreferences`. Each combination of userId and idTrackingIdentifier is treated as a different user including a special - anonymous user - that represents non logged-in user (userId and idTrackingIdentifier are null or empty). + +### Client-side max impressions handling + +Message impressions (displays) are counted locally for each user. Meaning that a message with maxImpression value of 3 will be displayed to each user (different identifiers in `UserInfoProvider` class) max 3 times. Max impression number can be modified in the Dashboard. Then the SDK, after next ping call, will compare new value with old max impression number and add the difference to the current impression counter. The max impression data is not shared between devices. The same applies for anonymous user. + +
+ +## Troubleshooting + +----- + +
+(click to expand) + +### Proguard ParseException +```kotlin +Caused by: java.io.IOException: proguard.ParseException: Unknown option '-if' in line 84 of file +This error will be thrown during compilation if `minifyEnabled = true`, and your Proguard version is below 6.0. +``` +
+(click to expand) +Recommendation: Update your project's Android Gradle Plugin to the latest version, it includes the latest version of Proguard. + +Less optimal solution: Force Gradle to use the latest version of Proguard(https://sourceforge.net/p/proguard/discussion/182455/thread/89a4d63d/): + +```groovy +buildscript { + ... + configurations.all { + resolutionStrategy { + force 'net.sf.proguard:proguard-gradle:6.0.3' + force 'net.sf.proguard:proguard-base:6.0.3' + } + } +} +``` +
+ +### Duplicate class ManifestConfig +Build Error: `java.lang.RuntimeException: Duplicate class com.rakuten.tech.mobile.manifestconfig.annotations.ManifestConfig` +
+(click to expand) + +This build error could occur if you are using older versions of other libraries from `com.rakuten.tech.mobile`. +Some of the dependencies in this SDK have changed to a new Group ID of `io.github.rakutentech` (due to the [JCenter shutdown](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/)). +This means that if you have another library in your project which depends on the older dependencies using the Group ID `com.rakuten.tech.mobile`, then you will have duplicate classes. + +To avoid this, please add the following to your `build.gradle` in order to exclude the old `com.rakuten.tech.mobile` dependencies from your project. + +```groovy +configurations.all { + exclude group: 'com.rakuten.tech.mobile', module: 'manifest-config-processor' + exclude group: 'com.rakuten.tech.mobile', module: 'manifest-config-annotations' +} +``` + +
+ +### Other Issues +Rakuten developers experiencing any other problems should refer to the Troubleshooting Guide on the internal developer documentation portal. + +
+ +## Frequently Asked Questions + +----- + +
+(click to expand) + +### Q: How do I send message based on app version? +When creating messages, you can specify the app version - such as debug, staging, or production version. +`.` is the format when specifying the versions; for example, 1.0.0-staging.101, 1.0.0-prod.203, or 0.x.x.4. + +### Q: How many times the message is sent to the device? Does it depends on Max Lifetime Impressions? +The max impression is handled by SDK and is bound to user per device.
+1. Scenario- Max impression is set to 2. User does not login with any ID. So It will be shown 2 times. +2. Scenario- Max impression is set to 2. User login with any ID for 2 devices. It will show 2 times for each device. +3. The message start time can be shown + +Please refer to [max impression handling](#max-impression) for more details. + +### Q: Is the message displayed if ALL or ANY of triggers are satisfied? +All the events "launch the app event, login event, purchase successful event, custom event" work as AND. It will send to the device only all defined event are triggered. + +
+ +## Changelog + +----- + +### 7.x + +
+(click to expand) + +#### 7.6.0 (2024-09-17) +* Improvements: + - SDKCF-6327: Updated compile and target SDK to API 34 (Android 14). + - RMCCX-6695: Improved the userguide. +* RMC SDK updates: + - RMCCX-6698: Supported Push Primer feature through CustomJson. + - RMCCX-6711: Supported redirecting to App Notification Settings on tapping PushPrimer button action. + - RMCCX-6706: Prevented showing Push Primer campaign for unsupported devices (Android 12 and below) and when push permission is granted. + - RMCCX-6711: Limited CustomJson feature to RMC SDK. + - RMCCX-6936: Supported sending `_rem_rmc_iam_impressions` event to app and SDK RAT accounts upon impression. + - RMCCX-6937: Supported sending `_rem_rmc_iam_pushprimer` event to app and SDK RAT accounts upon selection from the native push permission prompt. + +#### 7.5.0 (2023-12-12) +* SDKCF-6575: Added sending of device Id in all IAM requests. +* Improved the following classes to increase code coverage: + - InAppMessagingConstants (SDKCF-6497) + - InAppMessageSlideUpView (SDKCF-6478) + - InAppMessagingTooltipView (SDKCF-6438) + - InAppMessageModalView (SDKCF-6611) + - InAppMessageBaseView (SDKCF-6486) + - MessageEventReconciliationUtil (SDKCF-6398) + - MessageReadinessManager (SDKCF-6458) + - TriggerAttributesValidator (SDKCF-6399) + - BuildVersionChecker (SDKCF-6513) + - ImpressionWorker (SDKCF-6613) +* SDKCF-6596: Updated minor version and dependency check suppression of the following dependencies: + - Kotlin to `1.6.21` + - Dokka to `1.8.10` + - Robolectric to `4.10.3` + - Dependency Check to `8.2.1` +* SDKCF-6736: Improved worker to abort further processing when config URL is empty. +* SDKCF-6547: Fixed impression is not incremented when tooltip campaign is displayed. +* SDKCF-6518: Fixed and suppressed some SonarCloud code smells. +* Updates for RMC SDK: + - Prevent calling `configure()` when RMC SDK is integrated (SDKCF-6711) + - Added sending of `rmcSdkVersion` in IAM requests (SDKCF-6708) + +#### 7.4.0 (2023-04-24) +* SDKCF-6321: Updated detekt version to `1.22.0`. +* SDKCF-6395: Removed unused utility function `getImage()` (downloading image with Retrofit). +* SDKCF-6126: Fixed incorrect tooltip position on scroll views and during device screen rotation. +* SDKCF-6267: Fixed issue where campaign is sometimes not displayed on app launch. +* SDKCF-6391: Fixed campaign being displayed multiple times when upgrading to version `7.2.0` or later. +* SDKCF-6440: Fixed campaigns are not displayed when prior campaign in queue is cancelled through `onVerifyContext`. +* SDKCF-6394: Refactored data classes to remove unnecessary annotation and grouped related data classes. + +#### 7.3.0 (2022-12-13) +* SDKCF-5835: Updated dependencies to remove vulnerabilities. +* SDKCF-5893: Added campaign UX Improvements related to texts' wrapping for readability: + - For Android 13 devices using Japanese language, wrapping by Bunsetsu is applied + - For devices using English language, hyphenation is applied +* SDKCF-5601: Fixed close button's content label accessibility warnings. +* SDKCF-5900: Refactored code to remove most of the suppressions for code smells. +* SDKCF-5948: Added tooltip campaigns feature. +* SDKCF-6076: Updated `configure()` API to enable/disable tooltip campaigns feature (disabled by default). Please see [usage](#tooltip-campaigns) section for details. +* SDKCF-6035: Added `closeTooltip()` API to manually close displayed tooltip by `viewId` (`UIElement` identifier). +* SDKCF-6009: Fixed issue on campaign not displayed after going to background. +* SDKCF-6025: Added Push Primer opt-in tracking for Android 13 and up devices. Please see [usage](#push-primer-tracker) section for details. +* SDKCF-6010: Fixed re-display of AppStart-only campaigns when switching users, and to align with iOS. + +#### 7.2.0 (2022-09-28) +* SDKCF-5038: Refactored event logging logic and campaign repository to align with iOS. + - **Impact**: Data stored from SharedPreferences is cleared to use the new format. Therefore please ensure that there are no pending campaigns when updating to this version, for the campaign's impressions left will be reset to "max lifetime impressions count" and opt-out status to "not opted out" affecting the visibility of the pending campaign. +* SDKCF-5510: Updated SDK Utils dependency to v2.1.1. +* SDKCF-5242: Added handling to change opt-out color when background is dark. +* SDKCF-5637: Fixed issue where test campaigns are not being displayed. +* SDKCF-5777: Enabled triggers validation for test campaigns. +* SDKCF-5778: Updated compile and target SDK to API 33 (Android 13). +* SDKCF-5565: Added Push Primer feature for Android 13 and up devices. Please see [usage](#push-primer) section for details. +* SDKCF-5612: Updated `configure()` API to optionally override subscription ID and config URL at runtime. + +#### 7.1.0 (2022-06-24) +* SDKCF-5256: Added sending of impression events with campaign details to analytics account. +* SDKCF-4919: Added support for building using Java 11. +* SDKCF-5173: Updated detekt to stricter check. +* SDKCF-5295: Updated SDK Utils version to update default `initOrder` of content provider. + +#### 7.0.0 (2022-04-25) +* SDKCF-4941: **Breaking Changes:** Updated configuration API to align with iOS. + - Renamed `init()` API to `configure()`. + - Removed optional `errorCallback` lambda function parameter in `configure()`, and changed as static variable. + - Please see [Configuring In-App Messaging SDK section](#configure-sdk) for details and sample code. +* SDKCF-4904: Updated dependencies to fix vulnerability issues. +* SDKCF-5002: Campaign UX Improvements: Added handling for new flags in campaign payload: + - Setting to Hide the top right "x" closing button. + - "End Date" setting in order to have a "Never ends" option. + - "Max Lifetime impressions" setting in order to have several options (No limits/Only once/Multiple times). By default set it to "Only Once". +* SDKCF-4859: Fixed campaign button boundaries when campaign and button backgrounds have the same color. +* SDKCF-5019: Updated SDK Utils to v1.1.0. +* SDKCF-4860: Added Jetpack Compose sample app. +
+ +### 6.x + +
+(click to expand) + +#### 6.1.0 (2022-02-09) +* SDKCF-4470: Updated the layout for close and campaign buttons. Added feature to customize text and button fonts, please see [custom font section](#custom-font) for details. +* SDKCF-4684: Fixed Picasso bitmap retrieval to avoid crash on large images. +* SDKCF-4650: Refactored handling for different responses from endpoint requests for consistency and better logging. +* SDKCF-4690: Changed common code to use SDK Utils: Logger and SharedPreferences +* SDKCF-4799: Fixed reported issues due to version update of SonarQube +* SDKCF-4636: Refactored handling for different responses from endpoint requests for consistency and better logging. +* SDKCF-4729: Added error handling for display permission request. + +#### 6.0.0 (2021-12-03) +* SDKCF-4151: **Breaking Changes:** + - Renamed method for providing access token in `UserInfoProvider` interface class from `provideRaeToken` to `provideAccessToken`. + - Removed `provideRakutenId` method for Rakuten Id in `UserInfoProvider` interface class. Please use `provideUserId` for specific user targeting. + - All the methods in `UserInfoProvider` class are optional for Kotlin class implementing the interface. +* SDKCF-4468: **Breaking Change:** Removed deprecated updateSession() API. +* SDKCF-4530: Fixed handling for case-sensitivity update for custom event and attribute name. +* SDKCF-4196: Updated dependencies due to JCenter shutdown. +* SDKCF-4190: Updated Kluent dependency version due to deprecated mocking feature. +* SDKCF-4427: Updated compile and target SDK to API 31 (Android 12). +* SDKCF-3978: Updated endpoint response models to fix optional and required parameters. +* SDKCF-4440: Changed image downloader dependency from Fresco to Picasso. +* SDKCF-3979: Added displaying delay between campaign messages. +* SDKCF-3826: Removed deprecated kotlin-android-extensions plugin. +* SDKCF-4117: Added handling for send IAM events to analytics backend if the dependency exists. +
+ +### 5.x and older + +
+(click to expand) + +#### 5.0.0 (2021-09-10) +* SDKCF-4071: **Breaking Change:** Added new method for providing id tracking identifier in `UserInfoProvider` interface class. + - The new method is optional for Kotlin class implementing the interface. +* SDKCF-4174: Updated support link in documentation. +* SDKCF-4219: Fixed issue regarding incorrect behavior of closeMessage API when queue is not cleared. + +#### 4.0.0 (2021-08-04) +* SDKCF-3651: Changed Config API call to /GET with query params. This allows the backend to filter requests if required. +* SDKCF-3653: Added handling for Config and Ping API calls for "429 too many requests" response. The SDK will start exponential backoff (plus a random factor) retries to space out the requests to the backend when code 429 is received. +* SDKCF-3655: Handled opt-out and max impression tracking logic solely on SDK. This change reduces the backend's load per request. +* SDKCF-3664: Added support on roll-out percentage for computing if In-App Messaging is enabled. This allows the backend to gradually increase campaign distribution. +* SDKCF-3715: Included subscription key in Config API request header to enable better filtering of requests. +* SDKCF-3742: Fixed opt-out wording in JP and EN for consistency with iOS. +* SDKCF-3820: Added disabling of SDK features when response received from backend is disabled config. +* SDKCF-3908: Changed auto-initialization to explicit init for better control and handling for any initialization issue. Please refer to [SDK Integration](#integration) for details. +* SDKCF-3939: Added recommendation to use a remote feature flag to enable/disable the SDK. +* SDKCF-3916: Added internal handling of OS exception and triggering `errorCallback` if set. +* SDKCF-3957: Increased the "hit area" of the close button. +* SDKCF-3992: Updated minimum SDK to API 23. + +#### 3.0.0 (2021-03-24) +* SDKCF-3450: Update Fresco dependency to v2.4.0 to fix SoLoader issue. +* SDKCF-3454: Changed Maven Group ID to `io.github.rakutentech.inappmessaging`. You must update your dependency declarations to the following: + - `io.github.rakutentech.inappmessaging:inappmessaging:3.0.0` +* Migrated publishing to Maven Central due to Bintray/JCenter being [shutdown](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/). You must add `mavenCentral()` to your `repositories`. + +#### 2.3.0 (2021-02-24) +* SDKCF-3199: Add [`closeMessage` API](#close-campaign) for programmatically closing campaigns without user action. +* SDKCF-3129: Fix close button layout issue in slide-up campaign +* SDKCF-3117: Fix ANDROID_ID crash on AQUOS devices +* SDKCF-3219: Add closing of campaign when activity is unregistered + +#### 2.2.0 (2020-11-10) +* SDKCF-2870: Allow host app to control if a campaign should be displayed in the current screen (using [contexts](#context)) +* SDKCF-2980: Fix Android 11 issue where user are not redirected after tapping a campaign's redirect/deeplink button +* SDKCF-2967: Fix issue for campaigns getting displayed multiple times for campaign triggered by the AppLaunch event +* SDKCF-2872: Fix issue for Slide Up campaign was getting shown again after being closed and when user moved to another tab + +#### 2.1.0 (2020-09-18) +* SDKCF-2568: Deprecate updateSession() API + - session update will be done internally when event is triggered and user info was changed + - will be removed on next major version + +#### 2.0.0 (2020-06-11) +* SDKCF-2054: Converted In-App Messaging to Kotlin +* SDKCF-1614: Polish the Public API (removed unnecessary public APIs) +* SDKCF-1616: Auto Initialize the SDK +* SDKCF-2342: ID tracking identifier targeting +* SDKCF-2353: Rakuten ID targeting +* SDKCF-2402: Update locale parameter format +* SDKCF-2429: Prevent trigger of Launch App Event multiple times +* SDKCF-1619 SDKCF-1617: Remove unnecessary dependencies (Espresso and Lombok) + +#### 1.4.0 +* Adding feature embedded event in action buttons. +* Fix UI bug on SlideUp messages. +* Fix race condition bug when initializing SDK. + +#### 1.3.0 +* Adding support of Full Screen messages. +* Adding support of Slide Up messages. +* Adding support of message opt-out option for Full Screen and Modal messages. + +#### 1.2.0 +* Adding Gif support. +* Removing RAT Broadcaster dependency, hence completely removing Android Support Libraries from InAppMessaging SDK. + +
\ No newline at end of file