Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsStoreContextMBS class.
WindowsStoreContextMBS.Constructor Private
Function:
The private constructor.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
See also:
WindowsStoreContextMBS.Constructor(Parent as DesktopWindow)
Function:
The constructor.
Notes: Initializes store and sets parent window to use for dialogs.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 22.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: Initializes store and sets parent window to use for dialogs.
See also:
WindowsStoreContextMBS.Constructor(Parent as Window)
Function:
The constructor.
Notes: Initializes store and sets parent window to use for dialogs.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: Initializes store and sets parent window to use for dialogs.
See also:
WindowsStoreContextMBS.GetAppLicenseAsync(CompletionHandler as GetAppLicenseCompletedMBS)
Function:
Gets license info for the current app, including licenses for add-ons for the current app.
Example:
Notes:
Asynchronous version, which returns quickly and calls the given delegate later when done.
The StoreAppLicense object returned by this method provides access to licenses for add-ons and other info, such as whether the license is active. If this method is called while the device is offline, it returns the cached value of the current licenses on the device.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim context as New WindowsStoreContextMBS(Window1)
context.GetAppLicenseAsync AddressOf GetAppLicenseCompleted
Asynchronous version, which returns quickly and calls the given delegate later when done.
The StoreAppLicense object returned by this method provides access to licenses for add-ons and other info, such as whether the license is active. If this method is called while the device is offline, it returns the cached value of the current licenses on the device.
Some examples using this method:
WindowsStoreContextMBS.GetAppLicenseSync as WindowsStoreAppLicenseMBS
Function:
Gets license info for the current app, including licenses for add-ons for the current app.
Notes:
Synchronous version, which waits for the result.
The StoreAppLicense object returned by this method provides access to licenses for add-ons and other info, such as whether the license is active. If this method is called while the device is offline, it returns the cached value of the current licenses on the device.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 23.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes:
Synchronous version, which waits for the result.
The StoreAppLicense object returned by this method provides access to licenses for add-ons and other info, such as whether the license is active. If this method is called while the device is offline, it returns the cached value of the current licenses on the device.
WindowsStoreContextMBS.GetAssociatedStoreProductsAsync(productKinds() as String, CompletionHandler as GetStoreProductsCompletedMBS)
Function:
Gets Microsoft Store info for the add-ons of the current app for which the user has purchased.
Notes: productKinds: An array of strings that specify the types of add-ons for which you want to retrieve info.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: productKinds: An array of strings that specify the types of add-ons for which you want to retrieve info.
WindowsStoreContextMBS.GetStoreProductForCurrentAppAsync(CompletionHandler as GetStoreProductForCurrentAppCompletedMBS)
Function:
Gets Microsoft Store listing info for the current app and provides access to a method that you can use to purchase the app for the current user.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim context as New WindowsStoreContextMBS(Window1)
context.GetStoreProductForCurrentAppAsync AddressOf GetStoreProductForCurrentAppCompleted
Some examples using this method:
WindowsStoreContextMBS.GetStoreProductsAsync(productKinds() as String, storeIds() as String, CompletionHandler as GetStoreProductsCompletedMBS)
Function:
Gets Microsoft Store listing info for the specified products that are associated with the current app.
Example:
Notes:
productKinds: An array of strings that specify the types of products for which you want to retrieve listing info.
storeIds: An array of the Store ID strings for the products for which you want to retrieve listing info.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
// please change ID for the item to find
Dim StoreIds() As String = Array("12345", "67890")
Dim ProductKinds() As String = Array("**Application**", "**Game**", "**Consumable**", "**UnmanagedConsumable**", "**Durable**")
context.GetStoreProductsAsync ProductKinds, StoreIds, AddressOf GetStoreProductsAsyncCompleted
productKinds: An array of strings that specify the types of products for which you want to retrieve listing info.
storeIds: An array of the Store ID strings for the products for which you want to retrieve listing info.
Some examples using this method:
WindowsStoreContextMBS.GetUserCollectionAsync(productKinds() as String, CompletionHandler as GetStoreProductsCompletedMBS)
Function:
Gets Microsoft Store info for the add-ons of the current app for which the user has purchased.
Notes: productKinds: An array of strings that specify the types of add-ons for which you want to retrieve info.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Notes: productKinds: An array of strings that specify the types of add-ons for which you want to retrieve info.
WindowsStoreContextMBS.RequestPurchaseAsync(CompletionHandler as RequestPurchaseCompletedMBS, StoreID as String, PurchaseProperties as WindowsStorePurchasePropertiesMBS = nil)
Function:
Requests the purchase for the specified app or add-on and displays the UI that is used to complete the transaction via the Microsoft Store.
Example:
Notes:
This method provides the option to specify additional details for a specific offer within a large catalog of products that are represented by a single listing in the Microsoft Store, including the product name to display to the user during the purchase.
StoreID: The Store ID of the app or the add-on that you want to purchase for the current user.
PurchaseProperties: The optional purchase properties with display name or additional JSON.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim context as New WindowsStoreContextMBS(Window1)
// please change ID for the item to purchase
Const StoreID = "9NCMFFPJRVHC"
context.RequestPurchaseAsync AddressOf RequestPurchaseCompleted, StoreID
This method provides the option to specify additional details for a specific offer within a large catalog of products that are represented by a single listing in the Microsoft Store, including the product name to display to the user during the purchase.
StoreID: The Store ID of the app or the add-on that you want to purchase for the current user.
PurchaseProperties: The optional purchase properties with display name or additional JSON.
WindowsStoreContextMBS.RequestRateAndReviewAppAsync(CompletionHandler as RequestRateAndReviewAppCompletedMBS = nil)
Function:
Requests the user to rate and review the app.
Example:
Notes:
This method will display the UI for the user to select a Store rating and add an optional Store review for the product.
The delegate will later be called with the result.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Example:
dim context as New WindowsStoreContextMBS(Window1)
context.RequestRateAndReviewAppAsync AddressOf RequestRateAndReviewAppCompleted
This method will display the UI for the user to select a Store rating and add an optional Store review for the product.
The delegate will later be called with the result.
Some examples using this method:
The items on this page are in the following plugins: MBS WinFrameworks Plugin.
