I'm having a hard time to come up with the correct way to translate the last part (<GPUImageInput>) into the binding. Any suggestions?
@interface GPUImageFilter : GPUImageOutput <GPUImageInput>
I'm having a hard time to come up with the correct way to translate the last part (<GPUImageInput>) into the binding. Any suggestions?
@interface GPUImageFilter : GPUImageOutput <GPUImageInput>
从这里开始:http: //docs.xamarin.com/guides/ios/advanced_topics/binding_objective-c_libraries#Binding_Protocols和http://docs.xamarin.com/guides/ios/advanced_topics/api_design#Models。
根据里面的内容GPUImageInput
,我会将它与[Model]
属性绑定,然后GPUImageFilter
从它继承
[Model]
//Look, no BaseTypeAttribute
interface GPUImageInput {
//[Export] everything you need
}
[BaseType (typeof (XXXX))]
interface GPUImageFilter : GPUImageInput {
//[Export again]
}
希望能帮助到你