GoogleApiAvailability class

Flutter plugin to verify if Google Play Services are installed on the device.

Constructors

GoogleApiAvailability.private()
Creates an instance of the GoogleApiAvailability class.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkGooglePlayServicesAvailability([bool showDialogIfNecessary = false]) Future<GooglePlayServicesAvailability>
Returns the connection status of Google Play Services.
getErrorString() Future<String>
Returns a human-readable string of the error code.
isUserResolvable() Future<bool>
Determines whether an error can be resolved via user action.
makeGooglePlayServicesAvailable() Future<void>
Attempts to make Google Play Services available on this device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showErrorDialogFragment() Future<bool>
Display an error dialog according to the ErrorCode if the connection status is not SUCCESS.
showErrorNotification() Future<void>
Displays a notification for an error code, if it is resolvable by the user.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

instance → const GoogleApiAvailability
Acquires an instance of the GoogleApiAvailability class.