Alex-Dobrynin / Xamarin.Controls.ImageCropper

Cross platform Xamarin library to crop and rotate images
MIT License
10 stars 2 forks source link

Plugin.Maui.ImageCropper.Platform Type or name Platform does not exist in namespace Plugin.Maui.ImageCropper #11

Closed sessiontalk closed 4 months ago

sessiontalk commented 4 months ago

Plugin.Maui.ImageCropper.Platform Type or name Platform does not exist in namespace Plugin.Maui.ImageCropper

net8.0 android sdk 34

protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) {

  base.OnActivityResult(requestCode, resultCode, data);
  Plugin.Maui.ImageCropper.Platform.Droid.OnActivityResult(requestCode, resultCode, data);

}

installed following pakages

Alex-Dobrynin commented 4 months ago

Hello. Have you tried Sample project from this repo? is there the same behavior?

sessiontalk commented 4 months ago

Ok the sample works but the docs need updating in activity onCreate should be Xamarin.Essentials.Platform.Init(this, savedInstanceState); Controls.ImageCropper.Platform.Droid.Init(this);

This is what the sample uses

Alex-Dobrynin commented 4 months ago

If you are using maui, please read this image