Skip to content

ActivityResultContracts.CreateDocument class implementation error #504

Closed
@josago97

Description

@josago97

Version Information

  • Visual Studio version: 17.1.0
  • Xamarin.Android version: 12.2.0.4
  • Using AndroidX or Support Libraries:
  • Xamarin.AndroidX.AppCompat: 1.4.1
  • Xamarin.AndroidX.SwipeRefreshLayout: 1.1.0.7
  • Xamarin.Essentials: 1.7.1
  • Xamarin.Google.Android.Material: 1.5.0

Describe your Issue:

The implementation of the ActivityResultContracts.CreateDocument class does not correspond to the official implementation https://developer.android.com/reference/androidx/activity/result/contract/ActivityResultContracts.CreateDocument. According to the official page, this class has a constructor with 1 parameter of type string and the CreateIntent method does not match the type of the parameters. This difference in implementation causes a compile error when overriding the CreateIntent method.

image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions