public override void PickImage (eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { base.PickImage(_source, _scaleFactor, _onCompletion); if (_scaleFactor > 0f) Plugin.Call(Native.Methods.PICK_IMAGE, (int)_source, _scaleFactor); }
public override void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { base.PickImage(_source, _scaleFactor, _onCompletion); if (_scaleFactor > 0f) { m_gallery.PickImage(_source); } }
public override void PickImage (eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { base.PickImage(_source, _scaleFactor, _onCompletion); if (_scaleFactor > 0f) { m_gallery.PickImage(_source); } }
public override void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { base.PickImage(_source, _scaleFactor, _onCompletion); if (_scaleFactor > 0f) { Plugin.Call(NativeInfo.Methods.PICK_IMAGE, (int)_source, _scaleFactor); } }
public override void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { base.PickImage(_source, _scaleFactor, _onCompletion); if (_scaleFactor > 0f) { // Opens image picker pickImage((int)_source, _scaleFactor); } }
public override void PickImage (eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { base.PickImage(_source, _scaleFactor, _onCompletion); if (_scaleFactor > 0f) { // Opens image picker pickImage((int)_source, _scaleFactor); } }
/// <summary> /// Picks the image. /// </summary> /// <param name="_source"> Specify from where you want to pick the image from. <see cref="eImageSource"/> </param> /// <param name="_scaleFactor">Specify if scaled up or scaled down version of pick image is required. 1.0f returns the image with out any modification.</param> /// <param name="_onCompletion">Callback triggered once Pick from the source is finised.</param> public virtual void PickImage(eImageSource _source, float _scaleFactor, PickImageCompletion _onCompletion) { // Pause unity player this.PauseUnity(); // Cache callbacks OnPickImageFinished = _onCompletion; if (_scaleFactor <= 0f) { PickImageFinished(null, ePickImageFinishReason.FAILED); return; } }