# ContactsContract.ProviderStatus

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

# ProviderStatus

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/ContactsContract.ProviderStatus "View this page in Java")  

```
class ProviderStatus
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                       ||
| ↳ | [android.provider.ContactsContract.ProviderStatus](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#) |

API for inquiring about the general status of the provider.

## Summary

|                                                                                                                                                                                                            Constants                                                                                                                                                                                                            ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#CONTENT_TYPE:kotlin.String) The MIME-type of[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#CONTENT_URI:android.net.Uri)providing a directory of settings. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATABASE_CREATION_TIMESTAMP](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#DATABASE_CREATION_TIMESTAMP:kotlin.String) Timestamp (milliseconds since epoch) of when the provider's database was created.                                                                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#STATUS:kotlin.String) An integer representing the current status of the provider.                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_BUSY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#STATUS_BUSY:kotlin.Int) The provider won't respond to queries.                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_EMPTY](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#STATUS_EMPTY:kotlin.Int) The status that indicates that there are no accounts and no contacts on the device.                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_NORMAL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#STATUS_NORMAL:kotlin.Int) Default status of the provider.                                                                                                                                                               |

|                                                                                                                               Properties                                                                                                                                ||
|------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#CONTENT_URI:android.net.Uri) The content:// style URI for this table. |

## Constants

### CONTENT_TYPE

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

```
static val CONTENT_TYPE: String
```

The MIME-type of[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.ProviderStatus#CONTENT_URI:android.net.Uri)providing a directory of settings.  

    Value: "vnd.android.cursor.dir/provider_status"

### DATABASE_CREATION_TIMESTAMP

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

```
static val DATABASE_CREATION_TIMESTAMP: String
```

Timestamp (milliseconds since epoch) of when the provider's database was created.

Type: long  

    Value: "database_creation_timestamp"

### STATUS

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

```
static val STATUS: String
```

An integer representing the current status of the provider.  

    Value: "status"

### STATUS_BUSY

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

```
static val STATUS_BUSY: Int
```

The provider won't respond to queries. It is in the middle of a long running task, such as a database upgrade or locale change.  

    Value: 1

### STATUS_EMPTY

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

```
static val STATUS_EMPTY: Int
```

The status that indicates that there are no accounts and no contacts on the device.  

    Value: 2

### STATUS_NORMAL

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

```
static val STATUS_NORMAL: Int
```

Default status of the provider.  

    Value: 0

## Properties

### CONTENT_URI

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

```
static val CONTENT_URI: Uri!
```

The content:// style URI for this table. Requests to this URI can be performed on the UI thread because they are always unblocking.