Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#lfields) \| [Inherited Methods](https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#inhmethods)

# CalendarContract.CalendarCache

*** ** * ** ***

` public static final class CalendarContract.CalendarCache `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/provider/CalendarContract.CalendarCacheColumns `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.CalendarContract.CalendarCache |

<br />

*** ** * ** ***

CalendarCache stores some settings for calendar including the current time zone for the instances. These settings are stored using a key/value scheme. A `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCacheColumns#KEY` must be specified when updating these values.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_INSTANCES` The key for updating the time zone used by the provider when it generates the instances table. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_INSTANCES_PREVIOUS` The key for reading the last time zone set by the user. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_TYPE` They key for updating the use of auto/home time zones in Calendar. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#TIMEZONE_TYPE_AUTO` The value to write to `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_TYPE` if the provider should stay in sync with the device's time zone. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#TIMEZONE_TYPE_HOME` The value to write to `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_TYPE` if the provider should use a fixed time zone set by the user. |

### Inherited constants

From interface `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCacheColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCacheColumns#KEY`

The key for the setting.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCacheColumns#VALUE`

The value of the given setting.

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#URI` The URI to use for retrieving the properties from the Calendar db. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### KEY_TIMEZONE_INSTANCES

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String KEY_TIMEZONE_INSTANCES
```

The key for updating the time zone used by the provider when it generates the instances table. This should only be written if the type is set to `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#TIMEZONE_TYPE_HOME`. A valid time zone id should be written to this field.

<br />

Constant Value: "timezoneInstances"

### KEY_TIMEZONE_INSTANCES_PREVIOUS

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String KEY_TIMEZONE_INSTANCES_PREVIOUS
```

The key for reading the last time zone set by the user. This should only be read by apps and it will be automatically updated whenever `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_INSTANCES` is updated with `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#TIMEZONE_TYPE_HOME` set.

<br />

Constant Value: "timezoneInstancesPrevious"

### KEY_TIMEZONE_TYPE

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String KEY_TIMEZONE_TYPE
```

They key for updating the use of auto/home time zones in Calendar. Valid values are `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#TIMEZONE_TYPE_AUTO` or `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#TIMEZONE_TYPE_HOME`.

<br />

Constant Value: "timezoneType"

### TIMEZONE_TYPE_AUTO

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String TIMEZONE_TYPE_AUTO
```

The value to write to `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_TYPE` if the provider should stay in sync with the device's time zone.

<br />

Constant Value: "auto"

### TIMEZONE_TYPE_HOME

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String TIMEZONE_TYPE_HOME
```

The value to write to `https://developer.android.com/reference/android/provider/CalendarContract.CalendarCache#KEY_TIMEZONE_TYPE` if the provider should use a fixed time zone set by the user.

<br />

Constant Value: "home"

## Fields

### URI

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Uri URI
```

The URI to use for retrieving the properties from the Calendar db.

<br />