xamarin-macios/src/watchkit.cs

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

2016-04-21 15:30:02 +03:00
//
// This file describes the API that the generator will produce
//
// Authors:
// Miguel de Icaza
//
// Copyrigh 2014-2016, Xamarin Inc.
2016-04-21 15:30:02 +03:00
//
//
using ObjCRuntime;
using Foundation;
using CoreGraphics;
using CoreLocation;
using HealthKit;
using HomeKit;
2018-06-11 15:31:52 +03:00
using Intents;
using PassKit;
using SpriteKit;
using SceneKit;
using UIKit;
using MapKit;
using UserNotifications;
2016-04-21 15:30:02 +03:00
using System;
using System.ComponentModel;
namespace WatchKit {
2016-04-21 15:30:02 +03:00
[iOS (8,2)]
[BaseType (typeof (NSObject))]
[Abstract] // <quote>To use this class, subclass it</quote>
[DisableDefaultCtor] // DesignatedInitializer below
2016-04-21 15:30:02 +03:00
interface WKInterfaceController {
[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);
[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);
[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);
[iOS (10,0)]
[NoWatch]
[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 ();
2018-06-11 15:31:52 +03:00
[Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'UpdateUserActivity(NSUserActivity)' instead.")]
2016-04-21 15:30:02 +03:00
[Export ("updateUserActivity:userInfo:webpageURL:")]
// This NSDictionary is OK, it is arbitrary and user specific
void UpdateUserActivity (string type, [NullAllowed] NSDictionary userInfo, [NullAllowed] NSUrl webpageURL);
2018-06-11 15:31:52 +03:00
[Watch (5,0)][ NoiOS]
[Export ("updateUserActivity:")]
void UpdateUserActivity (NSUserActivity userActivity);
2016-04-21 15:30:02 +03:00
[Export ("invalidateUserActivity")]
void InvalidateUserActivity ();
[ThreadSafe (false)]
[Export ("presentTextInputControllerWithSuggestions:allowedInputMode:completion:")]
[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:")]
[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:")]
[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:")]
[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:")]
[Async (ResultType = typeof (WKPresentMediaPlayerResult))]
2016-04-21 15:30:02 +03:00
void PresentMediaPlayerController (NSUrl url, [NullAllowed] NSDictionary options, Action<bool, double, NSError> completion);
[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))]
[DisableDefaultCtor] // DesignatedInitializer below
2016-04-21 15:30:02 +03:00
interface WKUserNotificationInterfaceController {
[DesignatedInitializer]
[Export ("init")]
IntPtr Constructor ();
[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);
[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);
2018-06-11 15:31:52 +03:00
[Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'DidReceiveNotification(UNNotification)' instead.")]
[Watch (3,0)][iOS (10,0)]
[Export ("didReceiveNotification:withCompletion:")]
void DidReceiveNotification (UNNotification notification, Action<WKUserNotificationInterfaceType> completionHandler);
[NoiOS]
[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);
[NoiOS]
[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);
[Watch (3,0)][NoiOS]
[Export ("suggestionsForResponseToActionWithIdentifier:forNotification:inputLanguage:")]
string[] GetSuggestionsForResponseToAction (string identifier, UNNotification notification, string inputLanguage);
2018-06-11 15:31:52 +03:00
[Watch (5,0)][NoiOS]
[Export ("notificationActions", ArgumentSemantic.Copy)]
UNNotificationAction[] NotificationActions { get; set; }
[Watch (5,0)][NoiOS]
[Export ("didReceiveNotification:")]
void DidReceiveNotification (UNNotification notification);
[Watch (5,0)][NoiOS]
[Export ("performNotificationDefaultAction")]
void PerformNotificationDefaultAction ();
[Watch (5,0)][NoiOS]
[Export ("performDismissAction")]
void PerformDismissAction ();
[Deprecated (PlatformName.WatchOS, 5,0, message: "Use 'PerformDismissAction' instead.")]
[Watch (2,0)]
[Export ("dismissController")]
void DismissController ();
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);
[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);
[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 ();
}
[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; }
}
[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);
}
[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; }
}
[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; }
}
[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")]
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; }
}
[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; }
[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,2)]
[Export ("autorotated")]
bool Autorotated { [Bind ("isAutorotated")] get; }
2017-08-02 14:53:28 +03:00
[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
}
[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 ();
[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);
[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);
[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);
[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);
[Watch (3,2)] // TODO: Check if this is equal/similar to HandleUserActivity once docs are available
[Export ("handleActivity:")]
void HandleUserActivity (NSUserActivity userActivity);
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
2016-04-21 15:30:02 +03:00
[Export ("didReceiveRemoteNotification:")]
void DidReceiveRemoteNotification (NSDictionary userInfo);
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
2016-04-21 15:30:02 +03:00
[Export ("didReceiveLocalNotification:")]
void DidReceiveLocalNotification (UILocalNotification notification);
[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 ();
2018-06-11 15:31:52 +03:00
[Watch (5,0)]
[Export ("handleActiveWorkoutRecovery")]
void HandleActiveWorkoutRecovery ();
[Watch (5,0)]
[Export ("handleRemoteNowPlayingActivity")]
void HandleRemoteNowPlayingActivity ();
[Watch (5,0)]
[Export ("handleIntent:completionHandler:")]
void HandleIntent (INIntent intent, Action<INIntentResponse> completionHandler);
2016-04-21 15:30:02 +03:00
}
[Watch (2,2), NoiOS]
[BaseType (typeof(WKInterfaceObject))]
[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);
}
[NoiOS]
2016-04-21 15:30:02 +03:00
[BaseType (typeof (WKInterfaceObject))]
[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);
}
[NoiOS]
2016-04-21 15:30:02 +03:00
[BaseType (typeof (WKInterfaceObject))]
[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);
}
[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; }
}
[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; }
}
[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.")]
[Export ("setTaskCompleted")]
void SetTaskCompleted ();
2017-08-02 14:53:28 +03:00
[Watch (4,0)]
[Export ("setTaskCompletedWithSnapshot:")]
void SetTaskCompleted (bool refreshSnapshot);
}
[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.")]
[Export ("returnToDefaultState")]
bool ReturnToDefaultState { get; }
2017-08-02 14:53:28 +03:00
[Watch (4,0)]
[Export ("reasonForSnapshot")]
WKSnapshotReason ReasonForSnapshot { get; }
[Export ("setTaskCompletedWithDefaultStateRestored:estimatedSnapshotExpiration:userInfo:")]
void SetTaskCompleted (bool restoredDefaultState, [NullAllowed] NSDate estimatedSnapshotExpiration, [NullAllowed] INSSecureCoding userInfo);
}
[Watch (3,0)][NoiOS]
[BaseType (typeof (WKRefreshBackgroundTask), Name = "WKURLSessionRefreshBackgroundTask")]
interface WKUrlSessionRefreshBackgroundTask {
[Export ("sessionIdentifier")]
string SessionIdentifier { get; }
}
[Watch (3,0)][NoiOS]
[BaseType (typeof (WKRefreshBackgroundTask))]
interface WKWatchConnectivityRefreshBackgroundTask {
}
2018-06-11 15:31:52 +03:00
[Watch (5,0)][NoiOS]
[BaseType (typeof (WKRefreshBackgroundTask))]
interface WKRelevantShortcutRefreshBackgroundTask {
}
[Watch (5,0)][NoiOS]
[BaseType (typeof (WKRefreshBackgroundTask))]
interface WKIntentDidRunRefreshBackgroundTask {
}
[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
interface WKInterfaceSCNScene : SCNSceneRenderer {
[Export ("snapshot")]
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);
}
[Watch (5,0)][NoiOS]
[BaseType (typeof (WKInterfaceObject))]
[DisableDefaultCtor]
interface WKInterfaceVolumeControl {
[Export ("setTintColor:")]
void SetTintColor ([NullAllowed] UIColor tintColor);
}
2016-04-21 15:30:02 +03:00
}