delete method

Future<void> delete(
  1. String packageName,
  2. String editId,
  3. String language,
  4. String imageType,
  5. String imageId, {
  6. String? $fields,
})

Deletes the image (specified by id) from the edit.

Request parameters:

packageName - Package name of the app.

editId - Identifier of the edit.

language - Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).

imageType - Type of the Image. Possible string values are:

  • "appImageTypeUnspecified" : Unspecified type. Do not use.
  • "phoneScreenshots" : Phone screenshot.
  • "sevenInchScreenshots" : Seven inch screenshot.
  • "tenInchScreenshots" : Ten inch screenshot.
  • "tvScreenshots" : TV screenshot.
  • "wearScreenshots" : Wear screenshot.
  • "icon" : Icon.
  • "featureGraphic" : Feature graphic.
  • "tvBanner" : TV banner.

imageId - Unique identifier an image within the set of images attached to this edit.

$fields - Selector specifying which fields to include in a partial response.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<void> delete(
  core.String packageName,
  core.String editId,
  core.String language,
  core.String imageType,
  core.String imageId, {
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'androidpublisher/v3/applications/' +
      commons.escapeVariable('$packageName') +
      '/edits/' +
      commons.escapeVariable('$editId') +
      '/listings/' +
      commons.escapeVariable('$language') +
      '/' +
      commons.escapeVariable('$imageType') +
      '/' +
      commons.escapeVariable('$imageId');

  await _requester.request(
    url_,
    'DELETE',
    queryParams: queryParams_,
    downloadOptions: null,
  );
}