43 строки
1.3 KiB
C#
43 строки
1.3 KiB
C#
|
/*
|
||
|
* 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);
|
||
|
|
||
|
}
|
||
|
}
|