---
title: "setBackgroundImageData(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacegroup/setbackgroundimagedata(_:)"
---

# setBackgroundImageData(_:)

Changes the background image of the group container to the image in the specified data object.

## Declaration

```swift
func setBackgroundImageData(_ imageData: Data?)
```

## Parameters

- `imageData`: A data object containing the image data in its native format. Specifying nil removes the existing image, causing the watch interface to display nothing in the space previously occupied by the image.

## Discussion

Discussion Use this method when you already have image data in the raw PNG or JPG format. This method sends the data as-is, which lets you send the data in a compressed format. Sending compressed data is often more efficient than sending a UIImage object.

## See Also

### Setting the Group’s Content

- [setBackgroundColor(_:)](watchkit/wkinterfacegroup/setbackgroundcolor(_:).md)
- [setBackgroundImage(_:)](watchkit/wkinterfacegroup/setbackgroundimage(_:).md)
- [setBackgroundImageNamed(_:)](watchkit/wkinterfacegroup/setbackgroundimagenamed(_:).md)
