subscriber-attributes / com.revenuecat.purchases.subscriberattributes / SubscriberAttributesManager

SubscriberAttributesManager

class SubscriberAttributesManager

Constructors

<init>

SubscriberAttributesManager(deviceCache: SubscriberAttributesCache, backend: SubscriberAttributesPoster, attributionFetcher: AttributionFetcher)

Properties

backend

val backend: SubscriberAttributesPoster

deviceCache

val deviceCache: SubscriberAttributesCache

Functions

collectDeviceIdentifiers

Collect GPS ID, ANDROID ID and sets IP to true automatically

fun collectDeviceIdentifiers(appUserID: String, applicationContext: Application): Unit

getUnsyncedSubscriberAttributes

fun getUnsyncedSubscriberAttributes(appUserID: String): SubscriberAttributeMap

markAsSynced

fun markAsSynced(appUserID: String, attributesToMarkAsSynced: Map<String, SubscriberAttribute>, attributeErrors: List<SubscriberAttributeError>): Unit

setAttribute

fun setAttribute(key: SubscriberAttributeKey, value: String?, appUserID: String): Unit

setAttributes

fun setAttributes(attributesToSet: Map<String, String?>, appUserID: String): Unit

setAttributionID

Set the specific ID for the specified attribution network. It also collects GPS ID, ANDROID ID and sets IP to true automatically.

fun setAttributionID(attributionKey: AttributionIds, value: String?, appUserID: String, applicationContext: Application): Unit

synchronizeSubscriberAttributesForAllUsers

fun synchronizeSubscriberAttributesForAllUsers(currentAppUserID: AppUserID): Unit