Skip to content

android.hardware.camera is missing XML manifest documentation #2885

@IeuanWalker

Description

@IeuanWalker

Type of issue

Missing information

Description

You have the following documented for assembly attributes -

// Add these properties if you would like to filter out devices that do not have cameras, or set to false to make them optional
[assembly: UsesFeature("android.hardware.camera", Required = true)]
[assembly: UsesFeature("android.hardware.camera.autofocus", Required = true)]

The equivalent for the manifest XML is missing -

<!-- Add these properties if you would like to filter out devices that do not have cameras, or set to false to make them optional -->
<uses-feature android:name="android.hardware.camera" android:required="true"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="true"/>

It would probably be better as well if the assembly and the manifest were ordered/ commented the same as well (assembly is clearer)

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/device-media/picker?view=net-maui-9.0&tabs=android

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/platform-integration/device-media/picker.md

Document Version Independent Id

1e5277f4-f2e4-dffe-0c08-06531d4145a1

Platform Id

27207929-eaa2-6859-b3f3-4f8a3728d85f

Article author

@davidbritch

Metadata

  • ID: 1e5277f4-f2e4-dffe-0c08-06531d4145a1
  • PlatformId: 27207929-eaa2-6859-b3f3-4f8a3728d85f
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions