---
title: CLSQuantityItem
framework: classkit
role: symbol
role_heading: Class
path: classkit/clsquantityitem
---

# CLSQuantityItem

Activity information that signifies a quantity.

## Declaration

```swift
class CLSQuantityItem
```

## Overview

Overview Use an activity item of this type to associate a discrete value with a task. For example, you might use it to indicate how many times the user requested a hint while taking a quiz.

## Topics

### Creating Quantity Activity Items

- [init(identifier:title:)](classkit/clsquantityitem/init(identifier:title:).md)

### Managing the Quantity

- [quantity](classkit/clsquantityitem/quantity.md)

## Relationships

### Inherits From

- [CLSActivityItem](classkit/clsactivityitem.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Activity items

- [Recording additional metrics about a completed task](classkit/recording-additional-metrics-about-a-completed-task.md)
- [CLSScoreItem](classkit/clsscoreitem.md)
- [CLSBinaryItem](classkit/clsbinaryitem.md)
- [CLSActivityItem](classkit/clsactivityitem.md)
