-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SKCanvasViewRenderer is internal #218
Comments
I am looking at this, there are a few things to do before making the type public. However, are you able to see if you can attach the handler using effects: https://developer.xamarin.com/guides/xamarin-forms/effects/introduction/ You can do that and just add the effect for Android - no need to create a custom renderer. You can access the native control and even cast it to |
I already solved it by edited the SkiaSharp open source, but thanks for the good way. |
In a recent commit (af51bb4), I changed the visibility to public so that custom renderers can be created. This is just the basic access to the types, so you can't control some things (intercepting existing events, controlling the render loop on GL views, change the actual underlying native view). I was going to do a bit more, but there are a few things that need thought. So, I decided to just allow for customizations on to of what's there for the first release. I am closing this issue as my commit actually adresses the feature, and other changes should be on a new issue |
I created a simple sample app that uses custom renderers: https://github.com/mattleibow/SkiaSharpFormsRendererDemo |
WOWWWW!! Thanks for response. This is what I was going to do. |
i want add 'OnGlobalLayoutListener' on SKCanvasView in Xamarin Forms Android.
But SkiaSharp.Forms SKCanvasViewRenderer is defined internal.
The text was updated successfully, but these errors were encountered: