---
title: WKWebExtension.DataRecord
framework: webkit
role: symbol
role_heading: Class
path: webkit/wkwebextension/datarecord
---

# WKWebExtension.DataRecord

An object that represents a record of stored data for a specific web extension context.

## Declaration

```swift
@MainActor class DataRecord
```

## Overview

Overview Contains properties and methods to query the data types and sizes.

## Topics

### Structures

- [WKWebExtension.DataRecord.Error](webkit/wkwebextension/datarecord/error.md)

### Instance Properties

- [containedDataTypes](webkit/wkwebextension/datarecord/containeddatatypes.md)
- [displayName](webkit/wkwebextension/datarecord/displayname.md)
- [errors](webkit/wkwebextension/datarecord/errors.md)
- [totalSizeInBytes](webkit/wkwebextension/datarecord/totalsizeinbytes.md)
- [uniqueIdentifier](webkit/wkwebextension/datarecord/uniqueidentifier.md)

### Instance Methods

- [sizeInBytes(ofTypes:)](webkit/wkwebextension/datarecord/sizeinbytes(oftypes:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Classes

- [WKWebExtension.Action](webkit/wkwebextension/action.md)
- [WKWebExtension.Command](webkit/wkwebextension/command.md)
- [WKWebExtension.MatchPattern](webkit/wkwebextension/matchpattern.md)
- [WKWebExtension.MessagePort](webkit/wkwebextension/messageport.md)
- [WKWebExtension.TabConfiguration](webkit/wkwebextension/tabconfiguration.md)
- [WKWebExtension.WindowConfiguration](webkit/wkwebextension/windowconfiguration.md)
- [WKWebExtensionController.Configuration](webkit/wkwebextensioncontroller/configuration-swift.class.md)
