<!--
{
  "availability" : [
    "iOS: 11.3.0 -",
    "iPadOS: 11.3.0 -",
    "macCatalyst: 11.3.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSBinaryItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSBinaryItem"
  },
  "title" : "CLSBinaryItem"
}
-->

# CLSBinaryItem

Activity information that is true or false, pass or fail, yes or no.

```
class CLSBinaryItem
```

## Overview

Use an activity item of this type to indicate a binary condition, such as whether a student passed a test or failed it. Set the [`valueType`](/documentation/ClassKit/CLSBinaryItem/valueType) property to specify how the binary condition should be reported to a teacher.

## Topics

### Creating Binary Activity Items

[`-  initWithIdentifier:title:type:`](/documentation/ClassKit/CLSBinaryItem/init(identifier:title:type:))

Initializes a new binary activity item of the given type.

[`CLSBinaryValueType`](/documentation/ClassKit/CLSBinaryValueType)

The kinds of outcomes that a binary activity item can represent.

### Managing the Value

[`value`](/documentation/ClassKit/CLSBinaryItem/value)

The value that the binary activity item takes.

[`valueType`](/documentation/ClassKit/CLSBinaryItem/valueType)

The kind of outcome that the binary activity item represents.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`CLSActivityItem`](/documentation/ClassKit/CLSActivityItem)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)