<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ClockKit",
  "identifier" : "/documentation/ClockKit/CLKComplicationDataSource/getPrivacyBehavior(for:withHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ClockKit"
    ],
    "preciseIdentifier" : "c:objc(pl)CLKComplicationDataSource(im)getPrivacyBehaviorForComplication:withHandler:"
  },
  "title" : "getPrivacyBehavior(for:withHandler:)"
}
-->

# getPrivacyBehavior(for:withHandler:)

Returns the privacy behavior for the specified complication.

```
optional func getPrivacyBehavior(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationPrivacyBehavior) -> Void)
```

## Parameters

`complication`

The complication tied to the request.

`handler`

The handler to execute with the privacy behavior. This block has no return value and takes the following parameter:

- behavior: The privacy behavior to apply to the specified complication. You can specify different privacy behaviors for different complication families.

## Discussion

ClockKit calls this method to determine how to display your complication data when the user’s Apple Watch is locked. If your complication contains any personal information for the user, pass the [`CLKComplicationPrivacyBehavior.hideOnLockScreen`](/documentation/ClockKit/CLKComplicationPrivacyBehavior/hideOnLockScreen) value to the handler. For data that’s already available publicly, you may pass the [`CLKComplicationPrivacyBehavior.showOnLockScreen`](/documentation/ClockKit/CLKComplicationPrivacyBehavior/showOnLockScreen) value to the handler to allow that data to be displayed.

If you don’t implement this method, ClockKit uses the value [`CLKComplicationPrivacyBehavior.showOnLockScreen`](/documentation/ClockKit/CLKComplicationPrivacyBehavior/showOnLockScreen) as the default.

## Topics

### Privacy Behaviors

[`CLKComplicationPrivacyBehavior`](/documentation/ClockKit/CLKComplicationPrivacyBehavior)

Constants indicating the complication behavior when the Apple Watch is locked.



---

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)