AdaptySDK 4.1.2
Loading...
Searching...
No Matches
AdaptySDK.AdaptyProfile Class Referencesealed

Represents a user profile in Adapty. More...

Classes

class  AccessLevel
 One access level of a profile: whether it is active, what granted it, and until when. More...
class  NonSubscription
 One non-subscription purchase of a profile — consumable or lifetime. More...
class  Subscription
 One subscription of a profile, as the store and Adapty currently see it. More...

Public Member Functions

override string ToString ()
 A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Public Attributes

readonly string ProfileId
 An identifier of the user in Adapty.
readonly string CustomerUserId
 An identifier of the user in your system.

Properties

IReadOnlyList< AdaptyExternalAttributionProvider > AppliedExternalAttributionProviders [get]
 The external attribution providers applied to this profile.
IReadOnlyDictionary< string, object > CustomAttributes [get]
 The custom attributes set on this profile. Numbers arrive as double.
IReadOnlyDictionary< string, AccessLevel > AccessLevels [get]
 The profile's access levels, keyed by the identifier configured in the Dashboard. Empty when the user has none.
IReadOnlyDictionary< string, Subscription > Subscriptions [get]
 The profile's subscriptions, keyed by store product id. Empty when the user has none.
IReadOnlyDictionary< string, IReadOnlyList< NonSubscription > > NonSubscriptions [get]
 The profile's non-subscription purchases, keyed by store product id — a list each, since one product can be bought more than once. Empty when the user has none.

Detailed Description

Represents a user profile in Adapty.

The profile contains all information about the user including access levels, subscriptions, non-subscription purchases, and custom attributes. Read more at Adapty Documentation

Member Function Documentation

◆ ToString()

override string AdaptySDK.AdaptyProfile.ToString ( )

A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Member Data Documentation

◆ CustomerUserId

readonly string AdaptySDK.AdaptyProfile.CustomerUserId

An identifier of the user in your system.

This is the customer user ID that you set using Adapty.Identify(string, Action<AdaptyError>).

◆ ProfileId

readonly string AdaptySDK.AdaptyProfile.ProfileId

An identifier of the user in Adapty.

Property Documentation

◆ AccessLevels

IReadOnlyDictionary<string, AccessLevel> AdaptySDK.AdaptyProfile.AccessLevels
get

The profile's access levels, keyed by the identifier configured in the Dashboard. Empty when the user has none.

◆ AppliedExternalAttributionProviders

IReadOnlyList<AdaptyExternalAttributionProvider> AdaptySDK.AdaptyProfile.AppliedExternalAttributionProviders
get

The external attribution providers applied to this profile.

◆ CustomAttributes

IReadOnlyDictionary<string, object> AdaptySDK.AdaptyProfile.CustomAttributes
get

The custom attributes set on this profile. Numbers arrive as double.

◆ NonSubscriptions

IReadOnlyDictionary<string, IReadOnlyList<NonSubscription> > AdaptySDK.AdaptyProfile.NonSubscriptions
get

The profile's non-subscription purchases, keyed by store product id — a list each, since one product can be bought more than once. Empty when the user has none.

◆ Subscriptions

IReadOnlyDictionary<string, Subscription> AdaptySDK.AdaptyProfile.Subscriptions
get

The profile's subscriptions, keyed by store product id. Empty when the user has none.


The documentation for this class was generated from the following files:
  • Packages/com.adapty.unity-sdk/Runtime/Models/AdaptyProfile.AccessLevel.cs
  • Packages/com.adapty.unity-sdk/Runtime/Models/AdaptyProfile.cs