Contents

getAlwaysOnTemplate(for:withHandler:)

Returns the template to use during Always On.

Declaration

optional func getAlwaysOnTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void)
optional func alwaysOnTemplate(for complication: CLKComplication) async -> CLKComplicationTemplate?

Discussion

If your implementation returns nil, ClockKit uses the current timeline entry, if one exists.

Users can control whether ClockKit shows sensitive data during Always On by choosing Settings > Display & Brightness > Always On > Hide Sensitive Complications. If the user enables Hide Sensitive Complications and the complication’s privacy behavior is CLKComplicationPrivacyBehavior.hideOnLockScreen, ClockKit also hides the complication during Always On. For more information about privacy behaviors, see getPrivacyBehavior(for:withHandler:).

See Also

Deprecated methods