TOCrop.TOCropViewController.ShowCropViewAsync C# (CSharp) Method

ShowCropViewAsync() public method

Shows the crop view and wait for the user's input.
Thrown when the user hits cancel
public ShowCropViewAsync ( UIViewController rootViewController, bool isAnimated, System.Action completionHandler ) : Task
rootViewController UIViewController Root view controller.
isAnimated bool If set to true is animated.
completionHandler System.Action Completion handler.
return Task
        public Task<byte[]> ShowCropViewAsync(UIViewController rootViewController, bool isAnimated, Action completionHandler)
        {
            var cropViewDelegate = new CropViewControllerDelegate();
            this.Delegate = cropViewDelegate;
            rootViewController.PresentViewController(this, isAnimated, completionHandler);

            return cropViewDelegate.GetResult();
        }
    }
TOCropViewController