protected override async void OnNavigatedTo(NavigationEventArgs e) { rootPage = MainPage.Current; // Request an instance of the default Wallet store. wallet = await WalletManager.RequestStoreAsync(); }
protected override async void OnNavigatedTo(NavigationEventArgs e) { rootPage = MainPage.Current; // request an instance of the default wallet store wallet = await WalletManager.RequestStoreAsync(); }
private async Task ListPointsAsync() { // Request an instance of the default Wallet store. wallet = await WalletManager.RequestStoreAsync(); // Find an existing wallet item. walletItem = await wallet.GetWalletItemAsync("CoffeeLoyalty123"); if (walletItem == null) { rootPage.NotifyUser("Item does not exist. Add item using Scenario2", NotifyType.ErrorMessage); return; } if (walletItem.DisplayProperties.ContainsKey("PointsId")) { CoffePointsValue.Text = walletItem.DisplayProperties["PointsId"].Value; } else { rootPage.NotifyUser("Item does not have a PointsId property.", NotifyType.ErrorMessage); return; } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { rootPage = MainPage.Current; // Request an instance of the default Wallet store. wallet = await WalletManager.RequestStoreAsync(); // Get the wallet item to be used in this scenario. walletItem = await wallet.GetWalletItemAsync("CoffeeLoyalty123"); }
protected override async void OnNavigatedTo(NavigationEventArgs e) { rootPage = MainPage.Current; // Request an instance of the default Wallet store. wallet = await WalletManager.RequestStoreAsync(); // Get the wallet item to be used in this scenario. walletItem = await wallet.GetWalletItemAsync("CoffeeLoyalty123"); }
private async Task ListPointsAsync() { // Request an instance of the default Wallet store. wallet = await WalletManager.RequestStoreAsync(); // Find an existing wallet item. walletItem = await wallet.GetWalletItemAsync("CoffeeLoyalty123"); if (walletItem == null) { rootPage.NotifyUser("Item does not exist. Add item using Scenario2", NotifyType.ErrorMessage); return; } if (walletItem.DisplayProperties.ContainsKey("PointsId")) { CoffePointsValue.Text = walletItem.DisplayProperties["PointsId"].Value; } else { rootPage.NotifyUser("Item does not have a PointsId property.", NotifyType.ErrorMessage); return; } }
private async void initWallet() { this.wallet = await WalletManager.RequestStoreAsync(); }