Cancel a specific Wikipedia image info request via requestWikiImageInfo.
ProgressListener to cancel
Checks if the landmark has Wikipedia info
Requests all the wikipedia info at once (page title/url, page summary, and list of pictures - only urls of the pictures) - returns true if request successfully made, false if something went wrong. [ProgressListener] will notifyComplete with [GemError.success] once all the results are received from the Wikipedia API. It will request the info in the language of the device, and will fallback to English if a page in the main language doesn't exist. If neither the main language nor the English version exist, [ProgressListener] will notifyComplete with [GemError.general], and the request will be canceled.
Landmark for which the check will be done.
True if the landmark has Wikipedia info, false otherwise
ProtectedregisterRegisters an object for auto release. When the object is not used anymore, it will be released automatically from C++.
The pointer ID to register
Get info on one Wikipedia image.
The image index
Callback to be called when the request is completed
ProgressListener for the operation progress if it could be started, null otherwise
StaticcreateStaticgetRequests information about a landmark on wikipedia.
Landmark for which the request will be done.
OptionalonWikiDataAvailable: (externalInfo: ExternalInfo | null) => voidcallback to be triggered after the wikipedia request is done. It will be called with the external info object on success and null on error.
The external info object. The [onWikiDataAvailable] callback should be awaited before accessing data from the object.
ExternalInfo object
Provides wikipedia information for a landmark.