Stay organized with collections
Save and categorize content based on your preferences.
ProviderStatus
class ProviderStatus
API for inquiring about the general status of the provider.
Summary
Constants |
static String |
The MIME-type of CONTENT_URI providing a directory of settings.
|
static String |
Timestamp (milliseconds since epoch) of when the provider's database was created.
|
static String |
An integer representing the current status of the provider.
|
static Int |
The provider won't respond to queries.
|
static Int |
The status that indicates that there are no accounts and no contacts on the device.
|
static Int |
Default status of the provider.
|
Properties |
static Uri! |
The content:// style URI for this table.
|
Constants
CONTENT_TYPE
static val CONTENT_TYPE: String
The MIME-type of CONTENT_URI
providing a directory of settings.
Value: "vnd.android.cursor.dir/provider_status"
DATABASE_CREATION_TIMESTAMP
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
static val STATUS: String
An integer representing the current status of the provider.
Value: "status"
STATUS_BUSY
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
static val STATUS_EMPTY: Int
The status that indicates that there are no accounts and no contacts on the device.
Value: 2
STATUS_NORMAL
static val STATUS_NORMAL: Int
Default status of the provider.
Value: 0
Properties
CONTENT_URI
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ContactsContract.ProviderStatus\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nProviderStatus\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/ContactsContract.ProviderStatus \"View this page in Java\") \n\n```\nclass ProviderStatus\n```\n\n|---|-------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.ContactsContract.ProviderStatus](#) |\n\nAPI for inquiring about the general status of the provider.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](#CONTENT_TYPE:kotlin.String) The MIME-type of [CONTENT_URI](#CONTENT_URI:android.net.Uri) providing a directory of settings. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATABASE_CREATION_TIMESTAMP](#DATABASE_CREATION_TIMESTAMP:kotlin.String) Timestamp (milliseconds since epoch) of when the provider's database was created. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS](#STATUS:kotlin.String) An integer representing the current status of the provider. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_BUSY](#STATUS_BUSY:kotlin.Int) The provider won't respond to queries. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_EMPTY](#STATUS_EMPTY:kotlin.Int) The status that indicates that there are no accounts and no contacts on the device. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATUS_NORMAL](#STATUS_NORMAL:kotlin.Int) Default status of the provider. |\n\n| Properties ||\n|---------------------------------|--------------------------------------------------------------------------------------|\n| static [Uri](../net/Uri.html#)! | [CONTENT_URI](#CONTENT_URI:android.net.Uri) The content:// style URI for this table. |\n\nConstants\n---------\n\n### CONTENT_TYPE\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_TYPE: String\n```\n\nThe MIME-type of [CONTENT_URI](#CONTENT_URI:android.net.Uri) providing a directory of settings. \n\n Value: \"vnd.android.cursor.dir/provider_status\"\n\n### DATABASE_CREATION_TIMESTAMP\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DATABASE_CREATION_TIMESTAMP: String\n```\n\nTimestamp (milliseconds since epoch) of when the provider's database was created.\n\nType: long \n\n Value: \"database_creation_timestamp\"\n\n### STATUS\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS: String\n```\n\nAn integer representing the current status of the provider. \n\n Value: \"status\"\n\n### STATUS_BUSY\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS_BUSY: Int\n```\n\nThe provider won't respond to queries. It is in the middle of a long running task, such as a database upgrade or locale change. \n\n Value: 1\n\n### STATUS_EMPTY\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS_EMPTY: Int\n```\n\nThe status that indicates that there are no accounts and no contacts on the device. \n\n Value: 2\n\n### STATUS_NORMAL\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATUS_NORMAL: Int\n```\n\nDefault status of the provider. \n\n Value: 0\n\nProperties\n----------\n\n### CONTENT_URI\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_URI: Uri!\n```\n\nThe content:// style URI for this table. Requests to this URI can be performed on the UI thread because they are always unblocking."]]