deleteall method

Future<ImagesDeleteAllResponse> deleteall(
  1. String packageName,
  2. String editId,
  3. String language,
  4. String imageType, {
  5. String? $fields,
})

Deletes all images for the specified language and image type.

Returns an empty response if no images are found.

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). Providing a language that is not supported by the App is a no-op.

imageType - Type of the Image. Providing an image type that refers to no images is a no-op. 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.

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

Completes with a ImagesDeleteAllResponse.

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<ImagesDeleteAllResponse> deleteall(
  core.String packageName,
  core.String editId,
  core.String language,
  core.String imageType, {
  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');

  final response_ = await _requester.request(
    url_,
    'DELETE',
    queryParams: queryParams_,
  );
  return ImagesDeleteAllResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}