我正在尝试做一个绑定项目,但我不知道如何绑定下一个接口,它实现了三个不同的委托:
@interface Integration : NSObject<NSURLConnectionDelegate, SomeControllerDelegate,
CLLocationManagerDelegate>
{
id<VendorIntegrationDelegate> delegate;
Information *Information;
SomeController * controller;
}
@property(nonatomic,assign) id<VendorIntegrationDelegate> delegate;
@property(nonatomic,strong) Information *Information;
@property(nonatomic,strong) SomeController *controller;
@end
在 ApiDefinition.cs 中我做了如下绑定,缺少 SomeControllerDelegate 和 CLLocationManagerDelegate 的实现:
[BaseType (typeof (NSUrlConnectionDelegate), Delegates=new string [] { "WeakDelegate" },
Events=new Type [] { typeof (VendorIntegrationDelegate)})]
public partial interface Integration
{
[Export ("delegate", ArgumentSemantic.Assign), NullAllowed]
NSObject WeakDelegate { get; set; }
[Wrap("WeakDelegate")]
VendorIntegrationDelegate Delegate { get; set; }
[Export ("Information", ArgumentSemantic.Retain)]
Information Information { get; set; }
[Export ("controller", ArgumentSemantic.Retain)]
SomeController Controller { get; set; }
}
我在做这个绑定时发现的问题是接口继承自几个类,如何创建这个绑定