getWikiImageUrl method

String getWikiImageUrl(
  1. int index
)

Returns the direct URL for the Wikipedia image at index.

Returns the original image URL, which may be large in size. For thumbnails, consider using requestWikiImage with the desired ExternalImageQuality.

Parameters

  • index: Zero-based index of the image.

Returns

  • String: The image URL or an empty string when invalid.

Also see:

Implementation

String getWikiImageUrl(final int index) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'ExternalInfo',
    'getWikiImageURL',
    args: index,
  );

  return resultString['result'];
}