Skip to content

Commit 156bece

Browse files
committed
Update documentation
1 parent b009b72 commit 156bece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ To check the availability of Google Play services on the current device, you can
2828
``` dart
2929
import `package:google_api_availability/google_api_availability.dart`;
3030

31-
GooglePlayServicesAvailability availability = await GoogleApiAvailability().checkGooglePlayServicesAvailability();
31+
GooglePlayServicesAvailability availability = await GoogleApiAvailability.instance.checkGooglePlayServicesAvailability();
3232
```
3333

3434
If you want to show a dialog by the Android system with more information and show a possible fix to the user you can do:
3535

3636
``` dart
3737
import `package:google_api_availability/google_api_availability.dart`;
3838
39-
GooglePlayServicesAvailability availability = await GoogleApiAvailability().checkGooglePlayServicesAvailability(true);
39+
GooglePlayServicesAvailability availability = await GoogleApiAvailability.instance.checkGooglePlayServicesAvailability(true);
4040
```
4141

4242
**Note that on iOS this will always return `notAvailableOnPlatform`!**

0 commit comments

Comments
 (0)