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

bool

prefers_promotional_icon

false

String

product_id

""

int

style

0

String

system_icon_name

"cart"

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 🔗

  • void set_prefers_promotional_icon(value: bool)

  • bool get_prefers_promotional_icon()

Whether the view prefers to show the promotional icon for the product.


String product_id = "" 🔗

  • void set_product_id(value: String)

  • String get_product_id()

The product identifier of the product to display.


int style = 0 🔗

  • void set_style(value: int)

  • int get_style()

The style of the product view. See ViewStyle for available options.


String system_icon_name = "cart" 🔗

  • void set_system_icon_name(value: String)

  • String get_system_icon_name()

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.