Language

MediaStoreMatchBehavior Enum

Definition

Controls whether rows matching a media-store condition are included, excluded, or selected alone.

public enum MediaStoreMatchBehavior
type MediaStoreMatchBehavior = 
Inheritance
MediaStoreMatchBehavior

Fields

Name Value Description
Default 0

Value indicating that the default matching behavior should be used, as defined by the key documentation.

Android reference for android.provider.MediaStore.MATCH_DEFAULT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Include 1

Value indicating that operations should include items matching the criteria defined by this key. Note that items not matching the criteria may also be included depending on the default behavior documented by the key. If you want to operate exclusively on matching items, use MATCH_ONLY.

Android reference for android.provider.MediaStore.MATCH_INCLUDE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Exclude 2

Value indicating that operations should exclude items matching the criteria defined by this key.

Android reference for android.provider.MediaStore.MATCH_EXCLUDE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Only 3

Value indicating that operations should only operate on items explicitly matching the criteria defined by this key.

Android reference for android.provider.MediaStore.MATCH_ONLY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

The default choice follows the rule for the query key. Including matching rows does not necessarily remove other rows; selecting only matching rows does.

Applies to