Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Binding property type protocol ERROR

$
0
0

Hi there, I am trying to bind a lib manually. The lib is https://github.com/rnystrom/RNSwipeBar.

The library has a property

@property (weak, nonatomic) NSObject <RNSwipeBarDelegate> *delegate;

and I am getting the following error /Projects/SwipeBottomPanel/SwipePanelBinding: Error BI1017: btouch: Do not know how to make a signature for SwipePanelBinding.RNSwipeBarDelegate in method `get_Delegate' (BI1017) (SwipePanelBinding)

Also I have the binding for RNSwipeBarDelegate protocol and it looks like follow, (http://docs.xamarin.com/guides/ios/application_fundamentals/delegates,_protocols,_and_events)

[Register ("RNSwipeBarDelegate"), Model ]
    public abstract class RNSwipeBarDelegate
    {
[Export ("swipeBarDidAppear:")]
        public virtual void SwipeBarDidAppear (object sender)
        {
            throw new ModelNotImplementedException ();
        }
    [Export ("swipeBarDidDisappear:")]
    public virtual void SwipeBarDidDisappear (object sender)
    {
        throw new ModelNotImplementedException ();
    }

    [Export ("swipebarWasSwiped:")]
    public virtual void SwipebarWasSwiped (object sender)
    {
        throw new ModelNotImplementedException ();
    }
}`

Now the binding of the property in the C# is like follow

[Export ("delegate")]
RNSwipeBarDelegate Delegate { get; set; }

I really don't know what is wrong with it, since this is my first binding.

I hope someone can help me with this. Thanks in advance! NOTE. I can't use Objective Sharpie because it throws the following error: http://forums.xamarin.com/discussion/7151/bind-objective-c-static-library-header-files-using-objective-sharpie-fails#latest


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>