Platforms to show: All Mac Windows Linux Cross-Platform
WindowsStoreContextMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Windows Store | MBS WinFrameworks Plugin | 20.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Provides members you can use to access and manage Microsoft Store-related data for the current app. For example, you can use members of this class to get Microsoft Store listing and license info for the current app, purchase the current app or products that are offered by the app, or download and install package updates for the app.
Requires Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
Uses delegates, so only available for Xojo 2013 or newer.
see also
https://docs.microsoft.com/en-us/uwp/api/windows.services.store.storecontext?view=winrt-19041
- event OfflineLicensesChanged
- 2 properties
- 11 methods
- method Constructor Private
- method Constructor(Parent as DesktopWindow)
- method Constructor(Parent as Window)
- method GetAppLicenseAsync(CompletionHandler as GetAppLicenseCompletedMBS)
- method GetAppLicenseSync as WindowsStoreAppLicenseMBS
- method GetAssociatedStoreProductsAsync(productKinds() as String, CompletionHandler as GetStoreProductsCompletedMBS)
- method GetStoreProductForCurrentAppAsync(CompletionHandler as GetStoreProductForCurrentAppCompletedMBS)
- method GetStoreProductsAsync(productKinds() as String, storeIds() as String, CompletionHandler as GetStoreProductsCompletedMBS)
- method GetUserCollectionAsync(productKinds() as String, CompletionHandler as GetStoreProductsCompletedMBS)
- method RequestPurchaseAsync(CompletionHandler as RequestPurchaseCompletedMBS, StoreID as String, PurchaseProperties as WindowsStorePurchasePropertiesMBS = nil)
- method RequestRateAndReviewAppAsync(CompletionHandler as RequestRateAndReviewAppCompletedMBS = nil)
- 5 delegates
- delegate GetAppLicenseCompletedMBS(ErrorCode as Integer, appLicense as WindowsStoreAppLicenseMBS)
- delegate GetStoreProductForCurrentAppCompletedMBS(ErrorCode as Integer, result as WindowsStoreProductResultMBS)
- delegate GetStoreProductsCompletedMBS(ErrorCode as Integer, result as WindowsStoreProductQueryResultMBS)
- delegate RequestPurchaseCompletedMBS(ErrorCode as Integer, result as WindowsStorePurchaseResultMBS)
- delegate RequestRateAndReviewAppCompletedMBS(ErrorCode as Integer, result as WindowsStoreRateAndReviewResultMBS)
- 4 constants
Asynchronous Status
Constant | Value | Description |
---|---|---|
kAsyncStatusCanceled | 2 |
The operation was canceled. |
kAsyncStatusCompleted | 1 |
The operation has completed. |
kAsyncStatusError | 3 |
The operation has encountered an error. |
kAsyncStatusStarted | 0 |
The operation has started. |
This class has no sub classes.
Some methods using this class:
- WindowsStoreProductMBS.RequestPurchaseAsync(CompletionHandler as WindowsStoreContextMBS.RequestPurchaseCompletedMBS, PurchaseProperties as WindowsStorePurchasePropertiesMBS = nil)
- WindowsStoreSKUMBS.RequestPurchaseAsync(CompletionHandler as WindowsStoreContextMBS.RequestPurchaseCompletedMBS, PurchaseProperties as WindowsStorePurchasePropertiesMBS = nil)
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 23.1pr4
- MBS Xojo Plugins, version 23.1pr3
- MBS Xojo Plugins, version 21.6pr3
- News from the MBS Xojo Plugins Version 20.4
- Selling Xojo apps on Windows Store
- MBS Xojo Plugins, version 20.4pr4
Release notes
- Version 23.1
- Added GetAppLicenseSync method in WindowsStoreContextMBS class.
- Changed delegates in WindowsStoreContextMBS class to pass ErrorCode for GetStoreProductsCompletedMBS, GetStoreProductForCurrentAppCompletedMBS, RequestPurchaseCompletedMBS, RequestRateAndReviewAppCompletedMBS and GetAppLicenseCompletedMBS.
- Version 22.0
- Changed window properties to variant, so you can use DesktopWindow there for WindowsShortCutMBS, WindowsPrintDialogMBS, WindowsPageSetupDialogMBS, WindowsICMSetupMBS, WindowsBlueToothSelectDeviceDialogMBS, TwainMBS, TaskDialogMBS, OpenDialogMBS, DirectShowVideoWindowMBS, WindowsStoreContextMBS, WindowsFileCopyMBS, WindowsFontDialogMBS, WindowsPreviewHandlerMBS, WindowsStoreContextMBS, ParentChromiumFrameMBS and ChromiumBrowserMBS classes.
The items on this page are in the following plugins: MBS WinFrameworks Plugin.
WindowsStoreAppLicenseMBS - WindowsStoreExceptionMBS