Class

CLKTimeIntervalGaugeProvider

A gauge that tracks time intervals.

Declaration

@interface CLKTimeIntervalGaugeProvider : CLKGaugeProvider

Overview

Use this gauge provider to visually show the amount of time that has elapsed within the specified time interval.

Topics

Creating a Time Interval Gauge

+ gaugeProviderWithStyle:gaugeColors:gaugeColorLocations:startDate:endDate:

Creates a time interval gauge that fills as time passes.

+ gaugeProviderWithStyle:gaugeColors:gaugeColorLocations:startDate:startFillFraction:endDate:endFillFraction:

Creates a time interval gauge, letting you specify whether the gauge fills or empties as time passes.

Getting Information about the Gauge

startDate

The starting time and date for the gauge’s time interval.

endDate

The ending time and date for the gauge’s time interval.

startFillFraction

The position of the leading edge of the time bar within the specified time interval.

endFillFraction

The position of the trailing edge of the time bar within the specified time interval.

Relationships

Inherits From

See Also

Data Providers

CLKDateTextProvider

A formatted string that conveys a date without any time information.

CLKImageProvider

An image displayed by a complication.

CLKFullColorImageProvider

A full-color image displayed by a complication.

CLKRelativeDateTextProvider

A formatted string that conveys the difference in time between the current date and a date that you specify.

CLKSimpleTextProvider

A single line of text to display in your complication interface.

CLKTextProvider

The common behavior for displaying text-based data in a complication.

CLKTimeIntervalTextProvider

A formatted time range.

CLKTimeTextProvider

A formatted time value.

CLKSimpleGaugeProvider

A gauge that shows a fractional value.

CLKGaugeProvider

An abstract superclass that provides all the common behaviors for the gauge providers.

CLKSimpleGaugeProviderFillFractionEmpty

A fill value indicating an empty gauge.

CLKGaugeProviderStyle

Visual styles available for gauges.