FakeLocationRequest class final
A request for location access, made by a tap on a OneTapLocationButton that uses a FakeOneTapLocation.
Answer the request as the user and the system would:
- complete with a OneTapLocationGranted or a OneTapLocationFailed result when the user allows access, after grantAccess to check the app while the position is determined. On iOS, a failure with OneTapLocationErrorCode.locationServicesDisabled answers a tap without access as well.
- complete with a OneTapLocationDenied result when the user denies access, including a permission dialog of the fallback button that the user closes on Android 11 and later while the app has no location access, or after grantAccess when access is revoked while the position is determined.
- dismiss when the tap ends without an answer, as described for OneTapLocationDiagnostic.tapWithoutAuthorization.
Properties
Methods
-
complete(
OneTapLocationResult result) → void -
Reports
resultand ends the request. -
dismiss(
) → void - Ends the request without a result, and the controller of the button reports OneTapLocationDiagnostic.tapWithoutAuthorization.
-
grantAccess(
) → void - Grants access, so that the button starts to determine the position.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited