VerifyPurchaseResultHorizon class

Result from Meta Horizon verify_entitlement API. Returns verification status and grant time for the entitlement.

Inheritance
Implemented types

Constructors

VerifyPurchaseResultHorizon({double? grantTime, required bool isValid, required bool success})
const
VerifyPurchaseResultHorizon.fromJson(Map<String, dynamic> json)
factory

Properties

grantTime double?
Unix timestamp (seconds) when the entitlement was granted.
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether the purchase is valid. Uniform across every VerifyPurchaseResult variant so callers can gate entitlement without inspecting the concrete type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Whether the entitlement verification succeeded. @deprecated Renamed to isValid so every VerifyPurchaseResult variant answers validity the same way. Scheduled for removal in OpenIAP 4.0.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited