SubscriptionStoreControlStyleConfiguration.PickerOption
The properties of a picker option to use for selecting a subscription.
Declaration
@dynamicMemberLookup struct PickerOptionOverview
You use SubscriptionStoreControlStyleConfiguration.PickerOption very similarly to SubscriptionStoreControlStyleConfiguration.Option. The key differences are:
The picker option represents a subscription option within the scope of an element of a picker control, where you can merchandise a standard option using any kind of control.
Instead of getting an option from a SubscriptionStoreControlStyleConfiguration, you get a picker option when you create a SubscriptionStorePicker.
Instead of providing a subscribe() method, the picker option provides an isSelected property to get the selection state.
The key difference is a SubscriptionStoreControlStyleConfiguration.Option provides a method to subscribe, and a SubscriptionStoreControlStyleConfiguration.PickerOption indicates the current selection state within a SubscriptionStorePicker.
SubscriptionStoreControlStyleConfiguration.PickerOption is a dynamic member lookup type, so you don’t need to use subscription directly to access the properties of the Product value. Instead, access any properties of Product or Product.SubscriptionInfo directly on the PickerOption value.