Ejemplo n.º 1
0
 public static void Bind(this IBinder This, Uri source, Image target, bool keepVisible = false, float?fadeDuration = null,
                         bool isPriority = false)
 {
     if (source != null && target != null)
     {
         This.BindAsCompletable(source, target, false, null, keepVisible, fadeDuration, isPriority)
         .Subscribe()
         .AddTo(This);
     }
 }
Ejemplo n.º 2
0
        public static ICompletable BindAsCompletable(this IBinder This, string source, Image target, bool isOptional = false,
                                                     Loadzup.Options options = null,
                                                     bool keepVisible        = false, float?fadeDuration = null, bool isPriority = false)
        {
            if (source == null || target == null)
            {
                return(Completable.Empty());
            }

            return(This.BindAsCompletable(new Uri(source), target, isOptional, options, keepVisible, fadeDuration, isPriority));
        }