API reference

InAppMessageParams Class

Modifiers: final
Parameters for in-app messaging. See BillingClient.showInAppMessages.
The equivalent Google Play Billing Library class can be found at the Android developer documentation for InAppMessageParams.

Signature

class InAppMessageParams(inAppMessageCategoriesSet: Set<Int>)

Constructors

InAppMessageParams ( inAppMessageCategoriesSet )
Signature
constructor(inAppMessageCategoriesSet: Set<Int>)
Parameters
inAppMessageCategoriesSet: Set

Companion Object

Companion Object Functions

newBuilder ()
Signature
fun newBuilder(): InAppMessageParams.Builder
Returns
InAppMessageParams.Builder

Inner Class

Builder Class

Modifiers: final
Helps construct InAppMessageParams.

Signature

class Builder

Functions

addAllInAppMessageCategoriesToShow ()
Adds all in-app message categories to show.
Signature
fun addAllInAppMessageCategoriesToShow()
addInAppMessageCategoryToShow ( inAppMessageCategoryId )
Adds a specific in-app message category to show.
Signature
fun addInAppMessageCategoryToShow(inAppMessageCategoryId: Int)
Parameters
inAppMessageCategoryId: Int
  A high-level category of the in-app message.
build ()
Signature
fun build(): InAppMessageParams

Inner Annotation

InAppMessageCategoryId Annotation

A high-level category of the in-app message.
One category can be mapped to multiple in-app messages.

Signature

annotation class InAppMessageCategoryId

Constructors

InAppMessageCategoryId ()
Signature
constructor()
Returns
InAppMessageParams.InAppMessageCategoryId

Companion Object

Companion Object Properties
TRANSACTIONAL : Int
[Get]
The in-app messages of this category are for transactional purpose, such as payment issues.
Signature
const val TRANSACTIONAL: Int = 2
UNKNOWN_IN_APP_MESSAGE_CATEGORY_ID : Int
[Get]
Signature
const val UNKNOWN_IN_APP_MESSAGE_CATEGORY_ID: Int = 0
Did you find this page helpful?