Stay organized with collections
Save and categorize content based on your preferences.
public sealed interface ActivityResultContracts.PickVisualMedia.VisualMediaType
Represents filter input type accepted by the photo picker.
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-05-15 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-05-15 UTC."],[],[],null,["# ActivityResultContracts.PickVisualMedia.VisualMediaType\n=======================================================\n\nArtifact: [androidx.activity:activity](/jetpack/androidx/releases/activity) \n[View Source](https://cs.android.com/search?q=file:androidx/activity/result/contract/ActivityResultContracts.kt+class:androidx.activity.result.contract.ActivityResultContracts.PickVisualMedia.VisualMediaType) \nAdded in [1.6.0](/jetpack/androidx/releases/activity#1.6.0)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VisualMediaType \"View this page in Kotlin\") \\|Java\n\n\n```\npublic sealed interface ActivityResultContracts.PickVisualMedia.VisualMediaType\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ActivityResultContracts.PickVisualMedia.ImageAndVideo](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.ImageAndVideo), [ActivityResultContracts.PickVisualMedia.ImageOnly](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.ImageOnly), [ActivityResultContracts.PickVisualMedia.SingleMimeType](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.SingleMimeType), [ActivityResultContracts.PickVisualMedia.VideoOnly](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VideoOnly) \n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ActivityResultContracts.PickVisualMedia.ImageAndVideo](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.ImageAndVideo) | [VisualMediaType](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VisualMediaType) object used to filter images and video when using the photo picker. |\n| [ActivityResultContracts.PickVisualMedia.ImageOnly](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.ImageOnly) | [VisualMediaType](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VisualMediaType) object used to filter images only when using the photo picker. |\n| [ActivityResultContracts.PickVisualMedia.SingleMimeType](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.SingleMimeType) | [VisualMediaType](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VisualMediaType) class used to filter a single mime type only when using the photo picker. |\n| [ActivityResultContracts.PickVisualMedia.VideoOnly](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VideoOnly) | [VisualMediaType](/reference/androidx/activity/result/contract/ActivityResultContracts.PickVisualMedia.VisualMediaType) object used to filter video only when using the photo picker. |\n\n*** ** * ** ***\n\nRepresents filter input type accepted by the photo picker."]]