SubscriptionPurchaseDelegate class
Delegate to perform each process on the subscription purchase.
定期購入型の購入上の各処理を行うためのデリゲート。
Constructors
-
SubscriptionPurchaseDelegate({String? onRetrieveUserId()?, CollectionBase<
DocumentBase> ? onRetrieveCollection(PurchaseProduct product, String userId) = StoreSubscriptionPurchaseProduct.defaultOnRetrieveCollection, bool onRetrieveValue(CollectionBase<DocumentBase> ? collection, PurchaseProduct product, String userId) = StoreSubscriptionPurchaseProduct.defaultOnRetrieveValue, Future<void> onSaveDocument(DocumentBase? document, PurchaseProduct product, String userId, String orderId, DateTime expiredTime) = StoreSubscriptionPurchaseProduct.defaultOnSaveDocument, Future<void> onRevokeDocument(DocumentBase? document, PurchaseProduct product, String userId) = StoreSubscriptionPurchaseProduct.defaultOnRevokeDocument}) -
Delegate to perform each process on the subscription purchase.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onRetrieveCollection
→ CollectionBase<
DocumentBase> ? Function(PurchaseProduct product, String userId) -
Callback to retrieve the collection.
final
- onRetrieveUserId → String? Function()?
-
Callback to retrieve user ID. Return Null if the user is not logged in.
final
-
onRetrieveValue
→ bool Function(CollectionBase<
DocumentBase> ? collection, PurchaseProduct product, String userId) -
Callback to retrieve the value.
final
-
onRevokeDocument
→ Future<
void> Function(DocumentBase? document, PurchaseProduct product, String userId) -
Callback to revoke the document.
final
-
onSaveDocument
→ Future<
void> Function(DocumentBase? document, PurchaseProduct product, String userId, String orderId, DateTime expiredTime) -
Callback to save the document.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited