AdaptySDK 4.4.0
Loading...
Searching...
No Matches
AdaptySDK.AdaptyStoreMessageType Class Referencesealed

The kind of an App Store message waiting to be shown. iOS only. More...

Inheritance diagram for AdaptySDK.AdaptyStoreMessageType:

Public Member Functions

 AdaptyStoreMessageType (string rawValue)
 Creates a kind from its identifier — for a kind added after the shared instances were snapshotted.
bool Equals (AdaptyStoreMessageType other)
 Whether the other kind carries the same identifier.
override bool Equals (object obj)
 Whether the other object is a kind carrying the same identifier.
override int GetHashCode ()
 The hash code of the identifier.
override string ToString ()
 The identifier itself.

Static Public Member Functions

static bool operator== (AdaptyStoreMessageType a, AdaptyStoreMessageType b)
 Whether both kinds carry the same identifier, or both are null.
static bool operator!= (AdaptyStoreMessageType a, AdaptyStoreMessageType b)
 Whether the kinds carry different identifiers, or exactly one is null.

Public Attributes

readonly string RawValue
 The identifier the native SDK reports the kind by.

Static Public Attributes

static readonly AdaptyStoreMessageType Generic = new("generic")
 A general App Store message.
static readonly AdaptyStoreMessageType PriceIncreaseConsent = new("price_increase_consent")
 A request to consent to a subscription price increase.
static readonly AdaptyStoreMessageType BillingIssue = new("billing_issue")
 A subscription billing issue.
static readonly AdaptyStoreMessageType WinBackOffer = new("win_back_offer")
 A win-back offer the user is eligible for.

Detailed Description

The kind of an App Store message waiting to be shown. iOS only.

The shared instances are the kinds known when this SDK version was released, not the limit: a reason StoreKit adds later arrives as storekit_<n> with its own RawValue.

Constructor & Destructor Documentation

◆ AdaptyStoreMessageType()

AdaptySDK.AdaptyStoreMessageType.AdaptyStoreMessageType ( string rawValue)

Creates a kind from its identifier — for a kind added after the shared instances were snapshotted.

Parameters
rawValueThe identifier the native SDK reports the kind by.
Exceptions
ArgumentNullExceptionThe identifier is null.

Member Function Documentation

◆ Equals() [1/2]

bool AdaptySDK.AdaptyStoreMessageType.Equals ( AdaptyStoreMessageType other)

Whether the other kind carries the same identifier.

Parameters
otherThe kind to compare with.

◆ Equals() [2/2]

override bool AdaptySDK.AdaptyStoreMessageType.Equals ( object obj)

Whether the other object is a kind carrying the same identifier.

Parameters
objThe object to compare with.

◆ GetHashCode()

override int AdaptySDK.AdaptyStoreMessageType.GetHashCode ( )

The hash code of the identifier.

◆ operator!=()

bool AdaptySDK.AdaptyStoreMessageType.operator!= ( AdaptyStoreMessageType a,
AdaptyStoreMessageType b )
static

Whether the kinds carry different identifiers, or exactly one is null.

Parameters
aThe left kind.
bThe right kind.

◆ operator==()

bool AdaptySDK.AdaptyStoreMessageType.operator== ( AdaptyStoreMessageType a,
AdaptyStoreMessageType b )
static

Whether both kinds carry the same identifier, or both are null.

Parameters
aThe left kind.
bThe right kind.

◆ ToString()

override string AdaptySDK.AdaptyStoreMessageType.ToString ( )

The identifier itself.

Member Data Documentation

◆ BillingIssue

readonly AdaptyStoreMessageType AdaptySDK.AdaptyStoreMessageType.BillingIssue = new("billing_issue")
static

A subscription billing issue.

◆ Generic

readonly AdaptyStoreMessageType AdaptySDK.AdaptyStoreMessageType.Generic = new("generic")
static

A general App Store message.

◆ PriceIncreaseConsent

readonly AdaptyStoreMessageType AdaptySDK.AdaptyStoreMessageType.PriceIncreaseConsent = new("price_increase_consent")
static

A request to consent to a subscription price increase.

◆ RawValue

readonly string AdaptySDK.AdaptyStoreMessageType.RawValue

The identifier the native SDK reports the kind by.

◆ WinBackOffer

readonly AdaptyStoreMessageType AdaptySDK.AdaptyStoreMessageType.WinBackOffer = new("win_back_offer")
static

A win-back offer the user is eligible for.


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