ExternalInfoService class abstract Places
Service helpers to request Wikipedia (External) information for landmarks.
ExternalInfoService provides methods to check the availability of Wikipedia data for a Landmark, to request the data and to cancel outstanding requests. Request methods are asynchronous and use callbacks to deliver results and errors.
See also:
- ExternalInfo — the data object returned when a request succeeds.
Constructors
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
-
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
Static Methods
-
cancelWikiInfo(
EventHandler operationHandler) → void - Cancel a previously started Wikipedia request.
-
hasWikiInfo(
Landmark landmark) → bool -
Checks whether Wikipedia information is available for
landmark. -
requestWikiInfo(
Landmark landmark, {required void onComplete(GemError err, ExternalInfo? extraInfo)}) → EventHandler? -
Requests Wikipedia information for
landmark.