ExternalInfo class Places
Wikipedia information for a Landmark.
An ExternalInfo instance exposes article metadata (title, summary, language and URL) and image-related helpers (count, titles, URLs and asynchronous loaders). Instances are created by the platform and returned via ExternalInfoService.requestWikiInfo; do not construct this class directly.
See also:
- ExternalInfoService.requestWikiInfo - Request Wikipedia information for a landmark.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRegisteredAutoReleaseObject ↔ bool
-
getter/setter pairinherited
- imagesCount → int
-
Number of images found on the Wikipedia page.
no setter
- mapId → int
-
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wikiPageDescription → String
-
Short textual summary of the Wikipedia page.
no setter
- wikiPageLanguage → String
-
Language code of the retrieved Wikipedia page (for example
en).no setter - wikiPageTitle → String
-
Title of the Wikipedia page in the currently selected SDK language.
no setter
- wikiPageUrl → String
-
Canonical URL of the Wikipedia page.
no setter
Methods
-
cancelWikiImageInfoRequest(
ProgressListener listener) → void - Cancel a pending image info request previously started by requestWikiImageInfo.
-
dispose(
) → void -
Disposes the native object.
inherited
-
getWikiImageDescription(
int index) → String -
Returns the description for the Wikipedia image at
index. -
getWikiImageTitle(
int index) → String -
Returns the title for the Wikipedia image at
index. -
getWikiImageUrl(
int index) → String -
Returns the direct URL for the Wikipedia image at
index. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
requestWikiImage(
{required int imageIndex, required ExternalImageQuality quality, required void onComplete(GemError error, Img? image)}) → ProgressListener? - Asynchronously requests the binary image data for a Wikipedia image.
-
requestWikiImageInfo(
{required int imageIndex, required void onComplete(GemError error, String? imageInfo)}) → ProgressListener? - Asynchronously requests information about a Wikipedia image.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited