Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
Documentation
DeleteWindow

DeleteWindow

Type
Function
Sender
SDL
Purpose
Delete previously created window of the SDL application

In order to work with multiple widget windows, the app needs to be able to delete windows.

Must
  1. Delete requested window.
  2. Not delete the default main window on the main display.

Request

Parameters

Name Type Mandatory Description
windowID Integer true The value of '0' will always be the default main window on the main display and cannot be deleted.
appID Integer true

Response

Parameters

This RPC has no additional parameter requirements

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 70,
  "jsonrpc" : "2.0",
  "method" : "UI.DeleteWindow",
  "params" :
  {
    "windowID" : 2,
    "appID" : 65368
  }
}

Example Response

{
  "id" : 70,
  "jsonrpc" : "2.0",
  "result" :
  {
    "code" : 0,
    "method" : "UI.DeleteWindow"
  }
}

Example Error

{
  "id" : 70,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 8,
    "message" : "The data may not be changed because it is currently in use",
    "data" :
    {
      "method" : "UI.DeleteWindow"
    }
  }
}
View on GitHub.com
Previous Section Next Section