SetOnViewTapListener() 공개 메소드

public SetOnViewTapListener ( IOnViewTapListener listener ) : void
listener IOnViewTapListener
리턴 void
예제 #1
0
        // ---------------------------------------------------------

        #region Private Methods

        private async Task InitializeRenderer(PhotoView view, string filePath)
        {
            // Create the Photo View
            _photoView         = new PhotoViewDroid(this.Context);
            _photoViewAttacher = _photoView.GetPhotoViewDroidAttacher();

            _photoViewAttacher.SetOnViewTapListener(this);

            // Prepare the image
            var options = await GetBitmapOptionsOfImageAsync(filePath);

            var bitmapToDisplay = await LoadScaledDownBitmapForDisplayAsync(Resources, filePath, options, MAX_IMAGE_SIZE_WIDTH, MAX_IMAGE_SIZE_HEIGHT);

            // Set the scroll view as the native control
            this.SetNativeControl(_photoView);

            // Set the image
            this.Control.SetImageBitmap(bitmapToDisplay);
        }
예제 #2
0
 public void SetOnViewTapListener(PhotoViewDroidAttacher.IOnViewTapListener listener)
 {
     mAttacher.SetOnViewTapListener(listener);
 }