Added in API level 24

BlockedNumbers


open class BlockedNumbers
kotlin.Any
   ↳ android.provider.BlockedNumberContract.BlockedNumbers

Constants to interact with the blocked numbers list.

Summary

Constants
static String

Phone number to block.

static String

Auto-generated ID field which monotonically increases.

static String

Phone number to block.

static String

The MIME type of a blocked phone number under CONTENT_URI.

static String

The MIME type of CONTENT_URI itself providing a directory of blocked phone numbers.

Properties
static Uri!

Content URI for the blocked numbers.

Constants

COLUMN_E164_NUMBER

Added in API level 24
static val COLUMN_E164_NUMBER: String

Phone number to block. The system generates it from COLUMN_ORIGINAL_NUMBER by removing all formatting characters.

Optional in insert. When not specified, the system tries to generate it assuming the current country. (Which will still be null if the number is not valid.)

TYPE: String

Value: "e164_number"

COLUMN_ID

Added in API level 24
static val COLUMN_ID: String

Auto-generated ID field which monotonically increases.

TYPE: long

Value: "_id"

COLUMN_ORIGINAL_NUMBER

Added in API level 24
static val COLUMN_ORIGINAL_NUMBER: String

Phone number to block.

Must be specified in insert.

TYPE: String

Value: "original_number"

CONTENT_ITEM_TYPE

Added in API level 24
static val CONTENT_ITEM_TYPE: String

The MIME type of a blocked phone number under CONTENT_URI.

Value: "vnd.android.cursor.item/blocked_number"

CONTENT_TYPE

Added in API level 24
static val CONTENT_TYPE: String

The MIME type of CONTENT_URI itself providing a directory of blocked phone numbers.

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

Properties

CONTENT_URI

Added in API level 24
static val CONTENT_URI: Uri!

Content URI for the blocked numbers.

Supported operations

blocked

  • query
  • delete
  • insert

blocked/ID

  • query (selection is not supported)
  • delete (selection is not supported)