ProductView¶
Inherits: RefCounted < Object
A view that displays a single product from the App Store.
Description¶
This class represents a view that displays a single product from the App Store. It allows you to configure the product to display, the style of the view, and the icon to use.
Properties¶
|
||
|
||
|
||
|
Methods¶
void |
dismiss() |
void |
present() |
Enumerations¶
enum ViewStyle: 🔗
ViewStyle automatic = 0
The system automatically chooses the most appropriate style.
ViewStyle compact = 1
A compact style that displays minimal information.
ViewStyle large = 2
A large style that displays more detailed information.
ViewStyle regular = 3
The regular style.
Property Descriptions¶
bool prefers_promotional_icon = false 🔗
Whether the view prefers to show the promotional icon for the product.
The product identifier of the product to display.
The style of the product view. See ViewStyle for available options.
String system_icon_name = "cart" 🔗
The name of the system icon to use as a placeholder while the product icon loads.
Method Descriptions¶
void dismiss() 🔗
Dismisses the currently presented view.
void present() 🔗
Presents the product view on top of the current view hierarchy.