xamarin-macios/tests/generator/bug24078-ignore-methods-eve...

43 строки
1.3 KiB
C#
Исходник Обычный вид История

2016-05-26 16:06:52 +03:00
/*
* Allow to ignore certain methods from the generation of events.
*
*/
using System;
#if !XAMCORE_2_0
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using MonoTouch.UIKit;
#else
using Foundation;
using ObjCRuntime;
using UIKit;
#endif
namespace Test {
[BaseType (typeof (NSObject),
Delegates=new string [] {"WeakDelegate"},
Events=new Type [] { typeof (UIPopoverPresentationControllerDelegate) })]
public partial interface TestController {
[Export ("delegate", ArgumentSemantic.UnsafeUnretained)]
NSObject WeakDelegate { get; set; }
[Wrap ("WeakDelegate")]
[Protocolize]
UIPopoverPresentationControllerDelegate Delegate { get; set; }
}
[Protocol, Model]
[BaseType (typeof (NSObject))]
public partial interface UIPopoverPresentationControllerDelegate {
[IgnoredInDelegate] // ignore this method in the c# events
[Export ("adaptivePresentationStyleForPresentationController:")]
UIModalPresentationStyle GetAdaptivePresentationStyle (UIPresentationController forPresentationController);
[Export ("adaptivePresentationStyleForPresentationController:traitCollection:"),
DelegateName ("AdaptivePresentationStyleWithTraitsRequested"), DefaultValue (UIModalPresentationStyle.None)]
UIModalPresentationStyle GetAdaptivePresentationStyle (UIPresentationController controller, UITraitCollection traitCollection);
}
}