Forum Discussion
Muneesh
Dec 07, 2021Copper Contributor
[Android] How to remove NativeGraphicsView from memory
I have implemented my custom view with NativeGraphicsView.
public partial class MyViewHandler : ViewHandler<IMyView, NativeGraphicsView>
{
protected override NativeGraphicsView CreateNativeView()
{
return new NativeGraphicsView(Context, VirtualView);
}
public void Invalidate()
{
this.NativeView?.Invalidate();
}
}
I have checked my view in navigation page. All are working fine. When I come back from my view page. Still NativeGraphicsView holding in memory. I have ensured this in android studio. Please find the android snap in attachment.
How to dispose/remove the NativeGraphicsView while page disappearing.
No RepliesBe the first to reply