Skip to content

Commit

Permalink
Updated first example
Browse files Browse the repository at this point in the history
billing could not be used in finally-block if defined within the try-block.
  • Loading branch information
K232 committed Aug 17, 2017
1 parent 5b081f8 commit d5ba8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/GettingStarted.md
Expand Up @@ -12,9 +12,9 @@ It is drop dead simple to gain access to the In-App Billing APIs in any project.
```csharp
public async Task<bool> MakePurchase()
{
var billing = CrossInAppBilling.Current;
try
{
var billing = CrossInAppBilling.Current;
var connected = await billing.ConnectAsync();
if(!connected)
return false;
Expand Down Expand Up @@ -148,4 +148,4 @@ protected override void OnActivityResult(int requestCode, Result resultCode, Int
```


<= Back to [Table of Contents](README.md)
<= Back to [Table of Contents](README.md)

0 comments on commit d5ba8b0

Please sign in to comment.