BlockedNumberContract.BlockedNumbers


public static class BlockedNumberContract.BlockedNumbers
extends Object

java.lang.Object
   ↳ android.provider.BlockedNumberContract.BlockedNumbers


Constants to interact with the blocked numbers list.

Summary

Constants

String COLUMN_E164_NUMBER

Phone number to block.

String COLUMN_ID

Auto-generated ID field which monotonically increases.

String COLUMN_ORIGINAL_NUMBER

Phone number to block.

String CONTENT_ITEM_TYPE

The MIME type of a blocked phone number under CONTENT_URI.

String CONTENT_TYPE

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

Fields

public static final Uri CONTENT_URI

Content URI for the blocked numbers.

Inherited methods

Constants

COLUMN_E164_NUMBER

Added in API level 24
public static final String COLUMN_E164_NUMBER

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

Constant Value: "e164_number"

COLUMN_ID

Added in API level 24
public static final String COLUMN_ID

Auto-generated ID field which monotonically increases.

TYPE: long

Constant Value: "_id"

COLUMN_ORIGINAL_NUMBER

Added in API level 24
public static final String COLUMN_ORIGINAL_NUMBER

Phone number to block.

Must be specified in insert.

TYPE: String

Constant Value: "original_number"

CONTENT_ITEM_TYPE

Added in API level 24
public static final String CONTENT_ITEM_TYPE

The MIME type of a blocked phone number under CONTENT_URI.

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

CONTENT_TYPE

Added in API level 24
public static final String CONTENT_TYPE

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

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

Fields

CONTENT_URI

Added in API level 24
public static final Uri CONTENT_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)