SubscriptionStoreView¶
Inherits: RefCounted < Object
A view for displaying subscription options.
Description¶
This class presents a standard StoreKit subscription view. It can be configured to show a specific subscription group or a list of specific products. The visual style of the controls is also customizable.
Properties¶
|
||
|
||
|
Methods¶
void |
dismiss() |
void |
present() |
Enumerations¶
enum ControlStyle: 🔗
ControlStyle automatic = 0
The system automatically chooses the most appropriate style.
ControlStyle picker = 1
A picker style.
ControlStyle buttons = 2
A button-based style.
ControlStyle compactPicker = 3
A compact picker style.
ControlStyle prominentPicker = 4
A prominent picker style.
ControlStyle pagedPicker = 5
A paged picker style.
ControlStyle pagedProminentPicker = 6
A prominent paged picker style.
Property Descriptions¶
The visual style of the subscription controls. See ControlStyle for options.
The identifier of the subscription group to display. If set, this takes precedence over product_i_ds.
PackedStringArray product_i_ds = PackedStringArray() 🔗
void set_product_i_ds(value: PackedStringArray)
PackedStringArray get_product_i_ds()
A list of specific product identifiers to display. Ignored if group_id is set.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
Method Descriptions¶
void dismiss() 🔗
Dismisses the currently presented view.
void present() 🔗
Presents the subscription store view on top of the current view hierarchy.