ExternalInfo

ExternalInfo object.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Get the count of the images on the Wikipedia page .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Get the Wikipedia page summary (text) .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Get the Wikipedia page language .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Retrieve all the Wikipedia info (page title/url, page summary, and the count of the pictures on the page) once the above request is completed and pProgressListener NotifiedComplete Get the Wikipedia page title in the requested language .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Get the Wikipedia page URL .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Yelp location address .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Count of the images from Yelp. Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Retrieve all the Yelp info once the above request is completed and pProgressListener NotifiedComplete

Link copied to clipboard

Location phone number. Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Yelp rating for the location .Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard

Yelp page URL .Must be called only after ProgressListener.notifyComplete notification

Functions

Link copied to clipboard

Cancel a specific Wikipedia image request without canceling the whole object request.

Link copied to clipboard

Cancel a specific Wikipedia image info request.

Link copied to clipboard
external fun cancelWikiInfo()

Cancel a Wikipedia request for any reason. This method is automatically called if a new request is initiated.

Link copied to clipboard

To cancel a specific image request without canceling the whole object request

Link copied to clipboard
external fun cancelYelpInfo()

To cancel a request for any reason, simply use the method below. The method is automatically called if a new request is initiated

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getWikiImageDescription(nIndex: Int): String?

Get Wikipedia image description directly, without notifier.

Link copied to clipboard

Get Wikipedia image path directly, without notifier.

Link copied to clipboard
external fun getWikiImageTitle(nIndex: Int): String?

Get Wikipedia image title directly, without notifier.

Link copied to clipboard
external fun getWikiImageURL(nIndex: Int): String?

Get Wikipedia image description directly, without notifier.

Link copied to clipboard
external fun getYelpImagePath(nIndex: Int): String?

Get Yelp image path directly, without notifier.

Link copied to clipboard
external fun hasWikiInfo(landmark: Landmark): Boolean

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 pProgressListener will NotifyComplete with GemError.NoError 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 and the English version doesn't exist, pProgressListener will NotifyComplete with GemError.General, and the request will be canceled

Link copied to clipboard
external fun hasYelpInfo(landmark: Landmark): Boolean

Obtain the description and the picture list of a map object by providing the object's native name.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
fun requestWikiImage(listener: ProgressListener, image: Image, nImageIdx: Int, quality: EExternalImageQuality)

Requests one Wikipedia image from the page

Link copied to clipboard
external fun requestWikiImageInfo(listener: ProgressListener, nImageIdx: Int, result: GemString)

Get info on one Wikipedia image directly, without notifier.

Link copied to clipboard
external fun requestWikiInfo(landmark: Landmark, listener: ProgressListener)

This uses the Wikipedia string from the map objects

Link copied to clipboard
external fun requestYelpImage(listener: ProgressListener, image: Image, nImageIdx: Int)

Requests one Yelp image from the page - returns true if request successfully made, false if something went wrong while requesting !!USE ONLY AFTER pProgressListener from above NOTIFIED COMPLETE!! nImageIdx <yelpImagesCount from above Must be called only after ProgressListener.notifyComplete notification

Link copied to clipboard
external fun requestYelpInfo(landmark: Landmark, listener: ProgressListener)

This uses the native name string from the map object