2016-04-21 15:30:02 +03:00
|
|
|
//
|
|
|
|
// This file describes the API that the generator will produce
|
|
|
|
//
|
|
|
|
// Authors:
|
|
|
|
// Miguel de Icaza
|
|
|
|
//
|
2016-07-22 18:22:15 +03:00
|
|
|
// Copyrigh 2014-2016, Xamarin Inc.
|
2016-04-21 15:30:02 +03:00
|
|
|
//
|
|
|
|
//
|
|
|
|
using XamCore.ObjCRuntime;
|
|
|
|
using XamCore.Foundation;
|
|
|
|
using XamCore.CoreGraphics;
|
|
|
|
using XamCore.CoreLocation;
|
|
|
|
using XamCore.HealthKit;
|
2016-07-22 18:22:15 +03:00
|
|
|
using XamCore.HomeKit;
|
2016-04-21 15:30:02 +03:00
|
|
|
using XamCore.PassKit;
|
2016-08-04 21:32:09 +03:00
|
|
|
using XamCore.SpriteKit;
|
2016-08-06 17:59:16 +03:00
|
|
|
using XamCore.SceneKit;
|
2016-04-21 15:30:02 +03:00
|
|
|
using XamCore.UIKit;
|
|
|
|
using XamCore.MapKit;
|
2016-07-22 18:22:15 +03:00
|
|
|
using XamCore.UserNotifications;
|
2016-04-21 15:30:02 +03:00
|
|
|
using System;
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
namespace XamCore.WatchKit {
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[Abstract] // <quote>To use this class, subclass it</quote>
|
2017-09-01 10:14:54 +03:00
|
|
|
[DisableDefaultCtor] // DesignatedInitializer below
|
2016-04-21 15:30:02 +03:00
|
|
|
interface WKInterfaceController {
|
|
|
|
|
2017-09-01 10:14:54 +03:00
|
|
|
[DesignatedInitializer]
|
|
|
|
[Export ("init")]
|
|
|
|
IntPtr Constructor ();
|
2016-04-21 15:30:02 +03:00
|
|
|
|
|
|
|
[Export ("awakeWithContext:")]
|
|
|
|
void Awake ([NullAllowed] NSObject context);
|
|
|
|
|
|
|
|
[Export ("contentFrame")]
|
|
|
|
CGRect ContentFrame { get; }
|
|
|
|
|
|
|
|
// The super implementation of this method does nothing.
|
|
|
|
[Export ("willActivate")]
|
|
|
|
void WillActivate ();
|
|
|
|
|
|
|
|
// The super implementation of this method does nothing.
|
|
|
|
[Export ("didDeactivate")]
|
|
|
|
void DidDeactivate ();
|
|
|
|
|
|
|
|
#if WATCH
|
|
|
|
[Export ("didAppear")]
|
|
|
|
void DidAppear ();
|
|
|
|
|
|
|
|
[Export ("willDisappear")]
|
|
|
|
void WillDisappear ();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
[Export ("table:didSelectRowAtIndex:")]
|
|
|
|
void DidSelectRow (WKInterfaceTable table, nint rowIndex);
|
|
|
|
|
2017-06-27 01:17:06 +03:00
|
|
|
[Deprecated (PlatformName.iOS, 10,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")]
|
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forRemoteNotification:")]
|
|
|
|
void HandleRemoteNotificationAction ([NullAllowed] string identifier, NSDictionary remoteNotification);
|
|
|
|
|
2017-06-27 01:17:06 +03:00
|
|
|
[Deprecated (PlatformName.iOS, 10,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")]
|
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'UNUserNotificationCenterDelegate' instead.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forLocalNotification:")]
|
|
|
|
void HandleLocalNotificationAction ([NullAllowed] string identifier, UILocalNotification localNotification);
|
|
|
|
|
2016-11-03 05:15:29 +03:00
|
|
|
[iOS (10,0)]
|
|
|
|
[NoWatch]
|
2016-07-22 18:22:15 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forNotification:")]
|
|
|
|
void HandleAction ([NullAllowed] string identifier, UNNotification notification);
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'WKExtensionDelegate.HandleUserActivity' instead.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleUserActivity:")]
|
|
|
|
// This NSDictionary is OK, it is arbitrary and user specific
|
|
|
|
void HandleUserActivity ([NullAllowed] NSDictionary userActivity);
|
|
|
|
|
|
|
|
[Export ("setTitle:")]
|
|
|
|
void SetTitle ([NullAllowed] string title);
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("pushControllerWithName:context:")]
|
|
|
|
void PushController (string name, [NullAllowed] NSObject context);
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("popController")]
|
|
|
|
void PopController ();
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("popToRootController")]
|
|
|
|
void PopToRootController ();
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("becomeCurrentPage")]
|
|
|
|
void BecomeCurrentPage ();
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("presentControllerWithName:context:")]
|
|
|
|
void PresentController (string name, [NullAllowed] NSObject context);
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("presentControllerWithNames:contexts:")]
|
|
|
|
void PresentController (string [] names, [NullAllowed] NSObject [] contexts);
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("dismissController")]
|
|
|
|
void DismissController ();
|
|
|
|
|
|
|
|
[Export ("dismissTextInputController")]
|
|
|
|
void DismissTextInputController ();
|
|
|
|
|
|
|
|
[Export ("contextForSegueWithIdentifier:")]
|
|
|
|
NSObject GetContextForSegue (string segueIdentifier);
|
|
|
|
|
|
|
|
[Export ("contextsForSegueWithIdentifier:")]
|
|
|
|
NSObject [] GetContextsForSegue (string segueIdentifier);
|
|
|
|
|
|
|
|
[Export ("contextForSegueWithIdentifier:inTable:rowIndex:")]
|
|
|
|
NSObject GetContextForSegue (string segueIdentifier, WKInterfaceTable table, nint rowIndex);
|
|
|
|
|
|
|
|
[Export ("contextsForSegueWithIdentifier:inTable:rowIndex:")]
|
|
|
|
NSObject [] GetContextsForSegue (string segueIdentifier, WKInterfaceTable table, nint rowIndex);
|
|
|
|
|
|
|
|
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
|
|
|
[Export ("addMenuItemWithImage:title:action:")]
|
|
|
|
void AddMenuItem (UIImage image, string title, Selector action);
|
|
|
|
|
|
|
|
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
|
|
|
[Export ("addMenuItemWithImageNamed:title:action:")]
|
|
|
|
void AddMenuItem (string imageName, string title, Selector action);
|
|
|
|
|
|
|
|
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
|
|
|
[Export ("addMenuItemWithItemIcon:title:action:")]
|
|
|
|
void AddMenuItem (WKMenuItemIcon itemIcon, string title, Selector action);
|
|
|
|
|
|
|
|
[Export ("clearAllMenuItems")]
|
|
|
|
void ClearAllMenuItems ();
|
|
|
|
|
|
|
|
[Export ("updateUserActivity:userInfo:webpageURL:")]
|
|
|
|
// This NSDictionary is OK, it is arbitrary and user specific
|
|
|
|
void UpdateUserActivity (string type, [NullAllowed] NSDictionary userInfo, [NullAllowed] NSUrl webpageURL);
|
|
|
|
|
|
|
|
[Export ("invalidateUserActivity")]
|
|
|
|
void InvalidateUserActivity ();
|
|
|
|
|
|
|
|
[ThreadSafe (false)]
|
|
|
|
[Export ("presentTextInputControllerWithSuggestions:allowedInputMode:completion:")]
|
2017-03-07 21:55:37 +03:00
|
|
|
[Async]
|
2016-04-21 15:30:02 +03:00
|
|
|
void PresentTextInputController ([NullAllowed] string [] suggestions, WKTextInputMode inputMode, Action<NSArray> completion);
|
|
|
|
|
|
|
|
[iOS (9,0)]
|
|
|
|
[Export ("presentTextInputControllerWithSuggestionsForLanguage:allowedInputMode:completion:")]
|
2017-03-07 21:55:37 +03:00
|
|
|
[Async]
|
2016-04-21 15:30:02 +03:00
|
|
|
void PresentTextInputController ([NullAllowed] Func<NSString, NSArray> suggestionsHandler, WKTextInputMode inputMode, Action<NSArray> completion);
|
|
|
|
|
|
|
|
[NoWatch]
|
|
|
|
[Static, Export ("openParentApplication:reply:")]
|
|
|
|
bool OpenParentApplication (NSDictionary userInfo, [NullAllowed] Action<NSDictionary, NSError> reply);
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'ReloadRootPageControllers' instead.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Static, Export ("reloadRootControllersWithNames:contexts:")]
|
|
|
|
void ReloadRootControllers (string [] names, [NullAllowed] NSObject [] contexts);
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Static]
|
|
|
|
[Export ("reloadRootPageControllersWithNames:contexts:orientation:pageIndex:")]
|
|
|
|
void ReloadRootPageControllers (string[] names, [NullAllowed] NSObject[] contexts, WKPageOrientation orientation, nint pageIndex);
|
|
|
|
|
2016-04-21 15:30:02 +03:00
|
|
|
#if !XAMCORE_3_0
|
|
|
|
// now exposed with the corresponding WKErrorCode enum
|
|
|
|
[Field ("WatchKitErrorDomain")]
|
|
|
|
NSString ErrorDomain { get; }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if WATCH
|
|
|
|
[Export ("dismissMediaPlayerController")]
|
|
|
|
void DismissMediaPlayerController ();
|
|
|
|
|
|
|
|
[Watch (2,0)]
|
|
|
|
[Export ("presentAudioRecorderControllerWithOutputURL:preset:options:completion:")]
|
2017-03-07 21:55:37 +03:00
|
|
|
[Async]
|
2016-04-21 15:30:02 +03:00
|
|
|
void PresentAudioRecorderController (NSUrl outputUrl, WKAudioRecorderPreset preset, [NullAllowed] NSDictionary options, Action<bool, NSError> completion);
|
|
|
|
|
|
|
|
[Watch (2,0)]
|
|
|
|
[Export ("dismissAudioRecorderController")]
|
|
|
|
void DismissAudioRecorderController ();
|
|
|
|
|
|
|
|
[Export ("animateWithDuration:animations:")]
|
|
|
|
void AnimateWithDuration (double duration, Action animations);
|
|
|
|
|
|
|
|
[Export ("presentAlertControllerWithTitle:message:preferredStyle:actions:")]
|
|
|
|
void PresentAlertController ([NullAllowed] string title, [NullAllowed] string message, WKAlertControllerStyle preferredStyle, WKAlertAction[] actions);
|
|
|
|
|
|
|
|
[Export ("presentAddPassesControllerWithPasses:completion:")]
|
2017-03-07 21:55:37 +03:00
|
|
|
[Async]
|
2016-04-21 15:30:02 +03:00
|
|
|
void PresentAddPassesController (PKPass[] passes, Action completion);
|
|
|
|
|
|
|
|
[Export ("dismissAddPassesController")]
|
|
|
|
void DismissAddPassesController ();
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 4,0, message: "Glances support was removed.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("beginGlanceUpdates")]
|
|
|
|
void BeginGlanceUpdates ();
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 4,0, message: "Glances support was removed.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("endGlanceUpdates")]
|
|
|
|
void EndGlanceUpdates ();
|
|
|
|
|
|
|
|
[Export ("pickerDidFocus:")]
|
|
|
|
void PickerDidFocus (WKInterfacePicker picker);
|
|
|
|
|
|
|
|
[Export ("pickerDidResignFocus:")]
|
|
|
|
void PickerDidResignFocus (WKInterfacePicker picker);
|
|
|
|
|
|
|
|
[Export ("pickerDidSettle:")]
|
|
|
|
void PickerDidSettle (WKInterfacePicker picker);
|
|
|
|
#endif
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("presentMediaPlayerControllerWithURL:options:completion:")]
|
2017-03-07 21:55:37 +03:00
|
|
|
[Async (ResultType = typeof (WKPresentMediaPlayerResult))]
|
2016-04-21 15:30:02 +03:00
|
|
|
void PresentMediaPlayerController (NSUrl url, [NullAllowed] NSDictionary options, Action<bool, double, NSError> completion);
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Export ("crownSequencer", ArgumentSemantic.Strong)]
|
|
|
|
WKCrownSequencer CrownSequencer { get; }
|
2017-08-02 14:53:28 +03:00
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("scrollToObject:atScrollPosition:animated:")]
|
|
|
|
void ScrollTo (WKInterfaceObject @object, WKInterfaceScrollPosition scrollPosition, bool animated);
|
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("interfaceDidScrollToTop")]
|
|
|
|
void InterfaceDidScrollToTop ();
|
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("interfaceOffsetDidScrollToTop")]
|
|
|
|
void InterfaceOffsetDidScrollToTop ();
|
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("interfaceOffsetDidScrollToBottom")]
|
|
|
|
void InterfaceOffsetDidScrollToBottom ();
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (WKInterfaceController))]
|
2017-09-01 10:14:54 +03:00
|
|
|
[DisableDefaultCtor] // DesignatedInitializer below
|
2016-04-21 15:30:02 +03:00
|
|
|
interface WKUserNotificationInterfaceController {
|
2016-07-22 18:22:15 +03:00
|
|
|
|
2017-09-01 10:14:54 +03:00
|
|
|
[DesignatedInitializer]
|
|
|
|
[Export ("init")]
|
|
|
|
IntPtr Constructor ();
|
|
|
|
|
2017-06-27 01:17:06 +03:00
|
|
|
[Deprecated (PlatformName.iOS, 10,0, message: "Use 'DidReceiveNotification' instead.")]
|
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'DidReceiveNotification' instead.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("didReceiveRemoteNotification:withCompletion:")]
|
|
|
|
void DidReceiveRemoteNotification (NSDictionary remoteNotification, Action<WKUserNotificationInterfaceType> completionHandler);
|
|
|
|
|
2017-06-27 01:17:06 +03:00
|
|
|
[Deprecated (PlatformName.iOS, 10,0, message: "Use 'DidReceiveNotification' instead.")]
|
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use 'DidReceiveNotification' instead.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("didReceiveLocalNotification:withCompletion:")]
|
|
|
|
void DidReceiveLocalNotification (UILocalNotification localNotification, Action<WKUserNotificationInterfaceType> completionHandler);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Watch (3,0)][iOS (10,0)]
|
|
|
|
[Export ("didReceiveNotification:withCompletion:")]
|
|
|
|
void DidReceiveNotification (UNNotification notification, Action<WKUserNotificationInterfaceType> completionHandler);
|
|
|
|
|
|
|
|
[NoiOS]
|
2017-06-27 01:17:06 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use overload accepting an 'UNNotification' parameter.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("suggestionsForResponseToActionWithIdentifier:forRemoteNotification:inputLanguage:")]
|
|
|
|
string[] GetSuggestionsForResponseToAction (string identifier, NSDictionary remoteNotification, string inputLanguage);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2017-06-27 01:17:06 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use overload accepting an 'UNNotification' parameter.")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("suggestionsForResponseToActionWithIdentifier:forLocalNotification:inputLanguage:")]
|
|
|
|
string[] GetSuggestionsForResponseToAction (string identifier, UILocalNotification localNotification, string inputLanguage);
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Export ("suggestionsForResponseToActionWithIdentifier:forNotification:inputLanguage:")]
|
|
|
|
string[] GetSuggestionsForResponseToAction (string identifier, UNNotification notification, string inputLanguage);
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
// just like we inlined UIAccessibility into UIViewm UIImage and UIBarItem instead of stuffing it all into NSObject
|
|
|
|
interface WKInterfaceObject : UIAccessibility {
|
|
|
|
[Export ("interfaceProperty")]
|
|
|
|
string InterfaceProperty { get; }
|
|
|
|
|
|
|
|
[Export ("setHidden:")]
|
|
|
|
void SetHidden (bool hidden);
|
|
|
|
|
|
|
|
[Export ("setAlpha:")]
|
|
|
|
void SetAlpha (nfloat alpha);
|
|
|
|
|
|
|
|
[Export ("setWidth:")]
|
|
|
|
void SetWidth (nfloat width);
|
|
|
|
|
|
|
|
[Export ("setHeight:")]
|
|
|
|
void SetHeight (nfloat height);
|
|
|
|
|
|
|
|
[Watch (2,1), NoiOS]
|
|
|
|
[Export ("setSemanticContentAttribute:")]
|
|
|
|
void SetSemanticContentAttribute (WKInterfaceSemanticContentAttribute semanticContentAttribute);
|
|
|
|
|
|
|
|
#if WATCH
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("setHorizontalAlignment:")]
|
|
|
|
void SetHorizontalAlignment (WKInterfaceObjectHorizontalAlignment horizontalAlignment);
|
|
|
|
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("setVerticalAlignment:")]
|
|
|
|
void SetVerticalAlignment (WKInterfaceObjectVerticalAlignment verticalAlignment);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("setRelativeWidth:withAdjustment:")]
|
|
|
|
void SetRelativeWidth (nfloat width, nfloat adjustment);
|
|
|
|
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("setRelativeHeight:withAdjustment:")]
|
|
|
|
void SetRelativeHeight (nfloat height, nfloat adjustment);
|
|
|
|
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("sizeToFitWidth")]
|
|
|
|
void SizeToFitWidth ();
|
|
|
|
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("sizeToFitHeight")]
|
|
|
|
void SizeToFitHeight ();
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[Category]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKAccessibility {
|
|
|
|
[Export ("setAccessibilityLabel:")]
|
|
|
|
void SetAccessibilityLabel ([NullAllowed] string accessibilityLabel);
|
|
|
|
|
|
|
|
[Export ("setAccessibilityHint:")]
|
|
|
|
void SetAccessibilityHint ([NullAllowed] string accessibilityHint);
|
|
|
|
|
|
|
|
[Export ("setAccessibilityValue:")]
|
|
|
|
void SetAccessibilityValue ([NullAllowed] string accessibilityValue);
|
|
|
|
|
|
|
|
[Export ("setAccessibilityImageRegions:")]
|
|
|
|
void SetAccessibilityImageRegions (WKAccessibilityImageRegion[] accessibilityImageRegions);
|
|
|
|
|
|
|
|
[Export ("setAccessibilityTraits:")]
|
|
|
|
void SetAccessibilityTraits (UIAccessibilityTrait accessibilityTraits);
|
|
|
|
|
|
|
|
[Export ("setIsAccessibilityElement:")]
|
|
|
|
void SetIsAccessibilityElement (bool isAccessibilityElement);
|
|
|
|
|
|
|
|
[Export ("setAccessibilityIdentifier:")]
|
|
|
|
void SetAccessibilityIdentifier ([NullAllowed] string accessibilityIdentifier);
|
|
|
|
|
|
|
|
[Watch (2,0)][NoiOS]
|
|
|
|
[Notification]
|
|
|
|
[Field ("WKAccessibilityVoiceOverStatusChanged")]
|
|
|
|
NSString VoiceOverStatusChanged { get; }
|
2017-08-02 14:53:28 +03:00
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Notification]
|
|
|
|
[Field ("WKAccessibilityReduceMotionStatusDidChangeNotification")]
|
|
|
|
NSString ReduceMotionStatusDidChangeNotification { get; }
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor] // does not make sense to create, it should only be used thru the singleton
|
|
|
|
interface WKInterfaceDevice {
|
|
|
|
[Export ("screenBounds")]
|
|
|
|
CGRect ScreenBounds { get; }
|
|
|
|
|
|
|
|
[Export ("screenScale")]
|
|
|
|
nfloat ScreenScale { get; }
|
|
|
|
|
|
|
|
[NoWatch]
|
|
|
|
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
|
|
|
[Export ("cachedImages")]
|
|
|
|
NSDictionary WeakCachedImages { get; }
|
|
|
|
|
|
|
|
[Internal]
|
|
|
|
[Export ("preferredContentSizeCategory")]
|
|
|
|
NSString _PreferredContentSizeCategory { get; }
|
|
|
|
|
|
|
|
[Static, Export ("currentDevice")]
|
|
|
|
WKInterfaceDevice CurrentDevice { get; }
|
|
|
|
|
|
|
|
[NoWatch]
|
|
|
|
[Export ("addCachedImage:name:")]
|
|
|
|
bool AddCachedImage (UIImage image, string name);
|
|
|
|
|
|
|
|
[NoWatch]
|
|
|
|
[Export ("addCachedImageWithData:name:")]
|
|
|
|
bool AddCachedImage (NSData imageData, string name);
|
|
|
|
|
|
|
|
[NoWatch]
|
|
|
|
[Export ("removeCachedImageWithName:")]
|
|
|
|
void RemoveCachedImage (string name);
|
|
|
|
|
|
|
|
[NoWatch]
|
|
|
|
[Export ("removeAllCachedImages")]
|
|
|
|
void RemoveAllCachedImages ();
|
|
|
|
|
|
|
|
[iOS (9,0), Watch (2,0)]
|
|
|
|
[Export ("systemVersion")]
|
|
|
|
string SystemVersion { get; }
|
|
|
|
|
|
|
|
[iOS (9,0), Watch (2,0)]
|
|
|
|
[Export ("name")]
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
[iOS (9,0), Watch (2,0)]
|
|
|
|
[Export ("model")]
|
|
|
|
string Model { get; }
|
|
|
|
|
|
|
|
[iOS (9,0), Watch (2,0)]
|
|
|
|
[Export ("localizedModel")]
|
|
|
|
string LocalizedModel { get; }
|
|
|
|
|
|
|
|
[iOS (9,0)][Watch (2,0)]
|
|
|
|
[Export ("systemName")]
|
|
|
|
string SystemName { get; }
|
|
|
|
|
2016-09-08 01:19:28 +03:00
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Export ("waterResistanceRating")]
|
|
|
|
WKWaterResistanceRating WaterResistanceRating { get; }
|
|
|
|
|
2016-04-21 15:30:02 +03:00
|
|
|
[Watch (2,0), NoiOS]
|
|
|
|
[Export ("playHaptic:")]
|
|
|
|
void PlayHaptic (WKHapticType type);
|
|
|
|
|
|
|
|
[Watch (2,1), NoiOS]
|
|
|
|
[Export ("layoutDirection")]
|
|
|
|
WKInterfaceLayoutDirection LayoutDirection { get; }
|
|
|
|
|
|
|
|
[Watch (2,1), NoiOS]
|
|
|
|
[Static]
|
|
|
|
[Export ("interfaceLayoutDirectionForSemanticContentAttribute:")]
|
|
|
|
WKInterfaceLayoutDirection GetInterfaceLayoutDirection (WKInterfaceSemanticContentAttribute semanticContentAttribute);
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Export ("wristLocation")]
|
|
|
|
WKInterfaceDeviceWristLocation WristLocation { get; }
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Export ("crownOrientation")]
|
|
|
|
WKInterfaceDeviceCrownOrientation CrownOrientation { get; }
|
2017-08-02 14:53:28 +03:00
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("batteryMonitoringEnabled")]
|
|
|
|
bool BatteryMonitoringEnabled { [Bind ("isBatteryMonitoringEnabled")] get; set; }
|
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("batteryLevel")]
|
|
|
|
float BatteryLevel { get; }
|
|
|
|
|
|
|
|
[Watch (4,0)][NoiOS]
|
|
|
|
[Export ("batteryState")]
|
|
|
|
WKInterfaceDeviceBatteryState BatteryState { get; }
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceButton {
|
|
|
|
[Export ("setTitle:")]
|
|
|
|
void SetTitle ([NullAllowed] string title);
|
|
|
|
|
|
|
|
[Export ("setAttributedTitle:")]
|
|
|
|
void SetTitle ([NullAllowed] NSAttributedString attributedTitle);
|
|
|
|
|
|
|
|
[Export ("setBackgroundColor:")]
|
|
|
|
void SetBackgroundColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setBackgroundImage:")]
|
|
|
|
void SetBackgroundImage ([NullAllowed] UIImage image);
|
|
|
|
|
|
|
|
[Export ("setBackgroundImageData:")]
|
|
|
|
void SetBackgroundImage ([NullAllowed] NSData imageData);
|
|
|
|
|
|
|
|
[Export ("setBackgroundImageNamed:")]
|
|
|
|
void SetBackgroundImage ([NullAllowed] string imageName);
|
|
|
|
|
|
|
|
[Export ("setEnabled:")]
|
|
|
|
void SetEnabled (bool enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
interface WKInterfaceGroup : WKImageAnimatable {
|
|
|
|
[Export ("setBackgroundColor:")]
|
|
|
|
void SetBackgroundColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setBackgroundImage:")]
|
|
|
|
void SetBackgroundImage ([NullAllowed] UIImage image);
|
|
|
|
|
|
|
|
[Export ("setBackgroundImageData:")]
|
|
|
|
void SetBackgroundImage ([NullAllowed] NSData imageData);
|
|
|
|
|
|
|
|
[Export ("setBackgroundImageNamed:")]
|
|
|
|
void SetBackgroundImage ([NullAllowed] string imageName);
|
|
|
|
|
|
|
|
[Export ("setCornerRadius:")]
|
|
|
|
void SetCornerRadius (nfloat cornerRadius);
|
|
|
|
|
|
|
|
[NoiOS]
|
|
|
|
[Export ("setContentInset:")]
|
|
|
|
void SetContentInset (UIEdgeInsets contentInset);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
interface WKInterfaceImage : WKImageAnimatable {
|
|
|
|
[Export ("setImage:")]
|
|
|
|
void SetImage ([NullAllowed] UIImage image);
|
|
|
|
|
|
|
|
[Export ("setImageData:")]
|
|
|
|
void SetImage ([NullAllowed] NSData imageData);
|
|
|
|
|
|
|
|
[Export ("setImageNamed:")]
|
|
|
|
void SetImage ([NullAllowed] string imageName);
|
|
|
|
|
|
|
|
[Export ("setTintColor:")]
|
|
|
|
void SetTintColor ([NullAllowed] UIColor color);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceLabel {
|
|
|
|
|
|
|
|
[Export ("setText:")]
|
|
|
|
void SetText ([NullAllowed] string text);
|
|
|
|
|
|
|
|
[Export ("setTextColor:")]
|
|
|
|
void SetTextColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setAttributedText:")]
|
|
|
|
void SetText ([NullAllowed] NSAttributedString attributedText);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceDate {
|
|
|
|
[Export ("setTextColor:")]
|
|
|
|
void SetTextColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setTimeZone:")]
|
|
|
|
void SetTimeZone ([NullAllowed] NSTimeZone timeZone);
|
|
|
|
|
|
|
|
[Export ("setCalendar:")]
|
|
|
|
void SetCalendar ([NullAllowed] NSCalendar calendar);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceTimer {
|
|
|
|
|
|
|
|
[Export ("setTextColor:")]
|
|
|
|
void SetTextColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setDate:")]
|
|
|
|
void SetDate (NSDate date);
|
|
|
|
|
|
|
|
[Export ("start")]
|
|
|
|
void Start ();
|
|
|
|
|
|
|
|
[Export ("stop")]
|
|
|
|
void Stop ();
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceTable {
|
|
|
|
[Export ("numberOfRows")]
|
|
|
|
nint NumberOfRows { get; }
|
|
|
|
|
|
|
|
[Export ("setRowTypes:")]
|
|
|
|
void SetRowTypes (string [] rowTypes);
|
|
|
|
|
|
|
|
[Export ("setNumberOfRows:withRowType:")]
|
|
|
|
void SetNumberOfRows (nint numberOfRows, string rowType);
|
|
|
|
|
|
|
|
[Export ("rowControllerAtIndex:")]
|
|
|
|
NSObject GetRowController (nint index);
|
|
|
|
|
|
|
|
[Export ("insertRowsAtIndexes:withRowType:")]
|
|
|
|
void InsertRows (NSIndexSet rowIndexes, string rowType);
|
|
|
|
|
|
|
|
[Export ("removeRowsAtIndexes:")]
|
|
|
|
void RemoveRows (NSIndexSet rowIndexes);
|
|
|
|
|
|
|
|
[Export ("scrollToRowAtIndex:")]
|
|
|
|
void ScrollToRow (nint index);
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Export ("performSegueForRow:")]
|
|
|
|
void PerformSegue (nint row);
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceMap {
|
|
|
|
|
|
|
|
[Export ("addAnnotation:withImage:centerOffset:")]
|
|
|
|
void AddAnnotation (CLLocationCoordinate2D location, [NullAllowed] UIImage image, CGPoint offset);
|
|
|
|
|
|
|
|
[Export ("addAnnotation:withImageNamed:centerOffset:")]
|
|
|
|
void AddAnnotation (CLLocationCoordinate2D location, [NullAllowed] string name, CGPoint offset);
|
|
|
|
|
|
|
|
[Export ("addAnnotation:withPinColor:")]
|
|
|
|
void AddAnnotation (CLLocationCoordinate2D location, WKInterfaceMapPinColor pinColor);
|
|
|
|
|
|
|
|
[Export ("setRegion:")]
|
|
|
|
void SetRegion (MKCoordinateRegion coordinateRegion);
|
|
|
|
|
|
|
|
[Export ("setVisibleMapRect:")]
|
|
|
|
void SetVisible (MKMapRect mapRect);
|
|
|
|
|
|
|
|
[Export ("removeAllAnnotations")]
|
|
|
|
void RemoveAllAnnotations ();
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceSeparator {
|
|
|
|
[Export ("setColor:")]
|
|
|
|
void SetColor ([NullAllowed] UIColor color);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceSlider {
|
|
|
|
[Export ("setEnabled:")]
|
|
|
|
void SetEnabled (bool enabled);
|
|
|
|
|
|
|
|
[Export ("setValue:")]
|
|
|
|
void SetValue (float value);
|
|
|
|
|
|
|
|
[Export ("setColor:")]
|
|
|
|
void SetColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setNumberOfSteps:")]
|
|
|
|
void SetNumberOfSteps (nint numberOfSteps);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
interface WKInterfaceSwitch {
|
|
|
|
|
|
|
|
[Export ("setColor:")]
|
|
|
|
void SetColor ([NullAllowed] UIColor color);
|
|
|
|
|
|
|
|
[Export ("setEnabled:")]
|
|
|
|
void SetEnabled (bool enabled);
|
|
|
|
|
|
|
|
[Export ("setOn:")]
|
|
|
|
void SetOn (bool on);
|
|
|
|
|
|
|
|
[Export ("setTitle:")]
|
|
|
|
void SetTitle ([NullAllowed] string title);
|
|
|
|
|
|
|
|
[Export ("setAttributedTitle:")]
|
|
|
|
void SetTitle ([NullAllowed] NSAttributedString attributedTitle);
|
|
|
|
}
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKAccessibilityImageRegion {
|
|
|
|
|
|
|
|
[Export ("frame")]
|
|
|
|
CGRect Frame { get; set; }
|
|
|
|
|
|
|
|
[NullAllowed]
|
|
|
|
[Export ("label")]
|
|
|
|
string Label { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IWKImageAnimatable {}
|
|
|
|
|
|
|
|
[iOS (9,0)]
|
|
|
|
[Protocol]
|
|
|
|
interface WKImageAnimatable {
|
|
|
|
[iOS (8,2)]
|
|
|
|
[Abstract]
|
|
|
|
[Export ("startAnimating")]
|
|
|
|
void StartAnimating ();
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[Abstract]
|
|
|
|
[Export ("startAnimatingWithImagesInRange:duration:repeatCount:")]
|
|
|
|
void StartAnimating (NSRange imageRange, double duration, nint repeatCount);
|
|
|
|
|
|
|
|
[iOS (8,2)]
|
|
|
|
[Abstract]
|
|
|
|
[Export ("stopAnimating")]
|
|
|
|
void StopAnimating ();
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKImage : NSCopying, NSSecureCoding {
|
|
|
|
[Static]
|
|
|
|
[Export ("imageWithImage:")]
|
|
|
|
WKImage CreateFromImage (UIImage image);
|
|
|
|
|
|
|
|
[Static]
|
|
|
|
[Export ("imageWithImageData:")]
|
|
|
|
WKImage CreateFromData (NSData imageData);
|
|
|
|
|
|
|
|
[Static]
|
|
|
|
[Export ("imageWithImageName:")]
|
|
|
|
WKImage CreateFromName (string imageName);
|
|
|
|
|
|
|
|
[NullAllowed, Export ("image")]
|
|
|
|
UIImage Image { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("imageData")]
|
|
|
|
NSData ImageData { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("imageName")]
|
|
|
|
string ImageName { get; }
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKAlertAction {
|
|
|
|
[Static]
|
|
|
|
[Export ("actionWithTitle:style:handler:")]
|
|
|
|
WKAlertAction Create (string title, WKAlertActionStyle style, Action handler);
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKAudioFileAsset {
|
|
|
|
[Static]
|
|
|
|
[Export ("assetWithURL:")]
|
|
|
|
WKAudioFileAsset Create (NSUrl url);
|
|
|
|
|
|
|
|
[Static]
|
|
|
|
[Export ("assetWithURL:title:albumTitle:artist:")]
|
|
|
|
WKAudioFileAsset Create (NSUrl url, [NullAllowed] string title, [NullAllowed] string albumTitle, [NullAllowed] string artist);
|
|
|
|
|
|
|
|
[Export ("URL")]
|
|
|
|
NSUrl Url { get; }
|
|
|
|
|
|
|
|
[Export ("duration")]
|
|
|
|
double Duration { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("title")]
|
|
|
|
string Title { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("albumTitle")]
|
|
|
|
string AlbumTitle { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("artist")]
|
|
|
|
string Artist { get; }
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof(NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKAudioFilePlayer {
|
|
|
|
[Static]
|
|
|
|
[Export ("playerWithPlayerItem:")]
|
|
|
|
WKAudioFilePlayer Create (WKAudioFilePlayerItem item);
|
|
|
|
|
|
|
|
[Export ("play")]
|
|
|
|
void Play ();
|
|
|
|
|
|
|
|
[Export ("pause")]
|
|
|
|
void Pause ();
|
|
|
|
|
|
|
|
[Export ("replaceCurrentItemWithPlayerItem:")]
|
|
|
|
void ReplaceCurrentItem ([NullAllowed] WKAudioFilePlayerItem item);
|
|
|
|
|
|
|
|
[NullAllowed, Export ("currentItem")]
|
|
|
|
WKAudioFilePlayerItem CurrentItem { get; }
|
|
|
|
|
|
|
|
[Export ("status")]
|
|
|
|
WKAudioFilePlayerStatus Status { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("error")]
|
|
|
|
NSError Error { get; }
|
|
|
|
|
|
|
|
[Export ("rate")]
|
|
|
|
float Rate { get; set; }
|
|
|
|
|
|
|
|
[Export ("currentTime")]
|
|
|
|
double CurrentTime { get; }
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKAudioFilePlayerItem {
|
|
|
|
[Static]
|
|
|
|
[Export ("playerItemWithAsset:")]
|
|
|
|
WKAudioFilePlayerItem Create (WKAudioFileAsset asset);
|
|
|
|
|
|
|
|
[Export ("asset")]
|
|
|
|
WKAudioFileAsset Asset { get; }
|
|
|
|
|
|
|
|
[Export ("status")]
|
|
|
|
WKAudioFilePlayerItemStatus Status { get; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("error")]
|
|
|
|
NSError Error { get; }
|
|
|
|
|
|
|
|
[Export ("currentTime")]
|
2017-01-26 21:48:49 +03:00
|
|
|
double CurrentTime {
|
|
|
|
get;
|
|
|
|
#if XAMCORE_4_0
|
|
|
|
[Watch (3,2)]
|
|
|
|
set;
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
}
|
|
|
|
[Watch (3,2)]
|
|
|
|
[Export ("setCurrentTime:")]
|
|
|
|
void SetCurrentTime (double time);
|
|
|
|
#endif
|
2016-04-21 15:30:02 +03:00
|
|
|
|
|
|
|
[Watch (2,0), NoiOS]
|
|
|
|
[Notification]
|
|
|
|
[Field ("WKAudioFilePlayerItemTimeJumpedNotification")]
|
|
|
|
NSString TimeJumpedNotification { get; }
|
|
|
|
|
|
|
|
[Watch (2,0), NoiOS]
|
|
|
|
[Notification]
|
|
|
|
[Field ("WKAudioFilePlayerItemDidPlayToEndTimeNotification")]
|
|
|
|
NSString DidPlayToEndTimeNotification { get; }
|
|
|
|
|
|
|
|
[Watch (2,0), NoiOS]
|
|
|
|
[Notification]
|
|
|
|
[Field ("WKAudioFilePlayerItemFailedToPlayToEndTimeNotification")]
|
|
|
|
NSString FailedToPlayToEndTimeNotification { get; }
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKExtension {
|
|
|
|
[Static]
|
|
|
|
[Export ("sharedExtension")]
|
|
|
|
WKExtension SharedExtension { get; }
|
|
|
|
|
|
|
|
[Export ("openSystemURL:")]
|
|
|
|
void OpenSystemUrl (NSUrl url);
|
|
|
|
|
|
|
|
[Wrap ("WeakDelegate")]
|
|
|
|
[NullAllowed]
|
|
|
|
[Protocolize]
|
|
|
|
WKExtensionDelegate Delegate { get; set; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
|
|
|
|
NSObject WeakDelegate { get; set; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("rootInterfaceController")]
|
|
|
|
WKInterfaceController RootInterfaceController { get; }
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)]
|
|
|
|
[Export ("applicationState")]
|
|
|
|
WKApplicationState ApplicationState { get; }
|
2017-08-02 14:53:28 +03:00
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[NullAllowed, Export ("visibleInterfaceController")]
|
|
|
|
WKInterfaceController VisibleInterfaceController { get; }
|
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("isApplicationRunningInDock")]
|
|
|
|
bool IsApplicationRunningInDock { get; }
|
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("autorotating")]
|
|
|
|
bool Autorotating { [Bind ("isAutorotating")] get; set; }
|
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("frontmostTimeoutExtended")]
|
|
|
|
bool FrontmostTimeoutExtended { [Bind ("isFrontmostTimeoutExtended")] get; set; }
|
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("enableWaterLock")]
|
|
|
|
void EnableWaterLock ();
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Protocol]
|
|
|
|
[Model]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKExtensionDelegate {
|
|
|
|
[Export ("applicationDidFinishLaunching")]
|
|
|
|
void ApplicationDidFinishLaunching ();
|
|
|
|
|
|
|
|
[Export ("applicationDidBecomeActive")]
|
|
|
|
void ApplicationDidBecomeActive ();
|
|
|
|
|
|
|
|
[Export ("applicationWillResignActive")]
|
|
|
|
void ApplicationWillResignActive ();
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Watch (3,0)]
|
|
|
|
[Export ("applicationWillEnterForeground")]
|
|
|
|
void ApplicationWillEnterForeground ();
|
|
|
|
|
|
|
|
[Watch (3,0)]
|
|
|
|
[Export ("applicationDidEnterBackground")]
|
|
|
|
void ApplicationDidEnterBackground ();
|
|
|
|
|
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forRemoteNotification:")]
|
|
|
|
void HandleAction ([NullAllowed] string identifier, NSDictionary remoteNotification);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forLocalNotification:")]
|
|
|
|
void HandleAction ([NullAllowed] string identifier, UILocalNotification localNotification);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forRemoteNotification:withResponseInfo:")]
|
|
|
|
void HandleAction ([NullAllowed] string identifier, NSDictionary remoteNotification, NSDictionary responseInfo);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("handleActionWithIdentifier:forLocalNotification:withResponseInfo:")]
|
|
|
|
void HandleAction ([NullAllowed] string identifier, UILocalNotification localNotification, NSDictionary responseInfo);
|
|
|
|
|
|
|
|
[Export ("handleUserActivity:")]
|
|
|
|
void HandleUserActivity ([NullAllowed] NSDictionary userInfo);
|
|
|
|
|
2017-01-26 21:48:49 +03:00
|
|
|
[Watch (3,2)] // TODO: Check if this is equal/similar to HandleUserActivity once docs are available
|
|
|
|
[Export ("handleActivity:")]
|
|
|
|
void HandleUserActivity (NSUserActivity userActivity);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("didReceiveRemoteNotification:")]
|
|
|
|
void DidReceiveRemoteNotification (NSDictionary userInfo);
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
|
2016-04-21 15:30:02 +03:00
|
|
|
[Export ("didReceiveLocalNotification:")]
|
|
|
|
void DidReceiveLocalNotification (UILocalNotification notification);
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)]
|
|
|
|
[Export ("handleBackgroundTasks:")]
|
|
|
|
void HandleBackgroundTasks (NSSet<WKRefreshBackgroundTask> backgroundTasks);
|
|
|
|
|
|
|
|
[Watch (3,0)]
|
|
|
|
[Export ("handleWorkoutConfiguration:")]
|
|
|
|
void HandleWorkoutConfiguration (HKWorkoutConfiguration workoutConfiguration);
|
2017-08-02 14:53:28 +03:00
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("deviceOrientationDidChange")]
|
|
|
|
void DeviceOrientationDidChange ();
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (2,2), NoiOS]
|
|
|
|
[BaseType (typeof(WKInterfaceObject))]
|
2016-06-22 17:10:32 +03:00
|
|
|
[DisableDefaultCtor] // The super class' init method is unavailable.
|
2016-04-21 15:30:02 +03:00
|
|
|
interface WKInterfaceActivityRing
|
|
|
|
{
|
|
|
|
[Export ("setActivitySummary:animated:")]
|
|
|
|
void SetActivitySummary ([NullAllowed] HKActivitySummary activitySummary, bool animated);
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
2016-06-22 17:10:32 +03:00
|
|
|
[DisableDefaultCtor] // The super class' init method is unavailable.
|
2016-04-21 15:30:02 +03:00
|
|
|
interface WKInterfaceMovie {
|
|
|
|
[Export ("setMovieURL:")]
|
|
|
|
void SetMovieUrl (NSUrl url);
|
|
|
|
|
|
|
|
[Export ("setVideoGravity:")]
|
|
|
|
void SetVideoGravity (WKVideoGravity videoGravity);
|
|
|
|
|
|
|
|
[Export ("setLoops:")]
|
|
|
|
void SetLoops (bool loops);
|
|
|
|
|
|
|
|
[Export ("setPosterImage:")]
|
|
|
|
void SetPosterImage ([NullAllowed] WKImage posterImage);
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
2016-06-22 17:10:32 +03:00
|
|
|
[DisableDefaultCtor] // The super class' init method is unavailable.
|
2016-04-21 15:30:02 +03:00
|
|
|
interface WKInterfacePicker {
|
|
|
|
[Export ("focus")]
|
|
|
|
void Focus ();
|
|
|
|
|
|
|
|
[Export ("resignFocus")]
|
|
|
|
void ResignFocus ();
|
|
|
|
|
|
|
|
[Export ("setSelectedItemIndex:")]
|
|
|
|
void SetSelectedItem (nint itemIndex);
|
|
|
|
|
|
|
|
[Export ("setItems:")]
|
|
|
|
void SetItems ([NullAllowed] WKPickerItem[] items);
|
|
|
|
|
|
|
|
[Export ("setCoordinatedAnimations:")]
|
|
|
|
void SetCoordinatedAnimations ([NullAllowed] IWKImageAnimatable [] coordinatedAnimations);
|
|
|
|
|
|
|
|
[Export ("setEnabled:")]
|
|
|
|
void SetEnabled (bool enabled);
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKPickerItem : NSSecureCoding {
|
|
|
|
[NullAllowed, Export ("title")]
|
|
|
|
string Title { get; set; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("caption")]
|
|
|
|
string Caption { get; set; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("accessoryImage", ArgumentSemantic.Copy)]
|
|
|
|
WKImage AccessoryImage { get; set; }
|
|
|
|
|
|
|
|
[NullAllowed, Export ("contentImage", ArgumentSemantic.Copy)]
|
|
|
|
WKImage ContentImage { get; set; }
|
|
|
|
}
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[NoiOS]
|
2016-04-21 15:30:02 +03:00
|
|
|
[BaseType (typeof (WKAudioFilePlayer))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKAudioFileQueuePlayer {
|
|
|
|
[Static]
|
|
|
|
[Export ("queuePlayerWithItems:")]
|
|
|
|
WKAudioFileQueuePlayer FromItems (WKAudioFilePlayerItem[] items);
|
|
|
|
|
|
|
|
[Export ("advanceToNextItem")]
|
|
|
|
void AdvanceToNextItem ();
|
|
|
|
|
|
|
|
[Export ("appendItem:")]
|
|
|
|
void AppendItem (WKAudioFilePlayerItem item);
|
|
|
|
|
|
|
|
[Export ("removeItem:")]
|
|
|
|
void RemoveItem (WKAudioFilePlayerItem item);
|
|
|
|
|
|
|
|
[Export ("removeAllItems")]
|
|
|
|
void RemoveAllItems ();
|
|
|
|
|
|
|
|
[Export ("items")]
|
|
|
|
WKAudioFilePlayerItem[] Items { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
// to be made [Internal] once #34656 is fixed
|
|
|
|
[Static]
|
|
|
|
[Watch (2,0)][NoiOS]
|
|
|
|
interface WKMediaPlayerControllerOptionsKeys {
|
|
|
|
[Field ("WKMediaPlayerControllerOptionsAutoplayKey")]
|
|
|
|
NSString AutoplayKey { get; }
|
|
|
|
|
|
|
|
[Field ("WKMediaPlayerControllerOptionsStartTimeKey")]
|
|
|
|
NSString StartTimeKey { get; }
|
|
|
|
|
|
|
|
[Field ("WKMediaPlayerControllerOptionsVideoGravityKey")]
|
|
|
|
NSString VideoGravityKey { get; }
|
|
|
|
|
|
|
|
[Field ("WKMediaPlayerControllerOptionsLoopsKey")]
|
|
|
|
NSString LoopsKey { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
// to be made [Internal] once #34656 is fixed
|
|
|
|
[Static]
|
|
|
|
[Watch (2,0)][NoiOS]
|
|
|
|
interface WKAudioRecorderControllerOptionsKey {
|
|
|
|
[Field ("WKAudioRecorderControllerOptionsActionTitleKey")]
|
|
|
|
NSString ActionTitleKey { get; }
|
|
|
|
|
|
|
|
[Field ("WKAudioRecorderControllerOptionsAlwaysShowActionTitleKey")]
|
|
|
|
NSString AlwaysShowActionTitleKey { get; }
|
|
|
|
|
|
|
|
[Field ("WKAudioRecorderControllerOptionsAutorecordKey")]
|
|
|
|
NSString AutorecordKey { get; }
|
|
|
|
|
|
|
|
[Field ("WKAudioRecorderControllerOptionsMaximumDurationKey")]
|
|
|
|
NSString MaximumDurationKey { get; }
|
|
|
|
}
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKRefreshBackgroundTask {
|
|
|
|
|
|
|
|
[NullAllowed, Export ("userInfo")]
|
|
|
|
INSSecureCoding UserInfo { get; }
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'SetTaskCompleted (false)' instead.")]
|
2016-07-22 18:22:15 +03:00
|
|
|
[Export ("setTaskCompleted")]
|
|
|
|
void SetTaskCompleted ();
|
2017-08-02 14:53:28 +03:00
|
|
|
|
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("setTaskCompletedWithSnapshot:")]
|
|
|
|
void SetTaskCompleted (bool refreshSnapshot);
|
2016-07-22 18:22:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKRefreshBackgroundTask))]
|
|
|
|
interface WKApplicationRefreshBackgroundTask {
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKRefreshBackgroundTask))]
|
|
|
|
interface WKSnapshotRefreshBackgroundTask {
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'ReasonForSnapshot' instead.")]
|
2016-07-22 18:22:15 +03:00
|
|
|
[Export ("returnToDefaultState")]
|
|
|
|
bool ReturnToDefaultState { get; }
|
|
|
|
|
2017-08-02 14:53:28 +03:00
|
|
|
[Watch (4,0)]
|
|
|
|
[Export ("reasonForSnapshot")]
|
|
|
|
WKSnapshotReason ReasonForSnapshot { get; }
|
|
|
|
|
2016-07-22 18:22:15 +03:00
|
|
|
[Export ("setTaskCompletedWithDefaultStateRestored:estimatedSnapshotExpiration:userInfo:")]
|
2016-11-03 05:15:29 +03:00
|
|
|
void SetTaskCompleted (bool restoredDefaultState, [NullAllowed] NSDate estimatedSnapshotExpiration, [NullAllowed] INSSecureCoding userInfo);
|
2016-07-22 18:22:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
2016-08-02 21:43:33 +03:00
|
|
|
[BaseType (typeof (WKRefreshBackgroundTask), Name = "WKURLSessionRefreshBackgroundTask")]
|
|
|
|
interface WKUrlSessionRefreshBackgroundTask {
|
2016-07-22 18:22:15 +03:00
|
|
|
|
|
|
|
[Export ("sessionIdentifier")]
|
|
|
|
string SessionIdentifier { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKRefreshBackgroundTask))]
|
|
|
|
interface WKWatchConnectivityRefreshBackgroundTask {
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Category]
|
|
|
|
[BaseType (typeof (WKExtension))]
|
|
|
|
interface WKExtension_WKBackgroundTasks {
|
|
|
|
|
|
|
|
[Export ("scheduleBackgroundRefreshWithPreferredDate:userInfo:scheduledCompletion:")]
|
|
|
|
void ScheduleBackgroundRefresh (NSDate preferredFireDate, [NullAllowed] INSSecureCoding userInfo, Action<NSError> scheduledCompletion);
|
|
|
|
|
|
|
|
[Export ("scheduleSnapshotRefreshWithPreferredDate:userInfo:scheduledCompletion:")]
|
|
|
|
void ScheduleSnapshotRefresh (NSDate preferredFireDate, [NullAllowed] INSSecureCoding userInfo, Action<NSError> scheduledCompletion);
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[DisableDefaultCtor]
|
|
|
|
interface WKCrownSequencer {
|
|
|
|
|
|
|
|
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
|
|
|
|
IWKCrownDelegate Delegate { get; set; }
|
|
|
|
|
|
|
|
[Export ("rotationsPerSecond")]
|
|
|
|
double RotationsPerSecond { get; }
|
|
|
|
|
|
|
|
[Export ("idle")]
|
|
|
|
bool Idle { [Bind ("isIdle")] get; }
|
|
|
|
|
|
|
|
[Export ("focus")]
|
|
|
|
void Focus ();
|
|
|
|
|
|
|
|
[Export ("resignFocus")]
|
|
|
|
void ResignFocus ();
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IWKCrownDelegate {}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Protocol][Model]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKCrownDelegate {
|
|
|
|
[Export ("crownDidRotate:rotationalDelta:")]
|
|
|
|
void CrownDidRotate ([NullAllowed] WKCrownSequencer crownSequencer, double rotationalDelta);
|
|
|
|
|
|
|
|
[Export ("crownDidBecomeIdle:")]
|
|
|
|
void CrownDidBecomeIdle ([NullAllowed] WKCrownSequencer crownSequencer);
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[Abstract]
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
interface WKGestureRecognizer {
|
|
|
|
|
|
|
|
[Export ("state")]
|
|
|
|
WKGestureRecognizerState State { get; }
|
|
|
|
|
|
|
|
[Export ("enabled")]
|
|
|
|
bool Enabled { [Bind ("isEnabled")] get; set; }
|
|
|
|
|
|
|
|
[Export ("locationInObject")]
|
|
|
|
CGPoint LocationInObject { get; }
|
|
|
|
|
|
|
|
[Export ("objectBounds")]
|
|
|
|
CGRect ObjectBounds { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKGestureRecognizer))]
|
|
|
|
interface WKTapGestureRecognizer {
|
|
|
|
|
|
|
|
[Export ("numberOfTapsRequired")]
|
|
|
|
nuint NumberOfTapsRequired { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKGestureRecognizer))]
|
|
|
|
interface WKLongPressGestureRecognizer {
|
|
|
|
|
|
|
|
[Export ("minimumPressDuration")]
|
|
|
|
double MinimumPressDuration { get; set; }
|
|
|
|
|
|
|
|
[Export ("numberOfTapsRequired")]
|
|
|
|
nuint NumberOfTapsRequired { get; set; }
|
|
|
|
|
|
|
|
[Export ("allowableMovement")]
|
|
|
|
nfloat AllowableMovement { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKGestureRecognizer))]
|
|
|
|
interface WKSwipeGestureRecognizer {
|
|
|
|
|
|
|
|
[Export ("direction", ArgumentSemantic.Assign)]
|
|
|
|
WKSwipeGestureRecognizerDirection Direction { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKGestureRecognizer))]
|
|
|
|
interface WKPanGestureRecognizer {
|
|
|
|
[Export ("translationInObject")]
|
|
|
|
CGPoint TranslationInObject { get; }
|
|
|
|
|
|
|
|
[Export ("velocityInObject")]
|
|
|
|
CGPoint VelocityInObject { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
interface WKInterfaceHMCamera {
|
|
|
|
|
|
|
|
[Export ("setCameraSource:")]
|
|
|
|
void SetCameraSource ([NullAllowed] HMCameraSource cameraSource);
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
interface WKInterfaceInlineMovie {
|
|
|
|
|
|
|
|
[Export ("setMovieURL:")]
|
|
|
|
void SetMovieUrl (NSUrl url);
|
|
|
|
|
|
|
|
[Export ("setVideoGravity:")]
|
|
|
|
void SetVideoGravity (WKVideoGravity videoGravity);
|
|
|
|
|
|
|
|
[Export ("setLoops:")]
|
|
|
|
void SetLoops (bool loops);
|
|
|
|
|
|
|
|
[Export ("setAutoplays:")]
|
|
|
|
void SetAutoplays (bool autoplays);
|
|
|
|
|
|
|
|
[Export ("setPosterImage:")]
|
|
|
|
void SetPosterImage ([NullAllowed] WKImage posterImage);
|
|
|
|
|
|
|
|
[Export ("play")]
|
|
|
|
void Play ();
|
|
|
|
|
|
|
|
[Export ("playFromBeginning")]
|
|
|
|
void PlayFromBeginning ();
|
|
|
|
|
|
|
|
[Export ("pause")]
|
|
|
|
void Pause ();
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
interface WKInterfacePaymentButton {
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
2016-08-06 17:59:16 +03:00
|
|
|
interface WKInterfaceSCNScene : SCNSceneRenderer {
|
2016-07-22 18:22:15 +03:00
|
|
|
|
2016-08-06 17:59:16 +03:00
|
|
|
[Export ("snapshot")]
|
2016-07-22 18:22:15 +03:00
|
|
|
UIImage GetSnapshot ();
|
|
|
|
|
|
|
|
[Export ("preferredFramesPerSecond")]
|
|
|
|
nint PreferredFramesPerSecond { get; set; }
|
|
|
|
|
|
|
|
[Export ("antialiasingMode", ArgumentSemantic.Assign)]
|
|
|
|
SCNAntialiasingMode AntialiasingMode { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
[Watch (3,0)][NoiOS]
|
|
|
|
[BaseType (typeof (WKInterfaceObject))]
|
|
|
|
[DisableDefaultCtor] // Do not subclass or create instances of this class yourself. -> Handle is nil if init is called
|
|
|
|
interface WKInterfaceSKScene {
|
|
|
|
|
|
|
|
[Export ("paused")]
|
|
|
|
bool Paused { [Bind ("isPaused")] get; set; }
|
|
|
|
|
|
|
|
[Export ("preferredFramesPerSecond")]
|
|
|
|
nint PreferredFramesPerSecond { get; set; }
|
|
|
|
|
|
|
|
[Export ("presentScene:")]
|
|
|
|
void PresentScene ([NullAllowed] SKScene scene);
|
|
|
|
|
|
|
|
[Export ("presentScene:transition:")]
|
|
|
|
void PresentScene (SKScene scene, SKTransition transition);
|
|
|
|
|
|
|
|
[NullAllowed, Export ("scene")]
|
|
|
|
SKScene Scene { get; }
|
|
|
|
|
|
|
|
[Export ("textureFromNode:")]
|
|
|
|
[return: NullAllowed]
|
|
|
|
SKTexture CreateTexture (SKNode node);
|
|
|
|
|
|
|
|
[Export ("textureFromNode:crop:")]
|
|
|
|
[return: NullAllowed]
|
|
|
|
SKTexture CreateTexture (SKNode node, CGRect crop);
|
|
|
|
}
|
2016-04-21 15:30:02 +03:00
|
|
|
}
|