From 5b34e4d92bbde338144db533c069717ab4ac92b1 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Mon, 19 Sep 2022 14:11:34 +0300 Subject: [PATCH 01/73] * ios16 bindings: Foundation processed --- .../src/main/bro-gen/foundation.yaml | 9 +- .../apple/foundation/NSActivityOptions.java | 12 +++ .../apple/foundation/NSAttributedString.java | 5 ++ ...ttributedStringMarkdownParsingOptions.java | 10 +++ ...ttributedStringMarkdownSourcePosition.java | 86 +++++++++++++++++++ .../apple/foundation/NSCocoaErrorCode.java | 4 + .../robovm/apple/foundation/NSInvocation.java | 2 + .../apple/foundation/NSMutableURLRequest.java | 10 +++ .../apple/foundation/NSURLComponents.java | 18 ++++ .../foundation/NSURLSessionConfiguration.java | 10 +++ .../foundation/NSURLSessionTaskDelegate.java | 5 ++ .../NSURLSessionTaskDelegateAdapter.java | 5 ++ .../apple/foundation/NSXPCConnection.java | 5 ++ .../apple/foundation/NSXPCListener.java | 5 ++ 14 files changed, 184 insertions(+), 2 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownSourcePosition.java diff --git a/compiler/cocoatouch/src/main/bro-gen/foundation.yaml b/compiler/cocoatouch/src/main/bro-gen/foundation.yaml index e6712aae8..087be17f3 100755 --- a/compiler/cocoatouch/src/main/bro-gen/foundation.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/foundation.yaml @@ -4454,7 +4454,10 @@ classes: name: createTableRowIntent '+tableCellIntentWithIdentity:column:nestedInsideIntent:': name: createTableCellIntent - + NSAttributedStringMarkdownSourcePosition: #since 16.0 + methods: + '-initWithStartLine:startColumn:endLine:endColumn:': + name: init protocols: NSCacheDelegate: # DONE @@ -4800,6 +4803,8 @@ protocols: name: willBeginDelayedRequest '-URLSession:taskIsWaitingForConnectivity:': name: taskIsWaitingForConnectivity + '-URLSession:didCreateTask:': + name: didCreateTask NSUserActivityDelegate: # DONE methods: '-userActivityWillSave:': @@ -5836,7 +5841,7 @@ values: class: NSAttributedString static_class: KeysNSBundle name: '#{g[0]}' - NS(ReplacementIndex|Morphology|InflectionRule|InflectionAlternative|PresentationIntent)AttributeName: + NS(ReplacementIndex|Morphology|InflectionRule|InflectionAlternative|PresentationIntent|MarkdownSourcePosition)AttributeName: class: NSAttributedString static_class: Keys name: '#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSActivityOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSActivityOptions.java index 14d367533..2a3bc710d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSActivityOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSActivityOptions.java @@ -49,10 +49,22 @@ public final class /**/NSActivityOptions/**/ extends Bits* public static final NSActivityOptions IdleSystemSleepDisabled = new NSActivityOptions(1048576L); public static final NSActivityOptions SuddenTerminationDisabled = new NSActivityOptions(16384L); public static final NSActivityOptions AutomaticTerminationDisabled = new NSActivityOptions(32768L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NSActivityOptions AnimationTrackingEnabled = new NSActivityOptions(35184372088832L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NSActivityOptions TrackingEnabled = new NSActivityOptions(70368744177664L); public static final NSActivityOptions UserInitiated = new NSActivityOptions(16777215L); public static final NSActivityOptions UserInitiatedAllowingIdleSystemSleep = new NSActivityOptions(15728639L); public static final NSActivityOptions Background = new NSActivityOptions(255L); public static final NSActivityOptions LatencyCritical = new NSActivityOptions(1095216660480L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NSActivityOptions UserInteractive = new NSActivityOptions(1095233437695L); /**/ private static final /**/NSActivityOptions/**/[] values = _values(/**/NSActivityOptions/**/.class); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedString.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedString.java index 6ce185799..8f14f4aff 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedString.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedString.java @@ -403,6 +403,11 @@ public void endEditing() { public static class Keys { static { Bro.bind(Keys.class); } + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NSMarkdownSourcePositionAttributeName", optional=true) + public static native NSString MarkdownSourcePosition(); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownParsingOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownParsingOptions.java index b9ec6d107..bc407655b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownParsingOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownParsingOptions.java @@ -73,6 +73,16 @@ public NSAttributedStringMarkdownParsingOptions() {} public native String getLanguageCode(); @Property(selector = "setLanguageCode:") public native void setLanguageCode(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "appliesSourcePositionAttributes") + public native boolean appliesSourcePositionAttributes(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAppliesSourcePositionAttributes:") + public native void setAppliesSourcePositionAttributes(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownSourcePosition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownSourcePosition.java new file mode 100644 index 000000000..bd00c47f4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSAttributedStringMarkdownSourcePosition.java @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.foundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.security.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Foundation") @NativeClass/**/ +/**/public/**/ class /**/NSAttributedStringMarkdownSourcePosition/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class NSAttributedStringMarkdownSourcePositionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NSAttributedStringMarkdownSourcePosition.class); }/**/ + /**//**/ + /**/ + public NSAttributedStringMarkdownSourcePosition() {} + protected NSAttributedStringMarkdownSourcePosition(Handle h, long handle) { super(h, handle); } + protected NSAttributedStringMarkdownSourcePosition(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithStartLine:startColumn:endLine:endColumn:") + public NSAttributedStringMarkdownSourcePosition(@MachineSizedSInt long startLine, @MachineSizedSInt long startColumn, @MachineSizedSInt long endLine, @MachineSizedSInt long endColumn) { super((SkipInit) null); initObject(init(startLine, startColumn, endLine, endColumn)); } + @Method(selector = "initWithCoder:") + public NSAttributedStringMarkdownSourcePosition(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "startLine") + public native @MachineSizedSInt long getStartLine(); + @Property(selector = "startColumn") + public native @MachineSizedSInt long getStartColumn(); + @Property(selector = "endLine") + public native @MachineSizedSInt long getEndLine(); + @Property(selector = "endColumn") + public native @MachineSizedSInt long getEndColumn(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithStartLine:startColumn:endLine:endColumn:") + protected native @Pointer long init(@MachineSizedSInt long startLine, @MachineSizedSInt long startColumn, @MachineSizedSInt long endLine, @MachineSizedSInt long endColumn); + @Method(selector = "rangeInString:") + public native @ByVal NSRange rangeInString(String string); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSCocoaErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSCocoaErrorCode.java index 50a74fd82..e22f1d8b2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSCocoaErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSCocoaErrorCode.java @@ -91,6 +91,10 @@ public enum /**/NSCocoaErrorCode/**/ implements NSErrorCode { XPCConnectionInterrupted(4097L), XPCConnectionInvalid(4099L), XPCConnectionReplyInvalid(4101L), + /** + * @since Available in iOS 16.0 and later. + */ + XPCConnectionCodeSigningRequirementFailure(4102L), XPCConnectionErrorMinimum(4096L), XPCConnectionErrorMaximum(4224L), UbiquitousFileUnavailable(4353L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSInvocation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSInvocation.java index d61bc6519..7421548d6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSInvocation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSInvocation.java @@ -85,6 +85,8 @@ public NSInvocation() {} public native void invoke(); @Method(selector = "invokeWithTarget:") public native void invoke(NSObject target); + @Method(selector = "invokeUsingIMP:") + public native void invokeUsingIMP(FunctionPtr imp); @Method(selector = "invocationWithMethodSignature:") protected static native @Pointer long create(NSMethodSignature sig); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSMutableURLRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSMutableURLRequest.java index d2e578070..16ae25e87 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSMutableURLRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSMutableURLRequest.java @@ -113,6 +113,16 @@ public NSMutableURLRequest() {} */ @Property(selector = "setAssumesHTTP3Capable:") public native void setAssumesHTTP3Capable(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "requiresDNSSECValidation") + public native boolean requiresDNSSECValidation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRequiresDNSSECValidation:") + public native void setRequiresDNSSECValidation(boolean v); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLComponents.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLComponents.java index 47a1b22f6..b445415e1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLComponents.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLComponents.java @@ -103,8 +103,16 @@ public NSURLComponents() {} public native String getPercentEncodedPassword(); @Property(selector = "setPercentEncodedPassword:") public native void setPercentEncodedPassword(String v); + /** + * @deprecated Use encodedHost instead + */ + @Deprecated @Property(selector = "percentEncodedHost") public native String getPercentEncodedHost(); + /** + * @deprecated Use encodedHost instead + */ + @Deprecated @Property(selector = "setPercentEncodedHost:") public native void setPercentEncodedHost(String v); @Property(selector = "percentEncodedPath") @@ -119,6 +127,16 @@ public NSURLComponents() {} public native String getPercentEncodedFragment(); @Property(selector = "setPercentEncodedFragment:") public native void setPercentEncodedFragment(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "encodedHost") + public native String getEncodedHost(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setEncodedHost:") + public native void setEncodedHost(String v); /** * @since Available in iOS 9.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionConfiguration.java index b239fc3a6..108dc35b6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionConfiguration.java @@ -102,6 +102,16 @@ public NSURLSessionConfiguration() {} */ @Property(selector = "setAllowsConstrainedNetworkAccess:") public native void setAllowsConstrainedNetworkAccess(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "requiresDNSSECValidation") + public native boolean requiresDNSSECValidation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRequiresDNSSECValidation:") + public native void setRequiresDNSSECValidation(boolean v); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegate.java index 500817c55..7db8690ac 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegate.java @@ -54,6 +54,11 @@ /**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "URLSession:didCreateTask:") + void didCreateTask(NSURLSession session, NSURLSessionTask task); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegateAdapter.java index 8c4e8ca72..8235c73e6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLSessionTaskDelegateAdapter.java @@ -56,6 +56,11 @@ /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("URLSession:didCreateTask:") + public void didCreateTask(NSURLSession session, NSURLSessionTask task) {} /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCConnection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCConnection.java index 5d9c9321b..b7b9a4f1a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCConnection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCConnection.java @@ -107,6 +107,11 @@ public NSXPCConnection() {} public native void resume(); @Method(selector = "suspend") public native void suspend(); + /** + * @since Available in iOS 14.0 and later. + */ + @Method(selector = "activate") + public native void activate(); @Method(selector = "invalidate") public native void invalidate(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCListener.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCListener.java index a4f4e2777..0da936c01 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCListener.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSXPCListener.java @@ -68,6 +68,11 @@ public NSXPCListener() {} public native void resume(); @Method(selector = "suspend") public native void suspend(); + /** + * @since Available in iOS 14.0 and later. + */ + @Method(selector = "activate") + public native void activate(); @Method(selector = "invalidate") public native void invalidate(); @Method(selector = "serviceListener") From 8798a34a81297cd4d699d74403ddf46838907dab Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:26:36 +0300 Subject: [PATCH 02/73] * ios16 bindings: UIKit processed --- .../cocoatouch/src/main/bro-gen/uikit.yaml | 330 +++++++++++++++++- .../apple/uikit/NSCollectionLayoutGroup.java | 28 +- .../uikit/NSCollectionLayoutSection.java | 28 +- .../apple/uikit/NSMutableParagraphStyle.java | 4 + .../robovm/apple/uikit/NSParagraphStyle.java | 2 + .../org/robovm/apple/uikit/NSTextElement.java | 15 + .../org/robovm/apple/uikit/NSTextList.java | 102 ++++++ .../robovm/apple/uikit/NSTextListElement.java | 88 +++++ .../apple/uikit/NSTextListMarkerFormat.java | 179 ++++++++++ .../robovm/apple/uikit/NSTextListOptions.java | 72 ++++ .../java/org/robovm/apple/uikit/UIAction.java | 9 +- .../robovm/apple/uikit/UIActivityType.java | 10 + .../robovm/apple/uikit/UIAlertController.java | 10 + .../uikit/UIAlertControllerSeverity.java | 74 ++++ .../uikit/UIApplicationLaunchOptions.java | 12 + .../robovm/apple/uikit/UIBarButtonItem.java | 79 ++++- .../apple/uikit/UIBarButtonItemGroup.java | 45 +++ .../java/org/robovm/apple/uikit/UIButton.java | 10 + .../apple/uikit/UIButtonConfiguration.java | 20 ++ .../uikit/UIButtonConfigurationIndicator.java | 75 ++++ .../apple/uikit/UICalendarSelection.java | 70 ++++ .../uikit/UICalendarSelectionMultiDate.java | 79 +++++ .../UICalendarSelectionMultiDateDelegate.java | 73 ++++ ...ndarSelectionMultiDateDelegateAdapter.java | 71 ++++ .../uikit/UICalendarSelectionSingleDate.java | 79 +++++ ...UICalendarSelectionSingleDateDelegate.java | 69 ++++ ...darSelectionSingleDateDelegateAdapter.java | 67 ++++ .../robovm/apple/uikit/UICalendarView.java | 124 +++++++ .../apple/uikit/UICalendarViewDecoration.java | 82 +++++ .../uikit/UICalendarViewDecorationSize.java | 75 ++++ .../apple/uikit/UICalendarViewDelegate.java | 67 ++++ .../uikit/UICalendarViewDelegateAdapter.java | 65 ++++ .../apple/uikit/UICellAccessoryPopUpMenu.java | 83 +++++ .../robovm/apple/uikit/UICollectionView.java | 10 + .../apple/uikit/UICollectionViewCell.java | 5 + .../uikit/UICollectionViewController.java | 55 ++- .../apple/uikit/UICollectionViewDelegate.java | 55 ++- .../UICollectionViewDelegateAdapter.java | 55 ++- .../apple/uikit/UICollectionViewModel.java | 52 ++- ...ICollectionViewSelfSizingInvalidation.java | 75 ++++ .../org/robovm/apple/uikit/UICommand.java | 11 +- .../org/robovm/apple/uikit/UIContentView.java | 6 +- .../apple/uikit/UIContentViewAdapter.java | 6 +- .../uikit/UIContextMenuConfiguration.java | 30 ++ ...IContextMenuConfigurationElementOrder.java | 75 ++++ .../UIContextMenuInteractionDelegate.java | 28 +- ...ContextMenuInteractionDelegateAdapter.java | 28 +- .../org/robovm/apple/uikit/UIControl.java | 10 + .../apple/uikit/UIDataDetectorTypes.java | 8 + .../UIDocumentBrowserViewController.java | 5 + .../apple/uikit/UIDocumentProperties.java | 91 +++++ .../apple/uikit/UIEditMenuArrowDirection.java | 77 ++++ .../apple/uikit/UIEditMenuConfiguration.java | 78 +++++ .../apple/uikit/UIEditMenuInteraction.java | 89 +++++ .../uikit/UIEditMenuInteractionAnimating.java | 69 ++++ ...UIEditMenuInteractionAnimatingAdapter.java | 67 ++++ .../uikit/UIEditMenuInteractionDelegate.java | 73 ++++ .../UIEditMenuInteractionDelegateAdapter.java | 71 ++++ .../robovm/apple/uikit/UIFindInteraction.java | 105 ++++++ .../uikit/UIFindInteractionDelegate.java | 71 ++++ .../UIFindInteractionDelegateAdapter.java | 69 ++++ .../org/robovm/apple/uikit/UIFindSession.java | 96 +++++ ...UIFindSessionSearchResultDisplayStyle.java | 73 ++++ .../robovm/apple/uikit/UIFocusDebugger.java | 6 +- .../java/org/robovm/apple/uikit/UIFont.java | 5 + .../org/robovm/apple/uikit/UIFontWidth.java | 164 +++++++++ .../java/org/robovm/apple/uikit/UIImage.java | 10 + .../uikit/UIImageSymbolConfiguration.java | 5 + .../java/org/robovm/apple/uikit/UILabel.java | 4 - .../org/robovm/apple/uikit/UILayoutGuide.java | 2 +- .../uikit/UILayoutGuideAspectFitting.java | 67 ++++ .../UILayoutGuideAspectFittingAdapter.java | 67 ++++ .../robovm/apple/uikit/UIListContentView.java | 5 + .../java/org/robovm/apple/uikit/UIMenu.java | 10 + .../robovm/apple/uikit/UIMenuController.java | 26 +- .../uikit/UIMenuControllerArrowDirection.java | 6 +- .../apple/uikit/UIMenuElementAttributes.java | 4 + .../robovm/apple/uikit/UIMenuElementSize.java | 75 ++++ .../robovm/apple/uikit/UIMenuIdentifier.java | 11 +- .../org/robovm/apple/uikit/UIMenuItem.java | 6 +- .../org/robovm/apple/uikit/UIMenuLeaf.java | 93 +++++ .../robovm/apple/uikit/UIMenuLeafAdapter.java | 91 +++++ .../robovm/apple/uikit/UINavigationBar.java | 20 ++ .../apple/uikit/UINavigationBarDelegate.java | 2 + .../uikit/UINavigationBarDelegateAdapter.java | 2 + .../UINavigationBarNSToolbarSection.java | 76 ++++ .../robovm/apple/uikit/UINavigationItem.java | 130 +++++++ .../uikit/UINavigationItemRenameDelegate.java | 73 ++++ ...UINavigationItemRenameDelegateAdapter.java | 71 ++++ .../UINavigationItemSearchBarPlacement.java | 75 ++++ .../apple/uikit/UINavigationItemStyle.java | 75 ++++ .../org/robovm/apple/uikit/UIPageControl.java | 30 ++ .../apple/uikit/UIPageControlDirection.java | 77 ++++ .../robovm/apple/uikit/UIPasteControl.java | 103 ++++++ .../uikit/UIPasteControlConfiguration.java | 95 +++++ .../uikit/UIPasteControlDisplayMode.java | 75 ++++ .../apple/uikit/UIPencilPreferredAction.java | 6 +- .../UIPopoverPresentationController.java | 18 + ...poverPresentationControllerSourceItem.java | 66 ++++ ...esentationControllerSourceItemAdapter.java | 64 ++++ .../robovm/apple/uikit/UIPrintFormatter.java | 5 + .../org/robovm/apple/uikit/UIResponder.java | 45 +++ .../uikit/UIResponderStandardEditActions.java | 45 +++ ...UIResponderStandardEditActionsAdapter.java | 45 +++ .../robovm/apple/uikit/UISceneErrorCode.java | 10 +- .../apple/uikit/UISceneSessionRole.java | 15 +- .../uikit/UISceneWindowingBehaviors.java | 76 ++++ .../java/org/robovm/apple/uikit/UIScreen.java | 36 ++ .../UIScreenReferenceDisplayModeStatus.java | 76 ++++ .../org/robovm/apple/uikit/UIScrollView.java | 6 - .../UIScrollViewKeyboardDismissMode.java | 4 +- .../apple/uikit/UISearchController.java | 39 +++ .../uikit/UISearchControllerDelegate.java | 10 + .../UISearchControllerDelegateAdapter.java | 10 + .../UISearchControllerScopeBarActivation.java | 76 ++++ .../apple/uikit/UISearchResultsUpdating.java | 5 + .../uikit/UISearchResultsUpdatingAdapter.java | 5 + .../apple/uikit/UISearchSuggestion.java | 86 +++++ .../uikit/UISearchSuggestionAdapter.java | 84 +++++ .../apple/uikit/UISearchSuggestionItem.java | 130 +++++++ .../robovm/apple/uikit/UISearchTextField.java | 10 + .../uikit/UISearchTextFieldDelegate.java | 5 + .../UISearchTextFieldDelegateAdapter.java | 5 + .../uikit/UISheetPresentationController.java | 5 + .../UISheetPresentationControllerDetent.java | 22 +- ...tionControllerDetentResolutionContext.java | 69 ++++ ...trollerDetentResolutionContextAdapter.java | 67 ++++ .../org/robovm/apple/uikit/UITabBarItem.java | 2 +- .../org/robovm/apple/uikit/UITableView.java | 10 + .../robovm/apple/uikit/UITableViewCell.java | 5 + .../apple/uikit/UITableViewController.java | 10 + .../apple/uikit/UITableViewDelegate.java | 10 + .../uikit/UITableViewDelegateAdapter.java | 10 + .../uikit/UITableViewHeaderFooterView.java | 5 + .../robovm/apple/uikit/UITableViewModel.java | 22 +- .../UITableViewSelfSizingInvalidation.java | 75 ++++ .../org/robovm/apple/uikit/UITextField.java | 15 + .../apple/uikit/UITextFieldDelegate.java | 15 + .../uikit/UITextFieldDelegateAdapter.java | 15 + .../org/robovm/apple/uikit/UITextInput.java | 15 + .../apple/uikit/UITextInputAdapter.java | 15 + .../apple/uikit/UITextSearchAggregator.java | 74 ++++ .../uikit/UITextSearchAggregatorAdapter.java | 72 ++++ .../uikit/UITextSearchFoundTextStyle.java | 75 ++++ .../apple/uikit/UITextSearchMatchMethod.java | 73 ++++ .../apple/uikit/UITextSearchOptions.java | 72 ++++ .../robovm/apple/uikit/UITextSearching.java | 90 +++++ .../apple/uikit/UITextSearchingAdapter.java | 88 +++++ .../uikit/UITextSearchingFindSession.java | 73 ++++ .../org/robovm/apple/uikit/UITextView.java | 72 +++- .../apple/uikit/UITextViewDelegate.java | 15 + .../uikit/UITextViewDelegateAdapter.java | 15 + .../java/org/robovm/apple/uikit/UIView.java | 27 +- .../robovm/apple/uikit/UIViewController.java | 28 ++ .../java/org/robovm/apple/uikit/UIWindow.java | 9 +- .../org/robovm/apple/uikit/UIWindowScene.java | 16 +- .../apple/uikit/UIWindowSceneGeometry.java | 70 ++++ .../UIWindowSceneGeometryPreferences.java | 69 ++++ .../UIWindowSceneGeometryPreferencesIOS.java | 75 ++++ 159 files changed, 7580 insertions(+), 102 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextList.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListMarkerFormat.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertControllerSeverity.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfigurationIndicator.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelection.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarView.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecoration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecorationSize.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICellAccessoryPopUpMenu.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewSelfSizingInvalidation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfigurationElementOrder.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentProperties.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuArrowDirection.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuConfiguration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteraction.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimating.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimatingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteraction.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSession.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSessionSearchResultDisplayStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFontWidth.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFitting.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFittingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementSize.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeaf.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeafAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarNSToolbarSection.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemSearchBarPlacement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControlDirection.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControl.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlConfiguration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlDisplayMode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItem.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItemAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneWindowingBehaviors.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreenReferenceDisplayModeStatus.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerScopeBarActivation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestion.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionItem.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContext.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContextAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewSelfSizingInvalidation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregator.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregatorAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchFoundTextStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchMatchMethod.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearching.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingFindSession.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometry.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferences.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesIOS.java diff --git a/compiler/cocoatouch/src/main/bro-gen/uikit.yaml b/compiler/cocoatouch/src/main/bro-gen/uikit.yaml index f57d19184..854a1e6e4 100644 --- a/compiler/cocoatouch/src/main/bro-gen/uikit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/uikit.yaml @@ -23,6 +23,7 @@ typedefs: private_typedefs: AnchorType: NSObject UIScribbleElementIdentifier: NSObject + UITextSearchDocumentIdentifier: NSObject UTType: org.robovm.apple.uniformtypeid.UTType enums: @@ -37,6 +38,7 @@ enums: NSTextLayoutOrientation: {} NSTextStorageEditActions: {} NSTextWritingDirection: {} + NSTextListOptions: {prefix: NSTextList} NSUnderlineStyle: {} NSWritingDirection: {} UIAccessibilityCustomRotorDirection: {} @@ -320,6 +322,25 @@ enums: NSTextLayoutManagerSegmentType: {} #since 15.0 NSTextLayoutManagerSegmentOptions: {} #since 15.0 + UIMenuElementSize: {} #since 16.0 + UIContextMenuConfigurationElementOrder: {} #since 16.0 + UIAlertControllerSeverity: {} #since 16.0 + UIButtonConfigurationIndicator: {} #since 16.0 + UICollectionViewSelfSizingInvalidation: {} #since 16.0 + UITableViewSelfSizingInvalidation: {} #since 16.0 + UINavigationItemSearchBarPlacement: {} #since 16.0 + UINavigationItemStyle: {} #since 16.0 + UINavigationBarNSToolbarSection: {} #since 16.0 + UIPageControlDirection: {} #since 16.0 + UIPasteControlDisplayMode: {} #since 16.0 + UIScreenReferenceDisplayModeStatus: {} #since 16.0 + UISearchControllerScopeBarActivation: {} #since 16.0 + UITextSearchFoundTextStyle: {} #since 16.0 + UIFindSessionSearchResultDisplayStyle: {} + UITextSearchMatchMethod: {} + UICalendarViewDecorationSize: {} #since 16.0 + UIEditMenuArrowDirection: {} #since 16.0 + # EXCLUDE1: {exclude: true, first: NSAttachmentCharacter} -- don't exclude it as value will be picked up as constant EXCLUDE3_AS_DEPRECATED: {exclude: true, first: NSControlCharacterZeroAdvancementAction} @@ -1101,6 +1122,16 @@ classes: name: init '-initWithImage:menu:': name: init + '-initWithPrimaryAction:menu:': + name: init + '-initWithBarButtonSystemItem:primaryAction:menu:': + name: init + '-initWithTitle:image:target:action:menu:': + name: init + '-creatingMovableGroupWithCustomizationIdentifier:': + name: creatingMovableGroup + '-creatingOptionalGroupWithCustomizationIdentifier:inDefaultCustomization:': + name: creatingOptionalGroup UIBarButtonItemGroup: # DONE properties: 'barButtonItems': @@ -1111,6 +1142,12 @@ classes: parameters: barButtonItems: type: NSArray + '+fixedGroupWithRepresentativeItem:items:': + name: createfixedGroup + '+movableGroupWithCustomizationIdentifier:representativeItem:items:': + name: createMovableGroup + '+optionalGroupWithCustomizationIdentifier:inDefaultCustomization:representativeItem:items:': + name: createOptionalGroup UIBarItem: # DONE protocols: [NSCoding, UIAppearanceContainer] methods: @@ -1845,6 +1882,8 @@ classes: name: newWithSize '+monospacedSystemFontOfSize:weight:': name: getMonospacedSystemFont + '+systemFontOfSize:weight:width:': + name: getSystemFont UIFontDescriptor: # DONE properties: 'fontAttributes': @@ -2121,6 +2160,10 @@ classes: name: prepareForDisplay '-prepareThumbnailOfSize:completionHandler:': name: prepareThumbnail + '+systemImageNamed:variableValue:withConfiguration:': + name: getSystemImage + '+imageNamed:inBundle:variableValue:withConfiguration:': + name: getImage UIImageAsset: # DONE methods: @@ -2415,6 +2458,8 @@ classes: name: getSizeForNumberOfPages '-setIndicatorImage:forPage:': name: setIndicatorImage + '-setCurrentPageIndicatorImage:forPage:': + name: setCurrentPageIndicatorImage UIPageViewController: # DONE properties: 'gestureRecognizers': @@ -3426,6 +3471,8 @@ classes: '+traitCollectionWithActiveAppearance:': name: create constructor: true + '+traitCollectionWithToolbarItemPresentationSize:': + name: createWithToolbarItemPresentationSize UIMutableApplicationShortcutItem: # DONE skip_def_constructor: true UIMutableUserNotificationAction: {} # DONE @@ -3968,6 +4015,8 @@ classes: name: initForOpeningFilesUsingContentTypes '-initForOpeningContentTypes:': static_constructor_name: createForOpeningContentTypes + '-renameDocumentAtURL:proposedName:completionHandler:': + name: renameDocument UIFocusMovementHint: {} #since 12.0 UITextInputPasswordRules: #since 12.0 methods: @@ -4017,6 +4066,10 @@ classes: name: createVerticalGroup '+customGroupWithLayoutSize:itemProvider:': name: createCustomGroup + '+horizontalGroupWithLayoutSize:repeatingSubitem:count:': + name: createHorizontalGroupRepeatingSubitem + '+verticalGroupWithLayoutSize:repeatingSubitem:count:': + name: createVerticalGroupRepeatingSubitem NSCollectionLayoutGroupCustomItem: #since 13.0 methods: '+customItemWithFrame:': @@ -4340,7 +4393,10 @@ classes: UITextInteraction: {} #since 13.0 UITextPlaceholder: {} #since 13.0 UIToolbarAppearance: {} #since 13.0 - UIWindowScene: {} #since 13.0 + UIWindowScene: #since 13.0 + methods: + '-requestGeometryUpdateWithPreferences:errorHandler:': + name: requestGeometryUpdate UIWindowSceneDestructionRequestOptions: {} #since 13.0 UIKey: #since 13.4 properties: @@ -4510,6 +4566,9 @@ classes: '-adjustedRangeFromRange:forEditingTextSelection:': name: adjustedRangeFromRange NSTextElement: #since 15.0 + properties: + childElements: + type: 'NSArray' methods: '-initWithTextContentManager:': name: init @@ -4620,7 +4679,10 @@ classes: constructor: true name: create UISheetPresentationController: {} #since 15.0 - UISheetPresentationControllerDetent: {} #since 15.0 + UISheetPresentationControllerDetent: #since 15.0 + methods: + '+customDetentWithIdentifier:resolver:': + name: createCustomDetent UIToolTipConfiguration: #since 15.0 methods: '+configurationWithToolTip:': @@ -4654,6 +4716,133 @@ classes: name: init UIWindowSceneActivationRequestOptions: {} #since 15.0 UICellAccessoryDetail: {} #since 15.4 + + NSTextList: #since 7.0 + methods: + '-initWithMarkerFormat:options:startingItemNumber:': + name: init + '-initWithMarkerFormat:options:': + name: init + NSTextListElement: #since 16.0 + methods: + '-initWithParentElement:textList:contents:markerAttributes:childElements:': + name: init + '+textListElementWithContents:markerAttributes:textList:childElements:': + exclude: true + '+textListElementWithChildElements:textList:nestingLevel:': + constructor: true + name: create + UICalendarSelection: {} #since 16.0 + UICalendarSelectionMultiDate: #since 16.0 + methods: + '-setSelectedDates:animated:': + name: setSelectedDates + '-initWithDelegate:': + name: init + UICalendarSelectionSingleDate: #since 16.0 + methods: + '-setSelectedDate:animated:': + name: setSelectedDate + '-initWithDelegate:': + name: init + UICalendarView: #since 16.0 + methods: + '-setVisibleDateComponents:animated:': + name: setVisibleDateComponents + '-reloadDecorationsForDateComponents:animated:': + name: reloadDecorations + UICalendarViewDecoration: #since 16.0 + methods: + '-initWithImage:color:size:': + name: init + '-initWithCustomViewProvider:': + name: init + '+decorationWithColor:size:': + constructor: true + name: create + '+decorationWithImage:': + constructor: true + name: create + '+decorationWithImage:color:size:': + exclude: true + '+decorationWithCustomViewProvider:': + exclude: true + UICellAccessoryPopUpMenu: #since 16.0 + methods: + '-initWithMenu:': + name: init + UIDocumentProperties: #since 16.0 + methods: + '-initWithURL:': + name: init + '-initWithMetadata:': + name: init + UIEditMenuConfiguration: #since 16.0 + methods: + '+configurationWithIdentifier:sourcePoint:': + constructor: true + name: create + UIEditMenuInteraction: #since 16.0 + methods: + '-initWithDelegate:': + name: init + '-presentEditMenuWithConfiguration:': + name: presentEditMenu + UIFindInteraction: #since 16.0 + methods: + '-initWithSessionDelegate:': + name: init + UIFindSession: #since 16.0 + methods: + '-performSearchWithQuery:options:': + name: performSearch + '-performSingleReplacementWithSearchQuery:replacementString:options:': + name: performSingleReplacement + '-replaceAllInstancesOfSearchQuery:withReplacementString:options:': + name: replaceAllInstancesOfSearchQuery + UIPasteControl: #since 16.0 + methods: + '-initWithConfiguration:': + name: init + UIPasteControlConfiguration: {} #since 16.0 + UISceneWindowingBehaviors: {} #since 16.0 + UISearchSuggestionItem: #since 16.0 + methods: + '-initWithLocalizedSuggestion:': + name: init + '-initWithLocalizedSuggestion:localizedDescription:': + name: init + '-initWithLocalizedSuggestion:localizedDescription:iconImage:': + name: init + '-initWithLocalizedAttributedSuggestion:': + name: initWithLocalizedAttributedSuggestion$ + '-initWithLocalizedAttributedSuggestion:localizedDescription:': + name: init + '-initWithLocalizedAttributedSuggestion:localizedDescription:iconImage:': + name: init + '+suggestionWithLocalizedSuggestion:': + exclude: true + '+suggestionWithLocalizedSuggestion:descriptionString:': + exclude: true + '+suggestionWithLocalizedSuggestion:descriptionString:iconImage:': + exclude: true + '+suggestionWithLocalizedAttributedSuggestion:': + exclude: true + '+suggestionWithLocalizedAttributedSuggestion:descriptionString:': + exclude: true + '+suggestionWithLocalizedAttributedSuggestion:descriptionString:iconImage:': + exclude: true + UITextSearchOptions: {} #since 16.0 + UITextSearchingFindSession: #since 16.0 + methods: + '-initWithSearchableObject:': + name: init + UIWindowSceneGeometry: {} #since 16.0 + UIWindowSceneGeometryPreferences: {} #since 16.0 + UIWindowSceneGeometryPreferencesIOS: #since 16.0 + methods: + '-initWithInterfaceOrientations:': + name: init protocols: NSLayoutManagerDelegate: # DONE methods: @@ -4997,6 +5186,16 @@ protocols: name: getTargetIndexPathForMoveOfItemFromOriginalIndexPath '-collectionView:sceneActivationConfigurationForItemAtIndexPath:point:': name: getSceneActivationConfiguration + '-collectionView:canPerformPrimaryActionForItemAtIndexPath:': + name: canPerformPrimaryAction + '-collectionView:performPrimaryActionForItemAtIndexPath:': + name: performPrimaryAction + '-collectionView:contextMenuConfigurationForItemsAtIndexPaths:point:': + name: getContextMenuConfiguration + '-collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath:': + name: getContextMenuHighlightPreview + '-collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath:': + name: getContextMenuDismissalPreview UICollectionViewDelegateFlowLayout: # DONE methods: '-collectionView:layout:insetForSectionAtIndex:': @@ -5371,6 +5570,10 @@ protocols: name: didDismiss '-presentSearchController:': name: present + '-searchController:willChangeToSearchBarPlacement:': + name: willChangeToSearchBarPlacement + '-searchController:didChangeFromSearchBarPlacement:': + name: didChangeFromSearchBarPlacement UISearchDisplayDelegate: # DONE methods: '-searchDisplayController:didHideSearchResultsTableView:': @@ -5401,6 +5604,8 @@ protocols: methods: '-updateSearchResultsForSearchController:': name: updateSearchResults + '-updateSearchResultsForSearchController:selectingSearchSuggestion:': + name: updateSearchResults UISplitViewControllerDelegate: # DONE methods: '-splitViewController:popoverController:willPresentViewController:': @@ -5646,6 +5851,10 @@ protocols: name: willEndContextMenuInteraction '-tableView:selectionFollowsFocusForRowAtIndexPath:': name: isSelectionFollowsFocus + '-tableView:canPerformPrimaryActionForRowAtIndexPath:': + name: canPerformPrimaryAction + '-tableView:performPrimaryActionForRowAtIndexPath:': + name: performPrimaryAction UITextDocumentProxy: # DONE methods: @@ -5674,6 +5883,12 @@ protocols: '-textFieldShouldReturn:': name: shouldReturn default: true + '-textField:editMenuForCharactersInRange:suggestedActions:': + name: getEditMenu + '-textField:willPresentEditMenuWithAnimator:': + name: willPresentEditMenu + '-textField:willDismissEditMenuWithAnimator:': + name: willDismissEditMenu UITextInput: # DONE properties: 'markedTextStyle': @@ -5744,6 +5959,12 @@ protocols: name: setAttributedMarkedText '-insertTextPlaceholderWithSize:': name: insertTextPlaceholder + '-editMenuForTextRange:suggestedActions:': + name: getEditMenu + '-willPresentEditMenuWithAnimator:': + name: willPresentEditMenu + '-willDismissEditMenuWithAnimator:': + name: willDismissEditMenu UITextInputDelegate: # DONE methods: '-selectionWillChange:': @@ -5797,6 +6018,12 @@ protocols: name: shouldInteractWithURL '-textView:shouldInteractWithTextAttachment:inRange.*': name: shouldInteractWithTextAttachment + '-textView:editMenuForTextInRange:suggestedActions:': + name: getEditMenu + '-textView:willPresentEditMenuWithAnimator:': + name: willPresentEditMenu + '-textView:willDismissEditMenuWithAnimator:': + name: willDismissEditMenu UITimingCurveProvider: {} # DONE UIToolbarDelegate: {} # DONE UITraitEnvironment: # DONE @@ -6293,6 +6520,10 @@ protocols: name: willDisplayMenu '-contextMenuInteraction:willEndForConfiguration:animator:': name: willEnd + '-contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:': + name: getHighlightPreview + '-contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:': + name: getDismissalPreview UIFontPickerViewControllerDelegate: {} #since 13.0 UILargeContentViewerInteractionDelegate: #since 13.0 methods: @@ -6341,6 +6572,8 @@ protocols: methods: '-searchTextField:itemProviderForCopyingToken:': name: getItemProviderForCopyingToken + '-searchTextField:didSelectSuggestion:': + name: didSelectSuggestion UISearchTextFieldPasteItem: {} UITextFormattingCoordinatorDelegate: #since 13.0 methods: @@ -6487,6 +6720,88 @@ protocols: methods: '-toolTipInteraction:configurationAtPoint:': name: getConfigurationAtPoint + ### ios16 bindings + UICalendarSelectionMultiDateDelegate: #since 16.0 + methods: + '-multiDateSelection:didSelectDate:': + name: didSelectDate + '-multiDateSelection:didDeselectDate:': + name: didDeselectDate + '-multiDateSelection:canSelectDate:': + name: canSelectDate + '-multiDateSelection:canDeselectDate:': + name: canDeselectDate + UICalendarSelectionSingleDateDelegate: #since 16.0 + methods: + '-dateSelection:didSelectDate:': + name: didSelectDate + '-dateSelection:canSelectDate:': + name: canSelectDate + UICalendarViewDelegate: #since 16.0 + methods: + '-calendarView:decorationForDateComponents:': + name: getDecoration + UIEditMenuInteractionAnimating: {} #since 16.0 + UIEditMenuInteractionDelegate: #since 16.0 + methods: + '-editMenuInteraction:menuForConfiguration:suggestedActions:': + name: getMenu + '-editMenuInteraction:targetRectForConfiguration:': + name: getTargetRect + '-editMenuInteraction:willPresentMenuForConfiguration:animator:': + name: willPresentMenu + '-editMenuInteraction:willDismissMenuForConfiguration:animator:': + name: willDismissMenu + UIFindInteractionDelegate: #since 16.0 + methods: + '-findInteraction:sessionForView:': + name: getSession + '-findInteraction:didBeginFindSession:': + name: didBeginFindSession + '-findInteraction:didEndFindSession:': + name: didEndFindSession + UILayoutGuideAspectFitting: {} + UIMenuLeaf: #since 16.0 + methods: + '-performWithSender:target:': + name: perform + UINavigationItemRenameDelegate: #since 16.0 + methods: + '-navigationItem:didEndRenamingWithTitle:': + name: didEndRenaming + '-navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:': + name: willBeginRenaming + '-navigationItem:shouldEndRenamingWithTitle:': + name: shouldEndRenaming + UIPopoverPresentationControllerSourceItem: {} #since 16.0 + UISearchSuggestion: {} #since 16.0 + UISheetPresentationControllerDetentResolutionContext: {} #since 16.0 + UITextSearchAggregator: #since 16.0 + methods: + '-foundRange:forSearchString:inDocument:': + name: foundRange + '-invalidateFoundRange:inDocument:': + name: invalidateFoundRange + UITextSearching: #since 16.0 + methods: + '-compareFoundRange:toRange:inDocument:': + name: compare + '-performTextSearchWithQueryString:usingOptions:resultAggregator:': + name: performTextSearch + '-decorateFoundTextRange:inDocument:usingStyle:': + name: decorateFoundTextRange + '-shouldReplaceFoundTextInRange:inDocument:withText:': + name: shouldReplaceFoundTextInRange + '-replaceFoundTextInRange:inDocument:withText:': + name: replaceFoundTextInRange + '-replaceAllOccurrencesOfQueryString:usingOptions:withText:': + name: replaceAllOccurrencesOfQueryString + '-willHighlightFoundTextRange:inDocument:': + name: willHighlightFoundTextRange + '-scrollRangeToVisible:inDocument:': + name: scrollRangeToVisible + '-compareOrderFromDocument:toDocument:': + name: compareOrder # skipped UIAppearance: {exclude: true, skip_implements: true, skip_methods: true} # as functionality is implemented in UIAppearance @@ -7033,6 +7348,9 @@ values: UIFontWeight(.*): enum: UIFontWeight name: '#{g[0]}' + UIFontWidth(.*): + enum: UIFontWidth + name: '#{g[0]}' # UIImagePickerController UIImagePickerController(.*): @@ -7372,6 +7690,10 @@ values: static_class: Notifications name: UnsupportedAttributeAdded + UISheetPresentationControllerDetentInactive: + class: UISheetPresentationControllerDetent + name: Inactive + # Make sure we don't miss any values if new ones are introduced in a later UIKit (NS.*): class: FIXME @@ -7427,6 +7749,10 @@ typed_enums: type: NSString UISheetPresentationControllerDetentIdentifier(.*): name: '#{g[0]}' + NSTextListMarkerFormat: + enum: NSTextListMarkerFormat + type: NSString + prefix: NSTextList constants: NS(AttachmentCharacter): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutGroup.java index d7c532f8c..fa08cf4d3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutGroup.java @@ -75,15 +75,35 @@ protected NSCollectionLayoutGroup() {} /**/ @Method(selector = "visualDescription") public native String visualDescription(); - @Method(selector = "horizontalGroupWithLayoutSize:subitem:count:") - public static native NSCollectionLayoutGroup createHorizontalGroup(NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem subitem, @MachineSizedSInt long count); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "horizontalGroupWithLayoutSize:repeatingSubitem:count:") + public static native NSCollectionLayoutGroup createHorizontalGroupRepeatingSubitem(NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem subitem, @MachineSizedSInt long count); @Method(selector = "horizontalGroupWithLayoutSize:subitems:") public static native NSCollectionLayoutGroup createHorizontalGroup(NSCollectionLayoutSize layoutSize, NSArray subitems); - @Method(selector = "verticalGroupWithLayoutSize:subitem:count:") - public static native NSCollectionLayoutGroup createVerticalGroup(NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem subitem, @MachineSizedSInt long count); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "verticalGroupWithLayoutSize:repeatingSubitem:count:") + public static native NSCollectionLayoutGroup createVerticalGroupRepeatingSubitem(NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem subitem, @MachineSizedSInt long count); @Method(selector = "verticalGroupWithLayoutSize:subitems:") public static native NSCollectionLayoutGroup createVerticalGroup(NSCollectionLayoutSize layoutSize, NSArray subitems); @Method(selector = "customGroupWithLayoutSize:itemProvider:") public static native NSCollectionLayoutGroup createCustomGroup(NSCollectionLayoutSize layoutSize, @Block Block1> itemProvider); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use +horizontalGroupWithLayoutSize:repeatingSubitem:count: + */ + @Deprecated + @Method(selector = "horizontalGroupWithLayoutSize:subitem:count:") + public static native NSCollectionLayoutGroup createHorizontalGroup(NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem subitem, @MachineSizedSInt long count); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use +verticalGroupWithLayoutSize:repeatingSubitem:count: + */ + @Deprecated + @Method(selector = "verticalGroupWithLayoutSize:subitem:count:") + public static native NSCollectionLayoutGroup createVerticalGroup(NSCollectionLayoutSize layoutSize, NSCollectionLayoutItem subitem, @MachineSizedSInt long count); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutSection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutSection.java index c966e4468..5905bb333 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutSection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSCollectionLayoutSection.java @@ -83,6 +83,16 @@ protected NSCollectionLayoutSection() {} */ @Property(selector = "setContentInsetsReference:") public native void setContentInsetsReference(UIContentInsetsReference v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "supplementaryContentInsetsReference") + public native UIContentInsetsReference getSupplementaryContentInsetsReference(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSupplementaryContentInsetsReference:") + public native void setSupplementaryContentInsetsReference(UIContentInsetsReference v); @Property(selector = "orthogonalScrollingBehavior") public native UICollectionLayoutSectionOrthogonalScrollingBehavior getOrthogonalScrollingBehavior(); @Property(selector = "setOrthogonalScrollingBehavior:") @@ -91,10 +101,6 @@ protected NSCollectionLayoutSection() {} public native NSArray getBoundarySupplementaryItems(); @Property(selector = "setBoundarySupplementaryItems:") public native void setBoundarySupplementaryItems(NSArray v); - @Property(selector = "supplementariesFollowContentInsets") - public native boolean isSupplementariesFollowContentInsets(); - @Property(selector = "setSupplementariesFollowContentInsets:") - public native void setSupplementariesFollowContentInsets(boolean v); @Property(selector = "visibleItemsInvalidationHandler") public native @Block("(,@ByVal,)") VoidBlock3, CGPoint, NSCollectionLayoutEnvironment> getVisibleItemsInvalidationHandler(); @Property(selector = "setVisibleItemsInvalidationHandler:") @@ -103,6 +109,20 @@ protected NSCollectionLayoutSection() {} public native NSArray getDecorationItems(); @Property(selector = "setDecorationItems:") public native void setDecorationItems(NSArray v); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use supplementaryContentInsetsReference + */ + @Deprecated + @Property(selector = "supplementariesFollowContentInsets") + public native boolean isSupplementariesFollowContentInsets(); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use supplementaryContentInsetsReference + */ + @Deprecated + @Property(selector = "setSupplementariesFollowContentInsets:") + public native void setSupplementariesFollowContentInsets(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSMutableParagraphStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSMutableParagraphStyle.java index eafb352a7..0c9f343e6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSMutableParagraphStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSMutableParagraphStyle.java @@ -148,6 +148,10 @@ public NSMutableParagraphStyle() {} */ @Property(selector = "setLineBreakStrategy:") public native void setLineBreakStrategy(NSLineBreakStrategy v); + @Property(selector = "textLists") + public native NSArray getTextLists(); + @Property(selector = "setTextLists:") + public native void setTextLists(NSArray v); @Property(selector = "defaultParagraphStyle") public static native NSParagraphStyle getDefaultParagraphStyle(); @Property(selector = "supportsSecureCoding") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSParagraphStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSParagraphStyle.java index 4cb4d6e12..1d4c09fc2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSParagraphStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSParagraphStyle.java @@ -97,6 +97,8 @@ public NSParagraphStyle() {} public native NSArray getTabStops(); @Property(selector = "defaultTabInterval") public native @MachineSizedFloat double getDefaultTabInterval(); + @Property(selector = "textLists") + public native NSArray getTextLists(); /** * @since Available in iOS 9.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextElement.java index 8004c1901..ebd2b347d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextElement.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextElement.java @@ -70,6 +70,21 @@ public NSTextElement() {} public native NSTextRange getElementRange(); @Property(selector = "setElementRange:") public native void setElementRange(NSTextRange v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "childElements") + public native NSArray getChildElements(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "parentElement") + public native NSTextElement getParentElement(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isRepresentedElement") + public native boolean isRepresentedElement(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextList.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextList.java new file mode 100644 index 000000000..a0a3fab03 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextList.java @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/NSTextList/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class NSTextListPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NSTextList.class); }/**/ + /**//**/ + /**/ + public NSTextList() {} + protected NSTextList(Handle h, long handle) { super(h, handle); } + protected NSTextList(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithMarkerFormat:options:startingItemNumber:") + public NSTextList(NSTextListMarkerFormat markerFormat, NSTextListOptions options, @MachineSizedSInt long startingItemNumber) { super((SkipInit) null); initObject(init(markerFormat, options, startingItemNumber)); } + @Method(selector = "initWithMarkerFormat:options:") + public NSTextList(NSTextListMarkerFormat markerFormat, @MachineSizedUInt long options) { super((SkipInit) null); initObject(init(markerFormat, options)); } + @Method(selector = "initWithCoder:") + public NSTextList(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "markerFormat") + public native NSTextListMarkerFormat getMarkerFormat(); + @Property(selector = "listOptions") + public native NSTextListOptions getListOptions(); + @Property(selector = "startingItemNumber") + public native @MachineSizedSInt long getStartingItemNumber(); + @Property(selector = "setStartingItemNumber:") + public native void setStartingItemNumber(@MachineSizedSInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isOrdered") + public native boolean isOrdered(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithMarkerFormat:options:startingItemNumber:") + protected native @Pointer long init(NSTextListMarkerFormat markerFormat, NSTextListOptions options, @MachineSizedSInt long startingItemNumber); + @Method(selector = "initWithMarkerFormat:options:") + protected native @Pointer long init(NSTextListMarkerFormat markerFormat, @MachineSizedUInt long options); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + @Method(selector = "markerForItemNumber:") + public native String markerForItemNumber(@MachineSizedSInt long itemNumber); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListElement.java new file mode 100644 index 000000000..969b613f3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListElement.java @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/NSTextListElement/**/ + extends /**/NSTextParagraph/**/ + /**//**/ { + + /**/public static class NSTextListElementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NSTextListElement.class); }/**/ + /**//**/ + /**/ + public NSTextListElement() {} + protected NSTextListElement(Handle h, long handle) { super(h, handle); } + protected NSTextListElement(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithParentElement:textList:contents:markerAttributes:childElements:") + public NSTextListElement(NSTextListElement parent, NSTextList textList, NSAttributedString contents, NSDictionary markerAttributes, NSArray children) { super((SkipInit) null); initObject(init(parent, textList, contents, markerAttributes, children)); } + public NSTextListElement(NSArray children, NSTextList textList, @MachineSizedSInt long nestingLevel) { super((Handle) null, create(children, textList, nestingLevel)); retain(getHandle()); } + @Method(selector = "initWithTextContentManager:") + public NSTextListElement(NSTextContentManager textContentManager) { super(textContentManager); } + /**/ + /**/ + @Property(selector = "textList") + public native NSTextList getTextList(); + @Property(selector = "contents") + public native NSAttributedString getContents(); + @Property(selector = "markerAttributes") + public native NSDictionary getMarkerAttributes(); + @Property(selector = "attributedString") + public native NSAttributedString getAttributedString(); + @Property(selector = "childElements") + public native NSArray getChildElements(); + @Property(selector = "parentElement") + public native NSTextListElement getParentElement(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithParentElement:textList:contents:markerAttributes:childElements:") + protected native @Pointer long init(NSTextListElement parent, NSTextList textList, NSAttributedString contents, NSDictionary markerAttributes, NSArray children); + @Method(selector = "textListElementWithChildElements:textList:nestingLevel:") + protected static native @Pointer long create(NSArray children, NSTextList textList, @MachineSizedSInt long nestingLevel); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListMarkerFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListMarkerFormat.java new file mode 100644 index 000000000..d63d20d4c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListMarkerFormat.java @@ -0,0 +1,179 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**/@Library("UIKit") @StronglyLinked/**/ +@Marshaler(/**/NSTextListMarkerFormat/**/.Marshaler.class) +/**/public/**/ class /**/NSTextListMarkerFormat/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/NSTextListMarkerFormat/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static NSTextListMarkerFormat toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return NSTextListMarkerFormat.valueOf(o); + } + @MarshalsPointer + public static long toNative(NSTextListMarkerFormat o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(NSTextListMarkerFormat.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (NSTextListMarkerFormat o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + public static final NSTextListMarkerFormat MarkerBox = new NSTextListMarkerFormat("MarkerBox"); + public static final NSTextListMarkerFormat MarkerCheck = new NSTextListMarkerFormat("MarkerCheck"); + public static final NSTextListMarkerFormat MarkerCircle = new NSTextListMarkerFormat("MarkerCircle"); + public static final NSTextListMarkerFormat MarkerDiamond = new NSTextListMarkerFormat("MarkerDiamond"); + public static final NSTextListMarkerFormat MarkerDisc = new NSTextListMarkerFormat("MarkerDisc"); + public static final NSTextListMarkerFormat MarkerHyphen = new NSTextListMarkerFormat("MarkerHyphen"); + public static final NSTextListMarkerFormat MarkerSquare = new NSTextListMarkerFormat("MarkerSquare"); + public static final NSTextListMarkerFormat MarkerLowercaseHexadecimal = new NSTextListMarkerFormat("MarkerLowercaseHexadecimal"); + public static final NSTextListMarkerFormat MarkerUppercaseHexadecimal = new NSTextListMarkerFormat("MarkerUppercaseHexadecimal"); + public static final NSTextListMarkerFormat MarkerOctal = new NSTextListMarkerFormat("MarkerOctal"); + public static final NSTextListMarkerFormat MarkerLowercaseAlpha = new NSTextListMarkerFormat("MarkerLowercaseAlpha"); + public static final NSTextListMarkerFormat MarkerUppercaseAlpha = new NSTextListMarkerFormat("MarkerUppercaseAlpha"); + public static final NSTextListMarkerFormat MarkerLowercaseLatin = new NSTextListMarkerFormat("MarkerLowercaseLatin"); + public static final NSTextListMarkerFormat MarkerUppercaseLatin = new NSTextListMarkerFormat("MarkerUppercaseLatin"); + public static final NSTextListMarkerFormat MarkerLowercaseRoman = new NSTextListMarkerFormat("MarkerLowercaseRoman"); + public static final NSTextListMarkerFormat MarkerUppercaseRoman = new NSTextListMarkerFormat("MarkerUppercaseRoman"); + public static final NSTextListMarkerFormat MarkerDecimal = new NSTextListMarkerFormat("MarkerDecimal"); + /**/ + + private static /**/NSTextListMarkerFormat/**/[] values = new /**/NSTextListMarkerFormat/**/[] {/**/MarkerBox, MarkerCheck, MarkerCircle, MarkerDiamond, MarkerDisc, MarkerHyphen, MarkerSquare, MarkerLowercaseHexadecimal, MarkerUppercaseHexadecimal, MarkerOctal, MarkerLowercaseAlpha, MarkerUppercaseAlpha, MarkerLowercaseLatin, MarkerUppercaseLatin, MarkerLowercaseRoman, MarkerUppercaseRoman, MarkerDecimal/**/}; + + /**/NSTextListMarkerFormat/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/NSTextListMarkerFormat/**/ valueOf(/**/NSString/**/ value) { + for (/**/NSTextListMarkerFormat/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/NSTextListMarkerFormat/**/.class.getName()); + } + + /**//**/ + + /**/@Library("UIKit") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + @GlobalValue(symbol="NSTextListMarkerBox", optional=true) + public static native NSString MarkerBox(); + @GlobalValue(symbol="NSTextListMarkerCheck", optional=true) + public static native NSString MarkerCheck(); + @GlobalValue(symbol="NSTextListMarkerCircle", optional=true) + public static native NSString MarkerCircle(); + @GlobalValue(symbol="NSTextListMarkerDiamond", optional=true) + public static native NSString MarkerDiamond(); + @GlobalValue(symbol="NSTextListMarkerDisc", optional=true) + public static native NSString MarkerDisc(); + @GlobalValue(symbol="NSTextListMarkerHyphen", optional=true) + public static native NSString MarkerHyphen(); + @GlobalValue(symbol="NSTextListMarkerSquare", optional=true) + public static native NSString MarkerSquare(); + @GlobalValue(symbol="NSTextListMarkerLowercaseHexadecimal", optional=true) + public static native NSString MarkerLowercaseHexadecimal(); + @GlobalValue(symbol="NSTextListMarkerUppercaseHexadecimal", optional=true) + public static native NSString MarkerUppercaseHexadecimal(); + @GlobalValue(symbol="NSTextListMarkerOctal", optional=true) + public static native NSString MarkerOctal(); + @GlobalValue(symbol="NSTextListMarkerLowercaseAlpha", optional=true) + public static native NSString MarkerLowercaseAlpha(); + @GlobalValue(symbol="NSTextListMarkerUppercaseAlpha", optional=true) + public static native NSString MarkerUppercaseAlpha(); + @GlobalValue(symbol="NSTextListMarkerLowercaseLatin", optional=true) + public static native NSString MarkerLowercaseLatin(); + @GlobalValue(symbol="NSTextListMarkerUppercaseLatin", optional=true) + public static native NSString MarkerUppercaseLatin(); + @GlobalValue(symbol="NSTextListMarkerLowercaseRoman", optional=true) + public static native NSString MarkerLowercaseRoman(); + @GlobalValue(symbol="NSTextListMarkerUppercaseRoman", optional=true) + public static native NSString MarkerUppercaseRoman(); + @GlobalValue(symbol="NSTextListMarkerDecimal", optional=true) + public static native NSString MarkerDecimal(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListOptions.java new file mode 100644 index 000000000..9f024fc06 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextListOptions.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/NSTextListOptions/**/ extends Bits*/NSTextListOptions/**/> { + /**/ + public static final NSTextListOptions None = new NSTextListOptions(0L); + public static final NSTextListOptions PrependEnclosingMarker = new NSTextListOptions(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/NSTextListOptions/**/[] values = _values(/**/NSTextListOptions/**/.class); + + public /**/NSTextListOptions/**/(long value) { super(value); } + private /**/NSTextListOptions/**/(long value, long mask) { super(value, mask); } + protected /**/NSTextListOptions/**/ wrap(long value, long mask) { + return new /**/NSTextListOptions/**/(value, mask); + } + protected /**/NSTextListOptions/**/[] _values() { + return values; + } + public static /**/NSTextListOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAction.java index eac7e1af2..a3ab3b8b0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAction.java @@ -49,7 +49,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UIAction/**/ extends /**/UIMenuElement/**/ - /**//**/ { + /**/implements UIMenuLeaf/**/ { /**/public static class UIActionPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(UIAction.class); }/**/ @@ -94,6 +94,11 @@ protected UIAction() {} */ @Property(selector = "sender") public native NSObject getSender(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "presentationSourceItem") + public native UIPopoverPresentationControllerSourceItem getPresentationSourceItem(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ @@ -111,5 +116,7 @@ protected UIAction() {} */ @Method(selector = "captureTextFromCameraActionForResponder:identifier:") public static native UIAction captureTextFromCameraActionForResponder(UIResponder responder, UIActionIdentifier identifier); + @Method(selector = "performWithSender:target:") + public native void perform(NSObject sender, NSObject target); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIActivityType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIActivityType.java index 625924f36..3dd47b440 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIActivityType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIActivityType.java @@ -99,5 +99,15 @@ */ @GlobalValue(symbol="UIActivityTypeSharePlay", optional=true) public static native String SharePlay(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIActivityTypeCollaborationInviteWithLink", optional=true) + public static native String CollaborationInviteWithLink(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIActivityTypeCollaborationCopyLink", optional=true) + public static native String CollaborationCopyLink(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertController.java index 87f27db37..b37eced92 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertController.java @@ -87,6 +87,16 @@ public UIAlertController() {} public native void setMessage(String v); @Property(selector = "preferredStyle") public native UIAlertControllerStyle getPreferredStyle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "severity") + public native UIAlertControllerSeverity getSeverity(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSeverity:") + public native void setSeverity(UIAlertControllerSeverity v); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertControllerSeverity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertControllerSeverity.java new file mode 100644 index 000000000..fc8234384 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIAlertControllerSeverity.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIAlertControllerSeverity/**/ implements ValuedEnum { + /**/ + Default(0L), + Critical(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIAlertControllerSeverity/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIAlertControllerSeverity/**/ valueOf(long n) { + for (/**/UIAlertControllerSeverity/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIAlertControllerSeverity/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIApplicationLaunchOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIApplicationLaunchOptions.java index c5b60c1bf..24a3f66a0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIApplicationLaunchOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIApplicationLaunchOptions.java @@ -158,6 +158,10 @@ public UIApplicationLaunchOptions setLocalNotification(UILocalNotification local set(Keys.LocalNotification(), localNotification); return this; } + /** + * @deprecated Deprecated in iOS 16.0. This dictionary key is no longer used. + */ + @Deprecated public NSObject getAnnotation() { if (has(Keys.Annotation())) { NSObject val = (NSObject) get(Keys.Annotation()); @@ -165,6 +169,10 @@ public NSObject getAnnotation() { } return null; } + /** + * @deprecated Deprecated in iOS 16.0. This dictionary key is no longer used. + */ + @Deprecated public UIApplicationLaunchOptions setAnnotation(NSObject annotation) { set(Keys.Annotation(), annotation); return this; @@ -269,6 +277,10 @@ public static class Keys { @Deprecated @GlobalValue(symbol="UIApplicationLaunchOptionsLocalNotificationKey", optional=true) public static native NSString LocalNotification(); + /** + * @deprecated Deprecated in iOS 16.0. This dictionary key is no longer used. + */ + @Deprecated @GlobalValue(symbol="UIApplicationLaunchOptionsAnnotationKey", optional=true) public static native NSString Annotation(); @GlobalValue(symbol="UIApplicationLaunchOptionsLocationKey", optional=true) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItem.java index acbbe9a64..bfd2b83c0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItem.java @@ -47,7 +47,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UIBarButtonItem/**/ extends /**/UIBarItem/**/ - /**/implements NSCoding, UISpringLoadedInteractionSupporting/**/ { + /**/implements NSCoding, UISpringLoadedInteractionSupporting, UIPopoverPresentationControllerSourceItem/**/ { /**/public static class UIBarButtonItemPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(UIBarButtonItem.class); }/**/ @@ -118,7 +118,7 @@ public UIBarButtonItem(UIBarButtonSystemItem systemItem, OnClickListener listene initObject(init(systemItem, l, handleClick)); this.addStrongRef(l); } else { - initObject(init(systemItem, null, null)); + initObject(init(systemItem, (NSObject)null, (Selector)null)); } } @@ -163,6 +163,21 @@ public UIBarButtonItem() {} */ @Method(selector = "initWithImage:menu:") public UIBarButtonItem(UIImage image, UIMenu menu) { super((SkipInit) null); initObject(init(image, menu)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithPrimaryAction:menu:") + public UIBarButtonItem(UIAction primaryAction, UIMenu menu) { super((SkipInit) null); initObject(init(primaryAction, menu)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithBarButtonSystemItem:primaryAction:menu:") + public UIBarButtonItem(UIBarButtonSystemItem systemItem, UIAction primaryAction, UIMenu menu) { super((SkipInit) null); initObject(init(systemItem, primaryAction, menu)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithTitle:image:target:action:menu:") + public UIBarButtonItem(String title, UIImage image, NSObject target, Selector action, UIMenu menu) { super((SkipInit) null); initObject(init(title, image, target, action, menu)); } /**/ public void setOnClickListener(OnClickListener listener) { @@ -221,6 +236,16 @@ public void setOnClickListener(OnClickListener listener) { */ @Property(selector = "setMenu:") public native void setMenu(UIMenu v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredMenuElementOrder") + public native UIContextMenuConfigurationElementOrder getPreferredMenuElementOrder(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredMenuElementOrder:") + public native void setPreferredMenuElementOrder(UIContextMenuConfigurationElementOrder v); /** * @since Available in iOS 15.0 and later. */ @@ -241,6 +266,26 @@ public void setOnClickListener(OnClickListener listener) { */ @Property(selector = "setSelected:") public native void setSelected(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isHidden") + public native boolean isHidden(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setHidden:") + public native void setHidden(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "menuRepresentation") + public native UIMenuElement getMenuRepresentation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMenuRepresentation:") + public native void setMenuRepresentation(UIMenuElement v); @Property(selector = "tintColor") public native UIColor getTintColor(); @Property(selector = "setTintColor:") @@ -300,6 +345,36 @@ public void setOnClickListener(OnClickListener listener) { */ @Method(selector = "initWithImage:menu:") protected native @Pointer long init(UIImage image, UIMenu menu); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithPrimaryAction:menu:") + protected native @Pointer long init(UIAction primaryAction, UIMenu menu); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithBarButtonSystemItem:primaryAction:menu:") + protected native @Pointer long init(UIBarButtonSystemItem systemItem, UIAction primaryAction, UIMenu menu); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithTitle:image:target:action:menu:") + protected native @Pointer long init(String title, UIImage image, NSObject target, Selector action, UIMenu menu); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "creatingFixedGroup") + public native UIBarButtonItemGroup creatingFixedGroup(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "creatingMovableGroupWithCustomizationIdentifier:") + public native UIBarButtonItemGroup creatingMovableGroup(String customizationIdentifier); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "creatingOptionalGroupWithCustomizationIdentifier:inDefaultCustomization:") + public native UIBarButtonItemGroup creatingOptionalGroup(String customizationIdentifier, boolean inDefaultCustomization); @Method(selector = "setBackgroundImage:forState:barMetrics:") public native void setBackgroundImage(UIImage backgroundImage, UIControlState state, UIBarMetrics barMetrics); @Method(selector = "backgroundImageForState:barMetrics:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItemGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItemGroup.java index e536a9f53..341c555d1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItemGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIBarButtonItemGroup.java @@ -74,6 +74,36 @@ public UIBarButtonItemGroup() {} public native void setRepresentativeItem(UIBarButtonItem v); @Property(selector = "isDisplayingRepresentativeItem") public native boolean isDisplayingRepresentativeItem(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "alwaysAvailable") + public native boolean alwaysAvailable(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAlwaysAvailable:") + public native void setAlwaysAvailable(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "menuRepresentation") + public native UIMenuElement getMenuRepresentation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMenuRepresentation:") + public native void setMenuRepresentation(UIMenuElement v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isHidden") + public native boolean isHidden(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setHidden:") + public native void setHidden(boolean v); /**/ /**//**/ /**/ @@ -81,6 +111,21 @@ public UIBarButtonItemGroup() {} protected native @Pointer long init(NSArray barButtonItems, UIBarButtonItem representativeItem); @Method(selector = "initWithCoder:") protected native @Pointer long init(NSCoder coder); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "fixedGroupWithRepresentativeItem:items:") + public static native UIBarButtonItemGroup createfixedGroup(UIBarButtonItem representativeItem, NSArray items); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "movableGroupWithCustomizationIdentifier:representativeItem:items:") + public static native UIBarButtonItemGroup createMovableGroup(String customizationIdentifier, UIBarButtonItem representativeItem, NSArray items); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "optionalGroupWithCustomizationIdentifier:inDefaultCustomization:representativeItem:items:") + public static native UIBarButtonItemGroup createOptionalGroup(String customizationIdentifier, boolean inDefaultCustomization, UIBarButtonItem representativeItem, NSArray items); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButton.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButton.java index 505c68f1f..1d6a932d3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButton.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButton.java @@ -162,6 +162,16 @@ public UIButton() {} */ @Property(selector = "setMenu:") public native void setMenu(UIMenu v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredMenuElementOrder") + public native UIContextMenuConfigurationElementOrder getPreferredMenuElementOrder(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredMenuElementOrder:") + public native void setPreferredMenuElementOrder(UIContextMenuConfigurationElementOrder v); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfiguration.java index 3e440043e..b267db6d4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfiguration.java @@ -130,6 +130,26 @@ protected UIButtonConfiguration() {} public native @Block Block1, NSDictionary> getSubtitleTextAttributesTransformer(); @Property(selector = "setSubtitleTextAttributesTransformer:") public native void setSubtitleTextAttributesTransformer(@Block Block1, NSDictionary> v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "indicator") + public native UIButtonConfigurationIndicator getIndicator(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setIndicator:") + public native void setIndicator(UIButtonConfigurationIndicator v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "indicatorColorTransformer") + public native @Block Block1 getIndicatorColorTransformer(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setIndicatorColorTransformer:") + public native void setIndicatorColorTransformer(@Block Block1 v); @Property(selector = "contentInsets") public native @ByVal NSDirectionalEdgeInsets getContentInsets(); @Property(selector = "setContentInsets:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfigurationIndicator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfigurationIndicator.java new file mode 100644 index 000000000..e58f3b219 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIButtonConfigurationIndicator.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIButtonConfigurationIndicator/**/ implements ValuedEnum { + /**/ + Automatic(0L), + None(1L), + Popup(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIButtonConfigurationIndicator/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIButtonConfigurationIndicator/**/ valueOf(long n) { + for (/**/UIButtonConfigurationIndicator/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIButtonConfigurationIndicator/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelection.java new file mode 100644 index 000000000..46c66433c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelection.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UICalendarSelection/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UICalendarSelectionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UICalendarSelection.class); }/**/ + /**//**/ + /**/ + protected UICalendarSelection() {} + protected UICalendarSelection(Handle h, long handle) { super(h, handle); } + protected UICalendarSelection(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "updateSelectableDates") + public native void updateSelectableDates(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDate.java new file mode 100644 index 000000000..627a411eb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDate.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UICalendarSelectionMultiDate/**/ + extends /**/UICalendarSelection/**/ + /**//**/ { + + /**/public static class UICalendarSelectionMultiDatePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UICalendarSelectionMultiDate.class); }/**/ + /**//**/ + /**/ + protected UICalendarSelectionMultiDate() {} + protected UICalendarSelectionMultiDate(Handle h, long handle) { super(h, handle); } + protected UICalendarSelectionMultiDate(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithDelegate:") + public UICalendarSelectionMultiDate(UICalendarSelectionMultiDateDelegate delegate) { super((SkipInit) null); initObject(init(delegate)); } + /**/ + /**/ + @Property(selector = "selectedDates") + public native NSArray getSelectedDates(); + @Property(selector = "setSelectedDates:") + public native void setSelectedDates(NSArray v); + @Property(selector = "delegate") + public native UICalendarSelectionMultiDateDelegate getDelegate(); + /**/ + /**//**/ + /**/ + @Method(selector = "setSelectedDates:animated:") + public native void setSelectedDates(NSArray selectedDates, boolean animated); + @Method(selector = "initWithDelegate:") + protected native @Pointer long init(UICalendarSelectionMultiDateDelegate delegate); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegate.java new file mode 100644 index 000000000..7c8c8dc58 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegate.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UICalendarSelectionMultiDateDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "multiDateSelection:didSelectDate:") + void didSelectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents); + @Method(selector = "multiDateSelection:didDeselectDate:") + void didDeselectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents); + @Method(selector = "multiDateSelection:canSelectDate:") + boolean canSelectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents); + @Method(selector = "multiDateSelection:canDeselectDate:") + boolean canDeselectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegateAdapter.java new file mode 100644 index 000000000..303808280 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionMultiDateDelegateAdapter.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UICalendarSelectionMultiDateDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements UICalendarSelectionMultiDateDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("multiDateSelection:didSelectDate:") + public void didSelectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents) {} + @NotImplemented("multiDateSelection:didDeselectDate:") + public void didDeselectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents) {} + @NotImplemented("multiDateSelection:canSelectDate:") + public boolean canSelectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents) { return false; } + @NotImplemented("multiDateSelection:canDeselectDate:") + public boolean canDeselectDate(UICalendarSelectionMultiDate selection, NSDateComponents dateComponents) { return false; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDate.java new file mode 100644 index 000000000..953e7e50e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDate.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UICalendarSelectionSingleDate/**/ + extends /**/UICalendarSelection/**/ + /**//**/ { + + /**/public static class UICalendarSelectionSingleDatePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UICalendarSelectionSingleDate.class); }/**/ + /**//**/ + /**/ + protected UICalendarSelectionSingleDate() {} + protected UICalendarSelectionSingleDate(Handle h, long handle) { super(h, handle); } + protected UICalendarSelectionSingleDate(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithDelegate:") + public UICalendarSelectionSingleDate(UICalendarSelectionSingleDateDelegate delegate) { super((SkipInit) null); initObject(init(delegate)); } + /**/ + /**/ + @Property(selector = "delegate") + public native UICalendarSelectionSingleDateDelegate getDelegate(); + @Property(selector = "selectedDate") + public native NSDateComponents getSelectedDate(); + @Property(selector = "setSelectedDate:") + public native void setSelectedDate(NSDateComponents v); + /**/ + /**//**/ + /**/ + @Method(selector = "setSelectedDate:animated:") + public native void setSelectedDate(NSDateComponents selectedDate, boolean animated); + @Method(selector = "initWithDelegate:") + protected native @Pointer long init(UICalendarSelectionSingleDateDelegate delegate); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegate.java new file mode 100644 index 000000000..0c4e4fd17 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegate.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UICalendarSelectionSingleDateDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "dateSelection:didSelectDate:") + void didSelectDate(UICalendarSelectionSingleDate selection, NSDateComponents dateComponents); + @Method(selector = "dateSelection:canSelectDate:") + boolean canSelectDate(UICalendarSelectionSingleDate selection, NSDateComponents dateComponents); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegateAdapter.java new file mode 100644 index 000000000..ac89484e1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarSelectionSingleDateDelegateAdapter.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UICalendarSelectionSingleDateDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements UICalendarSelectionSingleDateDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("dateSelection:didSelectDate:") + public void didSelectDate(UICalendarSelectionSingleDate selection, NSDateComponents dateComponents) {} + @NotImplemented("dateSelection:canSelectDate:") + public boolean canSelectDate(UICalendarSelectionSingleDate selection, NSDateComponents dateComponents) { return false; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarView.java new file mode 100644 index 000000000..bb67e9e0f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarView.java @@ -0,0 +1,124 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UICalendarView/**/ + extends /**/UIView/**/ + /**//**/ { + + /**/public static class UICalendarViewPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UICalendarView.class); }/**/ + /**//**/ + /**/ + public UICalendarView() {} + protected UICalendarView(Handle h, long handle) { super(h, handle); } + protected UICalendarView(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithFrame:") + public UICalendarView(@ByVal CGRect frame) { super(frame); } + @Method(selector = "initWithCoder:") + public UICalendarView(NSCoder coder) { super(coder); } + /**/ + /**/ + @Property(selector = "delegate") + public native UICalendarViewDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(UICalendarViewDelegate v); + @Property(selector = "selectionBehavior") + public native UICalendarSelection getSelectionBehavior(); + @Property(selector = "setSelectionBehavior:") + public native void setSelectionBehavior(UICalendarSelection v); + @Property(selector = "locale") + public native NSLocale getLocale(); + @Property(selector = "setLocale:") + public native void setLocale(NSLocale v); + @Property(selector = "calendar") + public native NSCalendar getCalendar(); + @Property(selector = "setCalendar:") + public native void setCalendar(NSCalendar v); + @Property(selector = "timeZone") + public native NSTimeZone getTimeZone(); + @Property(selector = "setTimeZone:") + public native void setTimeZone(NSTimeZone v); + @Property(selector = "fontDesign") + public native UIFontDescriptorSystemDesign getFontDesign(); + @Property(selector = "setFontDesign:") + public native void setFontDesign(UIFontDescriptorSystemDesign v); + @Property(selector = "availableDateRange") + public native NSDateInterval getAvailableDateRange(); + @Property(selector = "setAvailableDateRange:") + public native void setAvailableDateRange(NSDateInterval v); + @Property(selector = "visibleDateComponents") + public native NSDateComponents getVisibleDateComponents(); + @Property(selector = "setVisibleDateComponents:") + public native void setVisibleDateComponents(NSDateComponents v); + @Property(selector = "wantsDateDecorations") + public native boolean wantsDateDecorations(); + @Property(selector = "setWantsDateDecorations:") + public native void setWantsDateDecorations(boolean v); + @WeaklyLinked + @Property(selector = "layerClass") + public static native Class getLayerClass(); + /**/ + /**//**/ + /**/ + @Method(selector = "setVisibleDateComponents:animated:") + public native void setVisibleDateComponents(NSDateComponents dateComponents, boolean animated); + @Method(selector = "reloadDecorationsForDateComponents:animated:") + public native void reloadDecorations(NSArray dates, boolean animated); + /** + * @since Available in iOS 9.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute); + /** + * @since Available in iOS 10.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecoration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecoration.java new file mode 100644 index 000000000..97b3e6ed8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecoration.java @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UICalendarViewDecoration/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UICalendarViewDecorationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UICalendarViewDecoration.class); }/**/ + /**//**/ + /**/ + public UICalendarViewDecoration() {} + protected UICalendarViewDecoration(Handle h, long handle) { super(h, handle); } + protected UICalendarViewDecoration(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithImage:color:size:") + public UICalendarViewDecoration(UIImage image, UIColor color, UICalendarViewDecorationSize size) { super((SkipInit) null); initObject(init(image, color, size)); } + @Method(selector = "initWithCustomViewProvider:") + public UICalendarViewDecoration(@Block Block0 customViewProvider) { super((SkipInit) null); initObject(init(customViewProvider)); } + public UICalendarViewDecoration(UIColor color, UICalendarViewDecorationSize size) { super((Handle) null, create(color, size)); retain(getHandle()); } + public UICalendarViewDecoration(UIImage image) { super((Handle) null, create(image)); retain(getHandle()); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "initWithImage:color:size:") + protected native @Pointer long init(UIImage image, UIColor color, UICalendarViewDecorationSize size); + @Method(selector = "initWithCustomViewProvider:") + protected native @Pointer long init(@Block Block0 customViewProvider); + @Method(selector = "decorationWithColor:size:") + protected static native @Pointer long create(UIColor color, UICalendarViewDecorationSize size); + @Method(selector = "decorationWithImage:") + protected static native @Pointer long create(UIImage image); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecorationSize.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecorationSize.java new file mode 100644 index 000000000..1e122dcb6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDecorationSize.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UICalendarViewDecorationSize/**/ implements ValuedEnum { + /**/ + Small(0L), + Medium(1L), + Large(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UICalendarViewDecorationSize/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UICalendarViewDecorationSize/**/ valueOf(long n) { + for (/**/UICalendarViewDecorationSize/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UICalendarViewDecorationSize/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegate.java new file mode 100644 index 000000000..264062065 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegate.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UICalendarViewDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "calendarView:decorationForDateComponents:") + UICalendarViewDecoration getDecoration(UICalendarView calendarView, NSDateComponents dateComponents); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegateAdapter.java new file mode 100644 index 000000000..29f91a082 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegateAdapter.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UICalendarViewDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements UICalendarViewDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("calendarView:decorationForDateComponents:") + public UICalendarViewDecoration getDecoration(UICalendarView calendarView, NSDateComponents dateComponents) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICellAccessoryPopUpMenu.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICellAccessoryPopUpMenu.java new file mode 100644 index 000000000..c77721d8b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICellAccessoryPopUpMenu.java @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UICellAccessoryPopUpMenu/**/ + extends /**/UICellAccessory/**/ + /**//**/ { + + /**/public static class UICellAccessoryPopUpMenuPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UICellAccessoryPopUpMenu.class); }/**/ + /**//**/ + /**/ + protected UICellAccessoryPopUpMenu() {} + protected UICellAccessoryPopUpMenu(Handle h, long handle) { super(h, handle); } + protected UICellAccessoryPopUpMenu(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithMenu:") + public UICellAccessoryPopUpMenu(UIMenu menu) { super((SkipInit) null); initObject(init(menu)); } + @Method(selector = "initWithCoder:") + public UICellAccessoryPopUpMenu(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "menu") + public native UIMenu getMenu(); + @Property(selector = "selectedElementDidChangeHandler") + public native @Block VoidBlock1 getSelectedElementDidChangeHandler(); + @Property(selector = "setSelectedElementDidChangeHandler:") + public native void setSelectedElementDidChangeHandler(@Block VoidBlock1 v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithMenu:") + protected native @Pointer long init(UIMenu menu); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionView.java index 95a6b40af..e8e6cc624 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionView.java @@ -141,6 +141,16 @@ public UICollectionView() {} */ @Property(selector = "setReorderingCadence:") public native void setReorderingCadence(UICollectionViewReorderingCadence v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "selfSizingInvalidation") + public native UICollectionViewSelfSizingInvalidation getSelfSizingInvalidation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSelfSizingInvalidation:") + public native void setSelfSizingInvalidation(UICollectionViewSelfSizingInvalidation v); @Property(selector = "backgroundView") public native UIView getBackgroundView(); @Property(selector = "setBackgroundView:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewCell.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewCell.java index dd51a56b2..fdcf6f303 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewCell.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewCell.java @@ -156,6 +156,11 @@ public UICollectionViewCell() {} */ @Method(selector = "dragStateDidChange:") public native void dragStateDidChange(UICollectionViewCellDragState dragState); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "defaultBackgroundConfiguration") + public native UIBackgroundConfiguration defaultBackgroundConfiguration(); /** * @since Available in iOS 9.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewController.java index 32994fdbc..f5ad5c35a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewController.java @@ -111,6 +111,16 @@ public UICollectionViewController() {} public native void didSelectItem(UICollectionView collectionView, NSIndexPath indexPath); @Method(selector = "collectionView:didDeselectItemAtIndexPath:") public native void didDeselectItem(UICollectionView collectionView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "collectionView:canPerformPrimaryActionForItemAtIndexPath:") + public native boolean canPerformPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "collectionView:performPrimaryActionForItemAtIndexPath:") + public native void performPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath); @Method(selector = "collectionView:willDisplayCell:forItemAtIndexPath:") public native void willDisplayCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath); @Method(selector = "collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:") @@ -120,19 +130,19 @@ public UICollectionViewController() {} @Method(selector = "collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:") public native void didEndDisplayingSupplementaryView(UICollectionView collectionView, UICollectionReusableView view, String elementKind, NSIndexPath indexPath); /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @Method(selector = "collectionView:shouldShowMenuForItemAtIndexPath:") public native boolean shouldShowMenuForItem(UICollectionView collectionView, NSIndexPath indexPath); /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @Method(selector = "collectionView:canPerformAction:forItemAtIndexPath:withSender:") public native boolean canPerformAction(UICollectionView collectionView, Selector action, NSIndexPath indexPath, NSObject sender); /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @Method(selector = "collectionView:performAction:forItemAtIndexPath:withSender:") @@ -207,20 +217,20 @@ public UICollectionViewController() {} @Method(selector = "collectionViewDidEndMultipleSelectionInteraction:") public native void collectionViewDidEndMultipleSelectionInteraction(UICollectionView collectionView); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @Method(selector = "collectionView:contextMenuConfigurationForItemAtIndexPath:point:") - public native UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point); + @Method(selector = "collectionView:contextMenuConfigurationForItemsAtIndexPaths:point:") + public native UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSArray indexPaths, @ByVal CGPoint point); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @Method(selector = "collectionView:previewForHighlightingContextMenuWithConfiguration:") - public native UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); + @Method(selector = "collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath:") + public native UITargetedPreview getContextMenuHighlightPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @Method(selector = "collectionView:previewForDismissingContextMenuWithConfiguration:") - public native UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); + @Method(selector = "collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath:") + public native UITargetedPreview getContextMenuDismissalPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath); /** * @since Available in iOS 13.0 and later. */ @@ -241,6 +251,27 @@ public UICollectionViewController() {} */ @Method(selector = "collectionView:sceneActivationConfigurationForItemAtIndexPath:point:") public native UIWindowSceneActivationConfiguration getSceneActivationConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: + */ + @Deprecated + @Method(selector = "collectionView:contextMenuConfigurationForItemAtIndexPath:point:") + public native UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath: + */ + @Deprecated + @Method(selector = "collectionView:previewForHighlightingContextMenuWithConfiguration:") + public native UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath: + */ + @Deprecated + @Method(selector = "collectionView:previewForDismissingContextMenuWithConfiguration:") + public native UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); @Method(selector = "scrollViewDidScroll:") public native void didScroll(UIScrollView scrollView); @Method(selector = "scrollViewDidZoom:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegate.java index 0792037a2..33f265602 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegate.java @@ -71,6 +71,16 @@ void didSelectItem(UICollectionView collectionView, NSIndexPath indexPath); @Method(selector = "collectionView:didDeselectItemAtIndexPath:") void didDeselectItem(UICollectionView collectionView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "collectionView:canPerformPrimaryActionForItemAtIndexPath:") + boolean canPerformPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "collectionView:performPrimaryActionForItemAtIndexPath:") + void performPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath); @Method(selector = "collectionView:willDisplayCell:forItemAtIndexPath:") void willDisplayCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath); @Method(selector = "collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:") @@ -80,19 +90,19 @@ @Method(selector = "collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:") void didEndDisplayingSupplementaryView(UICollectionView collectionView, UICollectionReusableView view, String elementKind, NSIndexPath indexPath); /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @Method(selector = "collectionView:shouldShowMenuForItemAtIndexPath:") boolean shouldShowMenuForItem(UICollectionView collectionView, NSIndexPath indexPath); /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @Method(selector = "collectionView:canPerformAction:forItemAtIndexPath:withSender:") boolean canPerformAction(UICollectionView collectionView, Selector action, NSIndexPath indexPath, NSObject sender); /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @Method(selector = "collectionView:performAction:forItemAtIndexPath:withSender:") @@ -167,20 +177,20 @@ @Method(selector = "collectionViewDidEndMultipleSelectionInteraction:") void collectionViewDidEndMultipleSelectionInteraction(UICollectionView collectionView); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @Method(selector = "collectionView:contextMenuConfigurationForItemAtIndexPath:point:") - UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point); + @Method(selector = "collectionView:contextMenuConfigurationForItemsAtIndexPaths:point:") + UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSArray indexPaths, @ByVal CGPoint point); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @Method(selector = "collectionView:previewForHighlightingContextMenuWithConfiguration:") - UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); + @Method(selector = "collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath:") + UITargetedPreview getContextMenuHighlightPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @Method(selector = "collectionView:previewForDismissingContextMenuWithConfiguration:") - UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); + @Method(selector = "collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath:") + UITargetedPreview getContextMenuDismissalPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath); /** * @since Available in iOS 13.0 and later. */ @@ -201,6 +211,27 @@ */ @Method(selector = "collectionView:sceneActivationConfigurationForItemAtIndexPath:point:") UIWindowSceneActivationConfiguration getSceneActivationConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: + */ + @Deprecated + @Method(selector = "collectionView:contextMenuConfigurationForItemAtIndexPath:point:") + UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath: + */ + @Deprecated + @Method(selector = "collectionView:previewForHighlightingContextMenuWithConfiguration:") + UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath: + */ + @Deprecated + @Method(selector = "collectionView:previewForDismissingContextMenuWithConfiguration:") + UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegateAdapter.java index 950f72289..b6079713f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewDelegateAdapter.java @@ -73,6 +73,16 @@ public void didUnhighlightItem(UICollectionView collectionView, NSIndexPath inde public void didSelectItem(UICollectionView collectionView, NSIndexPath indexPath) {} @NotImplemented("collectionView:didDeselectItemAtIndexPath:") public void didDeselectItem(UICollectionView collectionView, NSIndexPath indexPath) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:canPerformPrimaryActionForItemAtIndexPath:") + public boolean canPerformPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath) { return false; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:performPrimaryActionForItemAtIndexPath:") + public void performPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath) {} @NotImplemented("collectionView:willDisplayCell:forItemAtIndexPath:") public void willDisplayCell(UICollectionView collectionView, UICollectionViewCell cell, NSIndexPath indexPath) {} @NotImplemented("collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:") @@ -82,19 +92,19 @@ public void didEndDisplayingCell(UICollectionView collectionView, UICollectionVi @NotImplemented("collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:") public void didEndDisplayingSupplementaryView(UICollectionView collectionView, UICollectionReusableView view, String elementKind, NSIndexPath indexPath) {} /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @NotImplemented("collectionView:shouldShowMenuForItemAtIndexPath:") public boolean shouldShowMenuForItem(UICollectionView collectionView, NSIndexPath indexPath) { return false; } /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @NotImplemented("collectionView:canPerformAction:forItemAtIndexPath:withSender:") public boolean canPerformAction(UICollectionView collectionView, Selector action, NSIndexPath indexPath, NSObject sender) { return false; } /** - * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemAtIndexPath: + * @deprecated Deprecated in iOS 13.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: */ @Deprecated @NotImplemented("collectionView:performAction:forItemAtIndexPath:withSender:") @@ -169,20 +179,20 @@ public void didBeginMultipleSelectionInteraction(UICollectionView collectionView @NotImplemented("collectionViewDidEndMultipleSelectionInteraction:") public void collectionViewDidEndMultipleSelectionInteraction(UICollectionView collectionView) {} /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @NotImplemented("collectionView:contextMenuConfigurationForItemAtIndexPath:point:") - public UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point) { return null; } + @NotImplemented("collectionView:contextMenuConfigurationForItemsAtIndexPaths:point:") + public UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSArray indexPaths, @ByVal CGPoint point) { return null; } /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @NotImplemented("collectionView:previewForHighlightingContextMenuWithConfiguration:") - public UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration) { return null; } + @NotImplemented("collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath:") + public UITargetedPreview getContextMenuHighlightPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath) { return null; } /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 16.0 and later. */ - @NotImplemented("collectionView:previewForDismissingContextMenuWithConfiguration:") - public UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration) { return null; } + @NotImplemented("collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath:") + public UITargetedPreview getContextMenuDismissalPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath) { return null; } /** * @since Available in iOS 13.0 and later. */ @@ -203,5 +213,26 @@ public void willEndContextMenuInteraction(UICollectionView collectionView, UICon */ @NotImplemented("collectionView:sceneActivationConfigurationForItemAtIndexPath:point:") public UIWindowSceneActivationConfiguration getSceneActivationConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point) { return null; } + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfigurationForItemsAtIndexPaths:point: + */ + @Deprecated + @NotImplemented("collectionView:contextMenuConfigurationForItemAtIndexPath:point:") + public UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSIndexPath indexPath, @ByVal CGPoint point) { return null; } + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath: + */ + @Deprecated + @NotImplemented("collectionView:previewForHighlightingContextMenuWithConfiguration:") + public UITargetedPreview getPreviewForHighlightingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration) { return null; } + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath: + */ + @Deprecated + @NotImplemented("collectionView:previewForDismissingContextMenuWithConfiguration:") + public UITargetedPreview getPreviewForDismissingContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration) { return null; } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewModel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewModel.java index 2ac7b8705..e25d9fab7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewModel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewModel.java @@ -161,7 +161,7 @@ public void willCommitMenu(UICollectionView collectionView, UIContextMenuInterac /** * @since Available in iOS 14.0 and later. */ - @Override + @NotImplemented("collectionView:canEditItemAtIndexPath:") public boolean canEditItem(UICollectionView collectionView, NSIndexPath indexPath) { return false; } @@ -169,19 +169,19 @@ public boolean canEditItem(UICollectionView collectionView, NSIndexPath indexPat /** * @since Available in iOS 13.2 and later. */ - @Override + @NotImplemented("collectionView:willDisplayContextMenuWithConfiguration:animator:") public void willDisplayContextMenu(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator) {} /** * @since Available in iOS 13.2 and later. */ - @Override + @NotImplemented("collectionView:willEndContextMenuInteractionWithConfiguration:animator:") public void willEndContextMenuInteraction(UICollectionView collectionView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator) {} /** * @since Available in iOS 15.0 and later. */ - @Override + @NotImplemented("collectionView:selectionFollowsFocusForItemAtIndexPath:") public boolean isSelectionFollowsFocus(UICollectionView collectionView, NSIndexPath indexPath) { return false; } @@ -189,7 +189,7 @@ public boolean isSelectionFollowsFocus(UICollectionView collectionView, NSIndexP /** * @since Available in iOS 15.0 and later. */ - @Override + @NotImplemented("collectionView:targetIndexPathForMoveOfItemFromOriginalIndexPath:atCurrentIndexPath:toProposedIndexPath:") public NSIndexPath getTargetIndexPathForMoveOfItemFromOriginalIndexPath(UICollectionView collectionView, NSIndexPath originalIndexPath, NSIndexPath currentIndexPath, NSIndexPath proposedIndexPath) { return null; } @@ -197,8 +197,48 @@ public NSIndexPath getTargetIndexPathForMoveOfItemFromOriginalIndexPath(UICollec /** * @since Available in iOS 15.0 and later. */ - @Override + @NotImplemented("collectionView:sceneActivationConfigurationForItemAtIndexPath:point:") public UIWindowSceneActivationConfiguration getSceneActivationConfiguration(UICollectionView collectionView, NSIndexPath indexPath, CGPoint point) { return null; } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:canPerformPrimaryActionForItemAtIndexPath:") + public boolean canPerformPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath) { + return false; + } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:performPrimaryActionForItemAtIndexPath:") + public void performPrimaryAction(UICollectionView collectionView, NSIndexPath indexPath) { + + } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:contextMenuConfigurationForItemsAtIndexPaths:point:") + public UIContextMenuConfiguration getContextMenuConfiguration(UICollectionView collectionView, NSArray indexPaths, CGPoint point) { + return null; + } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:contextMenuConfiguration:highlightPreviewForItemAtIndexPath:") + public UITargetedPreview getContextMenuHighlightPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath) { + return null; + } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("collectionView:contextMenuConfiguration:dismissalPreviewForItemAtIndexPath:") + public UITargetedPreview getContextMenuDismissalPreview(UICollectionView collectionView, UIContextMenuConfiguration configuration, NSIndexPath indexPath) { + return null; + } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewSelfSizingInvalidation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewSelfSizingInvalidation.java new file mode 100644 index 000000000..c06abe9b8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICollectionViewSelfSizingInvalidation.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UICollectionViewSelfSizingInvalidation/**/ implements ValuedEnum { + /**/ + Disabled(0L), + Enabled(1L), + EnabledIncludingConstraints(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UICollectionViewSelfSizingInvalidation/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UICollectionViewSelfSizingInvalidation/**/ valueOf(long n) { + for (/**/UICollectionViewSelfSizingInvalidation/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UICollectionViewSelfSizingInvalidation/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICommand.java index 1244d2a19..3bd8215f2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICommand.java @@ -49,7 +49,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UICommand/**/ extends /**/UIMenuElement/**/ - /**//**/ { + /**/implements UIMenuLeaf/**/ { /**/public static class UICommandPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(UICommand.class); }/**/ @@ -90,6 +90,13 @@ protected UICommand() {} public native void setState(UIMenuElementState v); @Property(selector = "alternates") public native NSArray getAlternates(); + @Property(selector = "sender") + public native NSObject getSender(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "presentationSourceItem") + public native UIPopoverPresentationControllerSourceItem getPresentationSourceItem(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ @@ -112,5 +119,7 @@ public static class Tags { protected static native @Pointer long create(String title, UIImage image, Selector action, NSObject propertyList); @Method(selector = "commandWithTitle:image:action:propertyList:alternates:") protected static native @Pointer long create(String title, UIImage image, Selector action, NSObject propertyList, NSArray alternates); + @Method(selector = "performWithSender:target:") + public native void perform(NSObject sender, NSObject target); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentView.java index 18976f320..903b12a6f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentView.java @@ -62,7 +62,11 @@ void setConfiguration(UIContentConfiguration v); /**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "supportsConfiguration:") + boolean supportsConfiguration(UIContentConfiguration configuration); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentViewAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentViewAdapter.java index 2fbb2245a..359b16091 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentViewAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContentViewAdapter.java @@ -62,6 +62,10 @@ public void setConfiguration(UIContentConfiguration v) {} /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("supportsConfiguration:") + public boolean supportsConfiguration(UIContentConfiguration configuration) { return false; } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfiguration.java index 4bd2f1a1c..548643f06 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfiguration.java @@ -63,6 +63,36 @@ public UIContextMenuConfiguration() {} /**/ @Property(selector = "identifier") public native NSObject getIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "secondaryItemIdentifiers") + public native NSSet getSecondaryItemIdentifiers(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSecondaryItemIdentifiers:") + public native void setSecondaryItemIdentifiers(NSSet v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "badgeCount") + public native @MachineSizedSInt long getBadgeCount(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setBadgeCount:") + public native void setBadgeCount(@MachineSizedSInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredMenuElementOrder") + public native UIContextMenuConfigurationElementOrder getPreferredMenuElementOrder(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredMenuElementOrder:") + public native void setPreferredMenuElementOrder(UIContextMenuConfigurationElementOrder v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfigurationElementOrder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfigurationElementOrder.java new file mode 100644 index 000000000..708968388 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuConfigurationElementOrder.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIContextMenuConfigurationElementOrder/**/ implements ValuedEnum { + /**/ + Automatic(0L), + Priority(1L), + Fixed(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIContextMenuConfigurationElementOrder/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIContextMenuConfigurationElementOrder/**/ valueOf(long n) { + for (/**/UIContextMenuConfigurationElementOrder/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIContextMenuConfigurationElementOrder/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegate.java index ab2e9d189..75b9d0f06 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegate.java @@ -61,16 +61,36 @@ /**/ @Method(selector = "contextMenuInteraction:configurationForMenuAtLocation:") UIContextMenuConfiguration getConfiguration(UIContextMenuInteraction interaction, @ByVal CGPoint location); - @Method(selector = "contextMenuInteraction:previewForHighlightingMenuWithConfiguration:") - UITargetedPreview getPreviewForHighlightingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration); - @Method(selector = "contextMenuInteraction:previewForDismissingMenuWithConfiguration:") - UITargetedPreview getPreviewForDismissingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:") + UITargetedPreview getHighlightPreview(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, NSObject identifier); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:") + UITargetedPreview getDismissalPreview(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, NSObject identifier); @Method(selector = "contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:") void willPerformPreviewAction(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionCommitAnimating animator); @Method(selector = "contextMenuInteraction:willDisplayMenuForConfiguration:animator:") void willDisplayMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator); @Method(selector = "contextMenuInteraction:willEndForConfiguration:animator:") void willEnd(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use contextMenuInteraction:configuration:previewForHighlightingItemWithIdentifier: + */ + @Deprecated + @Method(selector = "contextMenuInteraction:previewForHighlightingMenuWithConfiguration:") + UITargetedPreview getPreviewForHighlightingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use contextMenuInteraction:configuration:previewForDismissingToItemWithIdentifier: + */ + @Deprecated + @Method(selector = "contextMenuInteraction:previewForDismissingMenuWithConfiguration:") + UITargetedPreview getPreviewForDismissingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegateAdapter.java index 7ba07e98e..f59d0203b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIContextMenuInteractionDelegateAdapter.java @@ -61,15 +61,35 @@ /**/ @NotImplemented("contextMenuInteraction:configurationForMenuAtLocation:") public UIContextMenuConfiguration getConfiguration(UIContextMenuInteraction interaction, @ByVal CGPoint location) { return null; } - @NotImplemented("contextMenuInteraction:previewForHighlightingMenuWithConfiguration:") - public UITargetedPreview getPreviewForHighlightingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration) { return null; } - @NotImplemented("contextMenuInteraction:previewForDismissingMenuWithConfiguration:") - public UITargetedPreview getPreviewForDismissingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:") + public UITargetedPreview getHighlightPreview(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, NSObject identifier) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:") + public UITargetedPreview getDismissalPreview(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, NSObject identifier) { return null; } @NotImplemented("contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:") public void willPerformPreviewAction(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionCommitAnimating animator) {} @NotImplemented("contextMenuInteraction:willDisplayMenuForConfiguration:animator:") public void willDisplayMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator) {} @NotImplemented("contextMenuInteraction:willEndForConfiguration:animator:") public void willEnd(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator) {} + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use contextMenuInteraction:configuration:previewForHighlightingItemWithIdentifier: + */ + @Deprecated + @NotImplemented("contextMenuInteraction:previewForHighlightingMenuWithConfiguration:") + public UITargetedPreview getPreviewForHighlightingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration) { return null; } + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use contextMenuInteraction:configuration:previewForDismissingToItemWithIdentifier: + */ + @Deprecated + @NotImplemented("contextMenuInteraction:previewForDismissingMenuWithConfiguration:") + public UITargetedPreview getPreviewForDismissingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration) { return null; } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIControl.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIControl.java index 4ce7093c7..94d32edc9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIControl.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIControl.java @@ -429,6 +429,16 @@ public void removeListener(Listener listener) { */ @Method(selector = "contextMenuInteraction:willEndForConfiguration:animator:") public native void willEnd(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:") + public native UITargetedPreview getHighlightPreview(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, NSObject identifier); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:") + public native UITargetedPreview getDismissalPreview(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, NSObject identifier); @Method(selector = "contextMenuInteraction:willPerformPreviewActionForMenuWithConfiguration:animator:") public native void willPerformPreviewAction(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionCommitAnimating animator); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDataDetectorTypes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDataDetectorTypes.java index 6a66e2a80..dd9970a2e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDataDetectorTypes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDataDetectorTypes.java @@ -63,6 +63,14 @@ public final class /**/UIDataDetectorTypes/**/ extends Bits*/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentBrowserViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentBrowserViewController.java index 27a4c0b16..a9607e7ee 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentBrowserViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentBrowserViewController.java @@ -174,6 +174,11 @@ public static UIDocumentBrowserViewController createForOpeningContentTypes(NSAr public native void revealDocument(NSURL url, boolean importIfNeeded, @Block VoidBlock2 completion); @Method(selector = "importDocumentAtURL:nextToDocumentAtURL:mode:completionHandler:") public native void importDocument(NSURL documentURL, NSURL neighbourURL, UIDocumentBrowserImportMode importMode, @Block VoidBlock2 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "renameDocumentAtURL:proposedName:completionHandler:") + public native void renameDocument(NSURL documentURL, String proposedName, @Block VoidBlock2 completionHandler); /** * @since Available in iOS 12.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentProperties.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentProperties.java new file mode 100644 index 000000000..f4354618a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIDocumentProperties.java @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIDocumentProperties/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UIDocumentPropertiesPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIDocumentProperties.class); }/**/ + /**//**/ + /**/ + protected UIDocumentProperties() {} + protected UIDocumentProperties(Handle h, long handle) { super(h, handle); } + protected UIDocumentProperties(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithURL:") + public UIDocumentProperties(NSURL url) { super((SkipInit) null); initObject(init(url)); } + @Method(selector = "initWithMetadata:") + public UIDocumentProperties(LPLinkMetadata metadata) { super((SkipInit) null); initObject(init(metadata)); } + /**/ + /**/ + @Property(selector = "metadata") + public native LPLinkMetadata getMetadata(); + @Property(selector = "setMetadata:") + public native void setMetadata(LPLinkMetadata v); + @Property(selector = "dragItemsProvider") + public native @Block Block1> getDragItemsProvider(); + @Property(selector = "setDragItemsProvider:") + public native void setDragItemsProvider(@Block Block1> v); + @Property(selector = "activityViewControllerProvider") + public native @Block Block0 getActivityViewControllerProvider(); + @Property(selector = "setActivityViewControllerProvider:") + public native void setActivityViewControllerProvider(@Block Block0 v); + @Property(selector = "wantsIconRepresentation") + public native boolean wantsIconRepresentation(); + @Property(selector = "setWantsIconRepresentation:") + public native void setWantsIconRepresentation(boolean v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithURL:") + protected native @Pointer long init(NSURL url); + @Method(selector = "initWithMetadata:") + protected native @Pointer long init(LPLinkMetadata metadata); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuArrowDirection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuArrowDirection.java new file mode 100644 index 000000000..06a1ff2d2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuArrowDirection.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIEditMenuArrowDirection/**/ implements ValuedEnum { + /**/ + Automatic(0L), + Up(1L), + Down(2L), + Left(3L), + Right(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIEditMenuArrowDirection/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIEditMenuArrowDirection/**/ valueOf(long n) { + for (/**/UIEditMenuArrowDirection/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIEditMenuArrowDirection/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuConfiguration.java new file mode 100644 index 000000000..cbbec60ff --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuConfiguration.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIEditMenuConfiguration/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UIEditMenuConfigurationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIEditMenuConfiguration.class); }/**/ + /**//**/ + /**/ + protected UIEditMenuConfiguration() {} + protected UIEditMenuConfiguration(Handle h, long handle) { super(h, handle); } + protected UIEditMenuConfiguration(SkipInit skipInit) { super(skipInit); } + public UIEditMenuConfiguration(NSObject identifier, @ByVal CGPoint sourcePoint) { super((Handle) null, create(identifier, sourcePoint)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "identifier") + public native NSObject getIdentifier(); + @Property(selector = "sourcePoint") + public native @ByVal CGPoint getSourcePoint(); + @Property(selector = "preferredArrowDirection") + public native UIEditMenuArrowDirection getPreferredArrowDirection(); + @Property(selector = "setPreferredArrowDirection:") + public native void setPreferredArrowDirection(UIEditMenuArrowDirection v); + /**/ + /**//**/ + /**/ + @Method(selector = "configurationWithIdentifier:sourcePoint:") + protected static native @Pointer long create(NSObject identifier, @ByVal CGPoint sourcePoint); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteraction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteraction.java new file mode 100644 index 000000000..bd675a9ed --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteraction.java @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIEditMenuInteraction/**/ + extends /**/NSObject/**/ + /**/implements UIInteraction/**/ { + + /**/public static class UIEditMenuInteractionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIEditMenuInteraction.class); }/**/ + /**//**/ + /**/ + protected UIEditMenuInteraction() {} + protected UIEditMenuInteraction(Handle h, long handle) { super(h, handle); } + protected UIEditMenuInteraction(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithDelegate:") + public UIEditMenuInteraction(UIEditMenuInteractionDelegate delegate) { super((SkipInit) null); initObject(init(delegate)); } + /**/ + /**/ + @Property(selector = "delegate") + public native UIEditMenuInteractionDelegate getDelegate(); + @Property(selector = "view") + public native UIView getView(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithDelegate:") + protected native @Pointer long init(UIEditMenuInteractionDelegate delegate); + @Method(selector = "presentEditMenuWithConfiguration:") + public native void presentEditMenu(UIEditMenuConfiguration configuration); + @Method(selector = "dismissMenu") + public native void dismissMenu(); + @Method(selector = "reloadVisibleMenu") + public native void reloadVisibleMenu(); + @Method(selector = "updateVisibleMenuPositionAnimated:") + public native void updateVisibleMenuPositionAnimated(boolean animated); + @Method(selector = "locationInView:") + public native @ByVal CGPoint locationInView(UIView view); + @Method(selector = "willMoveToView:") + public native void willMoveToView(UIView view); + @Method(selector = "didMoveToView:") + public native void didMoveToView(UIView view); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimating.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimating.java new file mode 100644 index 000000000..5173642dc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimating.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UIEditMenuInteractionAnimating/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "addAnimations:") + void addAnimations(@Block Runnable animations); + @Method(selector = "addCompletion:") + void addCompletion(@Block Runnable completion); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimatingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimatingAdapter.java new file mode 100644 index 000000000..454b6c8bf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionAnimatingAdapter.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UIEditMenuInteractionAnimatingAdapter/**/ + extends /**/NSObject/**/ + /**/implements UIEditMenuInteractionAnimating/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("addAnimations:") + public void addAnimations(@Block Runnable animations) {} + @NotImplemented("addCompletion:") + public void addCompletion(@Block Runnable completion) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegate.java new file mode 100644 index 000000000..536d82c0f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegate.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UIEditMenuInteractionDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "editMenuInteraction:menuForConfiguration:suggestedActions:") + UIMenu getMenu(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, NSArray suggestedActions); + @Method(selector = "editMenuInteraction:targetRectForConfiguration:") + @ByVal CGRect getTargetRect(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration); + @Method(selector = "editMenuInteraction:willPresentMenuForConfiguration:animator:") + void willPresentMenu(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, UIEditMenuInteractionAnimating animator); + @Method(selector = "editMenuInteraction:willDismissMenuForConfiguration:animator:") + void willDismissMenu(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, UIEditMenuInteractionAnimating animator); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegateAdapter.java new file mode 100644 index 000000000..28d00ca9a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIEditMenuInteractionDelegateAdapter.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UIEditMenuInteractionDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements UIEditMenuInteractionDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("editMenuInteraction:menuForConfiguration:suggestedActions:") + public UIMenu getMenu(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, NSArray suggestedActions) { return null; } + @NotImplemented("editMenuInteraction:targetRectForConfiguration:") + public @ByVal CGRect getTargetRect(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration) { return null; } + @NotImplemented("editMenuInteraction:willPresentMenuForConfiguration:animator:") + public void willPresentMenu(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, UIEditMenuInteractionAnimating animator) {} + @NotImplemented("editMenuInteraction:willDismissMenuForConfiguration:animator:") + public void willDismissMenu(UIEditMenuInteraction interaction, UIEditMenuConfiguration configuration, UIEditMenuInteractionAnimating animator) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteraction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteraction.java new file mode 100644 index 000000000..3b0eaf342 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteraction.java @@ -0,0 +1,105 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIFindInteraction/**/ + extends /**/NSObject/**/ + /**/implements UIInteraction/**/ { + + /**/public static class UIFindInteractionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIFindInteraction.class); }/**/ + /**//**/ + /**/ + protected UIFindInteraction() {} + protected UIFindInteraction(Handle h, long handle) { super(h, handle); } + protected UIFindInteraction(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSessionDelegate:") + public UIFindInteraction(UIFindInteractionDelegate sessionDelegate) { super((SkipInit) null); initObject(init(sessionDelegate)); } + /**/ + /**/ + @Property(selector = "isFindNavigatorVisible") + public native boolean isFindNavigatorVisible(); + @Property(selector = "activeFindSession") + public native UIFindSession getActiveFindSession(); + @Property(selector = "searchText") + public native String getSearchText(); + @Property(selector = "setSearchText:") + public native void setSearchText(String v); + @Property(selector = "replacementText") + public native String getReplacementText(); + @Property(selector = "setReplacementText:") + public native void setReplacementText(String v); + @Property(selector = "optionsMenuProvider") + public native @Block Block1, UIMenu> getOptionsMenuProvider(); + @Property(selector = "setOptionsMenuProvider:") + public native void setOptionsMenuProvider(@Block Block1, UIMenu> v); + @Property(selector = "delegate") + public native UIFindInteractionDelegate getDelegate(); + @Property(selector = "view") + public native UIView getView(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSessionDelegate:") + protected native @Pointer long init(UIFindInteractionDelegate sessionDelegate); + @Method(selector = "presentFindNavigatorShowingReplace:") + public native void presentFindNavigatorShowingReplace(boolean showingReplace); + @Method(selector = "dismissFindNavigator") + public native void dismissFindNavigator(); + @Method(selector = "findNext") + public native void findNext(); + @Method(selector = "findPrevious") + public native void findPrevious(); + @Method(selector = "updateResultCount") + public native void updateResultCount(); + @Method(selector = "willMoveToView:") + public native void willMoveToView(UIView view); + @Method(selector = "didMoveToView:") + public native void didMoveToView(UIView view); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegate.java new file mode 100644 index 000000000..fa9df9826 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegate.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UIFindInteractionDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "findInteraction:sessionForView:") + UIFindSession getSession(UIFindInteraction interaction, UIView view); + @Method(selector = "findInteraction:didBeginFindSession:") + void didBeginFindSession(UIFindInteraction interaction, UIFindSession session); + @Method(selector = "findInteraction:didEndFindSession:") + void didEndFindSession(UIFindInteraction interaction, UIFindSession session); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegateAdapter.java new file mode 100644 index 000000000..b44e762ed --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindInteractionDelegateAdapter.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UIFindInteractionDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements UIFindInteractionDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("findInteraction:sessionForView:") + public UIFindSession getSession(UIFindInteraction interaction, UIView view) { return null; } + @NotImplemented("findInteraction:didBeginFindSession:") + public void didBeginFindSession(UIFindInteraction interaction, UIFindSession session) {} + @NotImplemented("findInteraction:didEndFindSession:") + public void didEndFindSession(UIFindInteraction interaction, UIFindSession session) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSession.java new file mode 100644 index 000000000..575ead8d9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSession.java @@ -0,0 +1,96 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIFindSession/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UIFindSessionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIFindSession.class); }/**/ + /**//**/ + /**/ + public UIFindSession() {} + protected UIFindSession(Handle h, long handle) { super(h, handle); } + protected UIFindSession(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "resultCount") + public native @MachineSizedSInt long getResultCount(); + @Property(selector = "highlightedResultIndex") + public native @MachineSizedSInt long getHighlightedResultIndex(); + @Property(selector = "searchResultDisplayStyle") + public native UIFindSessionSearchResultDisplayStyle getSearchResultDisplayStyle(); + @Property(selector = "setSearchResultDisplayStyle:") + public native void setSearchResultDisplayStyle(UIFindSessionSearchResultDisplayStyle v); + @Property(selector = "supportsReplacement") + public native boolean supportsReplacement(); + @Property(selector = "allowsReplacementForCurrentlyHighlightedResult") + public native boolean allowsReplacementForCurrentlyHighlightedResult(); + /** + * @since Available in iOS 16.0 and later. + * @deprecated Deprecated in iOS 16.0. Use supportsReplacement + */ + @Deprecated + @Property(selector = "allowsReplacement") + public native boolean allowsReplacement(); + /**/ + /**//**/ + /**/ + @Method(selector = "performSearchWithQuery:options:") + public native void performSearch(String query, UITextSearchOptions options); + @Method(selector = "performSingleReplacementWithSearchQuery:replacementString:options:") + public native void performSingleReplacement(String searchQuery, String replacementString, UITextSearchOptions options); + @Method(selector = "replaceAllInstancesOfSearchQuery:withReplacementString:options:") + public native void replaceAllInstancesOfSearchQuery(String searchQuery, String replacementString, UITextSearchOptions options); + @Method(selector = "highlightNextResultInDirection:") + public native void highlightNextResultInDirection(UITextStorageDirection direction); + @Method(selector = "invalidateFoundResults") + public native void invalidateFoundResults(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSessionSearchResultDisplayStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSessionSearchResultDisplayStyle.java new file mode 100644 index 000000000..249177007 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFindSessionSearchResultDisplayStyle.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIFindSessionSearchResultDisplayStyle/**/ implements ValuedEnum { + /**/ + CurrentAndTotal(0L), + Total(1L), + None(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIFindSessionSearchResultDisplayStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIFindSessionSearchResultDisplayStyle/**/ valueOf(long n) { + for (/**/UIFindSessionSearchResultDisplayStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIFindSessionSearchResultDisplayStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFocusDebugger.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFocusDebugger.java index 68546ed30..1c60cecad 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFocusDebugger.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFocusDebugger.java @@ -72,7 +72,9 @@ public UIFocusDebugger() {} public static native UIFocusDebuggerOutput checkFocusabilityForItem(UIFocusItem item); @Method(selector = "simulateFocusUpdateRequestFromEnvironment:") public static native UIFocusDebuggerOutput simulateFocusUpdateRequestFromEnvironment(UIFocusEnvironment environment); - @Method(selector = "checkFocusGroupTreeForEnvironment:") - public static native String checkFocusGroupTreeForEnvironment(UIFocusEnvironment environment); + @Method(selector = "focusGroupsForEnvironment:") + public static native UIFocusDebuggerOutput focusGroupsForEnvironment(UIFocusEnvironment environment); + @Method(selector = "preferredFocusEnvironmentsForEnvironment:") + public static native UIFocusDebuggerOutput preferredFocusEnvironmentsForEnvironment(UIFocusEnvironment environment); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFont.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFont.java index 34606761b..d0d89a49c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFont.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFont.java @@ -130,6 +130,11 @@ public static UIFont getSystemFont(double fontSize, UIFontWeight weight) { */ @Method(selector = "monospacedDigitSystemFontOfSize:weight:") public static native UIFont getMonospacedDigitSystemFont(@MachineSizedFloat double fontSize, @MachineSizedFloat double weight); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "systemFontOfSize:weight:width:") + public static native UIFont getSystemFont(@MachineSizedFloat double fontSize, @MachineSizedFloat double weight, @MachineSizedFloat double width); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFontWidth.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFontWidth.java new file mode 100644 index 000000000..85872e650 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIFontWidth.java @@ -0,0 +1,164 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**/@Library("UIKit") @StronglyLinked/**/ +@Marshaler(/**/UIFontWidth/**/.Marshaler.class) +/**/public/**/ class /**/UIFontWidth/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/UIFontWidth/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static UIFontWidth toObject(Class cls, long handle, long flags) { + NSNumber o = (NSNumber) NSObject.Marshaler.toObject(NSNumber.class, handle, flags); + if (o == null) { + return null; + } + return UIFontWidth.valueOf(o.doubleValue()); + } + @MarshalsPointer + public static long toNative(UIFontWidth o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(NSNumber.valueOf(o.value()), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(UIFontWidth.valueOf(o.get(i).doubleValue())); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (UIFontWidth o : l) { + array.add(NSNumber.valueOf(o.value())); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final UIFontWidth Condensed = new UIFontWidth("Condensed"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final UIFontWidth Standard = new UIFontWidth("Standard"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final UIFontWidth Expanded = new UIFontWidth("Expanded"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final UIFontWidth Compressed = new UIFontWidth("Compressed"); + /**/ + + private static /**/UIFontWidth/**/[] values = new /**/UIFontWidth/**/[] {/**/Condensed, Standard, Expanded, Compressed/**/}; + + /**/UIFontWidth/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/UIFontWidth/**/ valueOf(/**/@MachineSizedFloat double/**/ value) { + for (/**/UIFontWidth/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/UIFontWidth/**/.class.getName()); + } + + /**//**/ + + /**/@Library("UIKit") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIFontWidthCondensed", optional=true) + public static native @MachineSizedFloat double Condensed(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIFontWidthStandard", optional=true) + public static native @MachineSizedFloat double Standard(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIFontWidthExpanded", optional=true) + public static native @MachineSizedFloat double Expanded(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIFontWidthCompressed", optional=true) + public static native @MachineSizedFloat double Compressed(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImage.java index a9e136373..4af1e4167 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImage.java @@ -449,6 +449,11 @@ public static UIImage getImage(File file) { */ @Method(selector = "systemImageNamed:compatibleWithTraitCollection:") public static native UIImage getSystemImage(String name, UITraitCollection traitCollection); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "systemImageNamed:variableValue:withConfiguration:") + public static native UIImage getSystemImage(String name, double value, UIImageConfiguration configuration); @Method(selector = "imageNamed:") public static native UIImage getImage(String name); /** @@ -458,6 +463,11 @@ public static UIImage getImage(File file) { public static native UIImage getImage(String name, NSBundle bundle, UIImageConfiguration configuration); @Method(selector = "imageNamed:inBundle:compatibleWithTraitCollection:") public static native UIImage getImage(String name, NSBundle bundle, UITraitCollection traitCollection); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "imageNamed:inBundle:variableValue:withConfiguration:") + public static native UIImage getImage(String name, NSBundle bundle, double value, UIImageConfiguration configuration); @Method(selector = "imageWithContentsOfFile:") private static native UIImage getImageWithContentsOfFile(String path); @Method(selector = "animatedImageNamed:duration:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImageSymbolConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImageSymbolConfiguration.java index 36d3eee5e..aa168f817 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImageSymbolConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIImageSymbolConfiguration.java @@ -110,5 +110,10 @@ protected UIImageSymbolConfiguration() {} */ @Method(selector = "configurationPreferringMulticolor") public static native UIImageSymbolConfiguration configurationPreferringMulticolor(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "configurationPreferringMonochrome") + public static native UIImageSymbolConfiguration configurationPreferringMonochrome(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java index c7e374248..080131231 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java @@ -144,10 +144,6 @@ public UILabel() {} public native @MachineSizedFloat double getPreferredMaxLayoutWidth(); @Property(selector = "setPreferredMaxLayoutWidth:") public native void setPreferredMaxLayoutWidth(@MachineSizedFloat double v); - @Property(selector = "showsExpansionTextWhenTruncated") - public native boolean showsExpansionTextWhenTruncated(); - @Property(selector = "setShowsExpansionTextWhenTruncated:") - public native void setShowsExpansionTextWhenTruncated(boolean v); /** * @deprecated Deprecated in iOS 7.0. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuide.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuide.java index 642c48400..95e2d1459 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuide.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuide.java @@ -49,7 +49,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UILayoutGuide/**/ extends /**/NSObject/**/ - /**/implements NSCoding/**/ { + /**/implements NSCoding, UIPopoverPresentationControllerSourceItem/**/ { /**/public static class UILayoutGuidePtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(UILayoutGuide.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFitting.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFitting.java new file mode 100644 index 000000000..82c1e91c8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFitting.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/UILayoutGuideAspectFitting/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "aspectRatio") + @MachineSizedFloat double getAspectRatio(); + @Property(selector = "setAspectRatio:") + void setAspectRatio(@MachineSizedFloat double v); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFittingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFittingAdapter.java new file mode 100644 index 000000000..82feb776a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILayoutGuideAspectFittingAdapter.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UILayoutGuideAspectFittingAdapter/**/ + extends /**/NSObject/**/ + /**/implements UILayoutGuideAspectFitting/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("aspectRatio") + public @MachineSizedFloat double getAspectRatio() { return 0; } + @NotImplemented("setAspectRatio:") + public void setAspectRatio(@MachineSizedFloat double v) {} + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentView.java index 35ee96005..d8b966697 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentView.java @@ -94,6 +94,11 @@ protected UIListContentView() {} */ @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "supportsConfiguration:") + public native boolean supportsConfiguration(UIContentConfiguration configuration); /**/ @Override diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenu.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenu.java index eb24d3798..8fadfd2f8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenu.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenu.java @@ -72,6 +72,16 @@ protected UIMenu() {} public native UIMenuIdentifier getIdentifier(); @Property(selector = "options") public native UIMenuOptions getOptions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredElementSize") + public native UIMenuElementSize getPreferredElementSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredElementSize:") + public native void setPreferredElementSize(UIMenuElementSize v); @Property(selector = "children") public native NSArray getChildren(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuController.java index 0c35b88f0..a5ed9f69f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuController.java @@ -42,9 +42,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ /**/ -/**/@Library("UIKit") @NativeClass/**/ +/**/@Library("UIKit") @NativeClass @Deprecated/**/ /**/public/**/ class /**/UIMenuController/**/ extends /**/NSObject/**/ /**//**/ { @@ -156,14 +158,34 @@ private void updateMenu(NSArray items) { } } /**/ + /** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ + @Deprecated @GlobalValue(symbol="UIMenuControllerWillShowMenuNotification", optional=true) public static native NSString WillShowMenuNotification(); + /** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ + @Deprecated @GlobalValue(symbol="UIMenuControllerDidShowMenuNotification", optional=true) public static native NSString DidShowMenuNotification(); + /** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ + @Deprecated @GlobalValue(symbol="UIMenuControllerWillHideMenuNotification", optional=true) public static native NSString WillHideMenuNotification(); + /** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ + @Deprecated @GlobalValue(symbol="UIMenuControllerDidHideMenuNotification", optional=true) public static native NSString DidHideMenuNotification(); + /** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ + @Deprecated @GlobalValue(symbol="UIMenuControllerMenuFrameDidChangeNotification", optional=true) public static native NSString MenuFrameDidChangeNotification(); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuControllerArrowDirection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuControllerArrowDirection.java index a5ad914b9..57811cea6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuControllerArrowDirection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuControllerArrowDirection.java @@ -42,9 +42,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. UIMenuController is deprecated. Use UIEditMenuInteraction instead. + */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Deprecated/**/ public enum /**/UIMenuControllerArrowDirection/**/ implements ValuedEnum { /**/ Default(0L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementAttributes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementAttributes.java index de96b16ad..bb20f998e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementAttributes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementAttributes.java @@ -53,6 +53,10 @@ public final class /**/UIMenuElementAttributes/**/ extends Bits*/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementSize.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementSize.java new file mode 100644 index 000000000..915f2fa38 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuElementSize.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIMenuElementSize/**/ implements ValuedEnum { + /**/ + Small(0L), + Medium(1L), + Large(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIMenuElementSize/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIMenuElementSize/**/ valueOf(long n) { + for (/**/UIMenuElementSize/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIMenuElementSize/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuIdentifier.java index e2e99fa78..fbc1f604b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuIdentifier.java @@ -158,6 +158,10 @@ public static long toNative(List l, long flags) { * @since Available in iOS 13.0 and later. */ public static final UIMenuIdentifier Print = new UIMenuIdentifier("Print"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final UIMenuIdentifier Document = new UIMenuIdentifier("Document"); /** * @since Available in iOS 13.0 and later. */ @@ -280,7 +284,7 @@ public static long toNative(List l, long flags) { public static final UIMenuIdentifier Root = new UIMenuIdentifier("Root"); /**/ - private static /**/UIMenuIdentifier/**/[] values = new /**/UIMenuIdentifier/**/[] {/**/Application, File, Edit, View, Window, Help, About, Preferences, Services, Hide, Quit, NewScene, OpenRecent, Close, Print, UndoRedo, StandardEdit, Find, Replace, Share, TextStyle, Spelling, SpellingPanel, SpellingOptions, Substitutions, SubstitutionsPanel, SubstitutionOptions, Transformations, Speech, Lookup, Learn, Format, Font, TextSize, TextColor, TextStylePasteboard, Text, WritingDirection, Alignment, Toolbar, Sidebar, Fullscreen, MinimizeAndZoom, BringAllToFront, Root/**/}; + private static /**/UIMenuIdentifier/**/[] values = new /**/UIMenuIdentifier/**/[] {/**/Application, File, Edit, View, Window, Help, About, Preferences, Services, Hide, Quit, NewScene, OpenRecent, Close, Print, Document, UndoRedo, StandardEdit, Find, Replace, Share, TextStyle, Spelling, SpellingPanel, SpellingOptions, Substitutions, SubstitutionsPanel, SubstitutionOptions, Transformations, Speech, Lookup, Learn, Format, Font, TextSize, TextColor, TextStylePasteboard, Text, WritingDirection, Alignment, Toolbar, Sidebar, Fullscreen, MinimizeAndZoom, BringAllToFront, Root/**/}; /**/UIMenuIdentifier/**/ (String getterName) { super(Values.class, getterName); @@ -378,6 +382,11 @@ public static class Values { */ @GlobalValue(symbol="UIMenuPrint", optional=true) public static native NSString Print(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIMenuDocument", optional=true) + public static native NSString Document(); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuItem.java index 4b0d7b513..9b91c37b8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuItem.java @@ -42,9 +42,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. UIMenuItem is deprecated. Use UIEditMenuInteraction instead. + */ /**/ -/**/@Library("UIKit") @NativeClass/**/ +/**/@Library("UIKit") @NativeClass @Deprecated/**/ /**/public/**/ class /**/UIMenuItem/**/ extends /**/NSObject/**/ /**//**/ { diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeaf.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeaf.java new file mode 100644 index 000000000..cdce7808e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeaf.java @@ -0,0 +1,93 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UIMenuLeaf/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "title") + String getTitle(); + @Property(selector = "setTitle:") + void setTitle(String v); + @Property(selector = "image") + UIImage getImage(); + @Property(selector = "setImage:") + void setImage(UIImage v); + @Property(selector = "discoverabilityTitle") + String getDiscoverabilityTitle(); + @Property(selector = "setDiscoverabilityTitle:") + void setDiscoverabilityTitle(String v); + @Property(selector = "attributes") + UIMenuElementAttributes getAttributes(); + @Property(selector = "setAttributes:") + void setAttributes(UIMenuElementAttributes v); + @Property(selector = "state") + UIMenuElementState getState(); + @Property(selector = "setState:") + void setState(UIMenuElementState v); + @Property(selector = "sender") + NSObject getSender(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "presentationSourceItem") + UIPopoverPresentationControllerSourceItem getPresentationSourceItem(); + /**/ + /**/ + @Method(selector = "performWithSender:target:") + void perform(NSObject sender, NSObject target); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeafAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeafAdapter.java new file mode 100644 index 000000000..17cca5254 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIMenuLeafAdapter.java @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UIMenuLeafAdapter/**/ + extends /**/NSObject/**/ + /**/implements UIMenuLeaf/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("title") + public String getTitle() { return null; } + @NotImplemented("setTitle:") + public void setTitle(String v) {} + @NotImplemented("image") + public UIImage getImage() { return null; } + @NotImplemented("setImage:") + public void setImage(UIImage v) {} + @NotImplemented("discoverabilityTitle") + public String getDiscoverabilityTitle() { return null; } + @NotImplemented("setDiscoverabilityTitle:") + public void setDiscoverabilityTitle(String v) {} + @NotImplemented("attributes") + public UIMenuElementAttributes getAttributes() { return null; } + @NotImplemented("setAttributes:") + public void setAttributes(UIMenuElementAttributes v) {} + @NotImplemented("state") + public UIMenuElementState getState() { return null; } + @NotImplemented("setState:") + public void setState(UIMenuElementState v) {} + @NotImplemented("sender") + public NSObject getSender() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("presentationSourceItem") + public UIPopoverPresentationControllerSourceItem getPresentationSourceItem() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("performWithSender:target:") + public void perform(NSObject sender, NSObject target) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBar.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBar.java index bc58813ab..237e9be37 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBar.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBar.java @@ -152,6 +152,26 @@ public void setTitleCoreTextAttributes(CTAttributedStringAttributes v) { */ @Property(selector = "setPrefersLargeTitles:") public native void setPrefersLargeTitles(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "currentNSToolbarSection") + public native UINavigationBarNSToolbarSection getCurrentNSToolbarSection(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "behavioralStyle") + public native UIBehavioralStyle getBehavioralStyle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredBehavioralStyle") + public native UIBehavioralStyle getPreferredBehavioralStyle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredBehavioralStyle:") + public native void setPreferredBehavioralStyle(UIBehavioralStyle v); @Property(selector = "tintColor") public native UIColor getTintColor(); @Property(selector = "setTintColor:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegate.java index ab8a848bd..195317b4e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegate.java @@ -65,6 +65,8 @@ boolean shouldPopItem(UINavigationBar navigationBar, UINavigationItem item); @Method(selector = "navigationBar:didPopItem:") void didPopItem(UINavigationBar navigationBar, UINavigationItem item); + @Method(selector = "navigationBarNSToolbarSection:") + UINavigationBarNSToolbarSection navigationBarNSToolbarSection(UINavigationBar navigationBar); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegateAdapter.java index 3c80c75d6..c43a49466 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarDelegateAdapter.java @@ -67,5 +67,7 @@ public void didPushItem(UINavigationBar navigationBar, UINavigationItem item) {} public boolean shouldPopItem(UINavigationBar navigationBar, UINavigationItem item) { return false; } @NotImplemented("navigationBar:didPopItem:") public void didPopItem(UINavigationBar navigationBar, UINavigationItem item) {} + @NotImplemented("navigationBarNSToolbarSection:") + public UINavigationBarNSToolbarSection navigationBarNSToolbarSection(UINavigationBar navigationBar) { return null; } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarNSToolbarSection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarNSToolbarSection.java new file mode 100644 index 000000000..43f8c157a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationBarNSToolbarSection.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UINavigationBarNSToolbarSection/**/ implements ValuedEnum { + /**/ + None(0L), + Sidebar(1L), + Supplementary(2L), + Content(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UINavigationBarNSToolbarSection/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UINavigationBarNSToolbarSection/**/ valueOf(long n) { + for (/**/UINavigationBarNSToolbarSection/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UINavigationBarNSToolbarSection/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItem.java index a3103761b..f40ad531b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItem.java @@ -102,6 +102,46 @@ public UINavigationItem() {} */ @Property(selector = "setBackButtonDisplayMode:") public native void setBackButtonDisplayMode(UINavigationItemBackButtonDisplayMode v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "backAction") + public native UIAction getBackAction(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setBackAction:") + public native void setBackAction(UIAction v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "titleMenuProvider") + public native @Block Block1, UIMenu> getTitleMenuProvider(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTitleMenuProvider:") + public native void setTitleMenuProvider(@Block Block1, UIMenu> v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "renameDelegate") + public native UINavigationItemRenameDelegate getRenameDelegate(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRenameDelegate:", strongRef = true) + public native void setRenameDelegate(UINavigationItemRenameDelegate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "documentProperties") + public native UIDocumentProperties getDocumentProperties(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDocumentProperties:") + public native void setDocumentProperties(UIDocumentProperties v); @Property(selector = "leftBarButtonItems") public native NSArray getLeftBarButtonItems(); @Property(selector = "setLeftBarButtonItems:") @@ -122,6 +162,71 @@ public UINavigationItem() {} public native UIBarButtonItem getRightBarButtonItem(); @Property(selector = "setRightBarButtonItem:") public native void setRightBarButtonItem(UIBarButtonItem v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "customizationIdentifier") + public native String getCustomizationIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCustomizationIdentifier:") + public native void setCustomizationIdentifier(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "leadingItemGroups") + public native NSArray getLeadingItemGroups(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setLeadingItemGroups:") + public native void setLeadingItemGroups(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "centerItemGroups") + public native NSArray getCenterItemGroups(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCenterItemGroups:") + public native void setCenterItemGroups(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "trailingItemGroups") + public native NSArray getTrailingItemGroups(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTrailingItemGroups:") + public native void setTrailingItemGroups(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pinnedTrailingGroup") + public native UIBarButtonItemGroup getPinnedTrailingGroup(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPinnedTrailingGroup:") + public native void setPinnedTrailingGroup(UIBarButtonItemGroup v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "additionalOverflowItems") + public native UIDeferredMenuElement getAdditionalOverflowItems(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAdditionalOverflowItems:") + public native void setAdditionalOverflowItems(UIDeferredMenuElement v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "overflowPresentationSource") + public native UIPopoverPresentationControllerSourceItem getOverflowPresentationSource(); /** * @since Available in iOS 11.0 and later. */ @@ -132,6 +237,16 @@ public UINavigationItem() {} */ @Property(selector = "setLargeTitleDisplayMode:") public native void setLargeTitleDisplayMode(UINavigationItemLargeTitleDisplayMode v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "style") + public native UINavigationItemStyle getStyle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setStyle:") + public native void setStyle(UINavigationItemStyle v); /** * @since Available in iOS 11.0 and later. */ @@ -152,6 +267,21 @@ public UINavigationItem() {} */ @Property(selector = "setHidesSearchBarWhenScrolling:") public native void setHidesSearchBarWhenScrolling(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredSearchBarPlacement") + public native UINavigationItemSearchBarPlacement getPreferredSearchBarPlacement(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredSearchBarPlacement:") + public native void setPreferredSearchBarPlacement(UINavigationItemSearchBarPlacement v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "searchBarPlacement") + public native UINavigationItemSearchBarPlacement getSearchBarPlacement(); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegate.java new file mode 100644 index 000000000..0e111ceac --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegate.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UINavigationItemRenameDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "navigationItem:didEndRenamingWithTitle:") + void didEndRenaming(UINavigationItem navigationItem, String title); + @Method(selector = "navigationItemShouldBeginRenaming:") + boolean navigationItemShouldBeginRenaming(UINavigationItem navigationItem); + @Method(selector = "navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:") + String willBeginRenaming(UINavigationItem navigationItem, String title, NSRange selectedRange); + @Method(selector = "navigationItem:shouldEndRenamingWithTitle:") + boolean shouldEndRenaming(UINavigationItem navigationItem, String title); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegateAdapter.java new file mode 100644 index 000000000..cf0a59cbe --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemRenameDelegateAdapter.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UINavigationItemRenameDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements UINavigationItemRenameDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("navigationItem:didEndRenamingWithTitle:") + public void didEndRenaming(UINavigationItem navigationItem, String title) {} + @NotImplemented("navigationItemShouldBeginRenaming:") + public boolean navigationItemShouldBeginRenaming(UINavigationItem navigationItem) { return false; } + @NotImplemented("navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:") + public String willBeginRenaming(UINavigationItem navigationItem, String title, NSRange selectedRange) { return null; } + @NotImplemented("navigationItem:shouldEndRenamingWithTitle:") + public boolean shouldEndRenaming(UINavigationItem navigationItem, String title) { return false; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemSearchBarPlacement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemSearchBarPlacement.java new file mode 100644 index 000000000..a844db128 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemSearchBarPlacement.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UINavigationItemSearchBarPlacement/**/ implements ValuedEnum { + /**/ + Automatic(0L), + Inline(1L), + Stacked(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UINavigationItemSearchBarPlacement/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UINavigationItemSearchBarPlacement/**/ valueOf(long n) { + for (/**/UINavigationItemSearchBarPlacement/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UINavigationItemSearchBarPlacement/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemStyle.java new file mode 100644 index 000000000..04e88f817 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINavigationItemStyle.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UINavigationItemStyle/**/ implements ValuedEnum { + /**/ + Navigator(0L), + Browser(1L), + Editor(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UINavigationItemStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UINavigationItemStyle/**/ valueOf(long n) { + for (/**/UINavigationItemStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UINavigationItemStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControl.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControl.java index aeae90c14..b4a9f1cdc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControl.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControl.java @@ -97,6 +97,16 @@ public UIPageControl() {} */ @Property(selector = "setBackgroundStyle:") public native void setBackgroundStyle(UIPageControlBackgroundStyle v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "direction") + public native UIPageControlDirection getDirection(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDirection:") + public native void setDirection(UIPageControlDirection v); /** * @since Available in iOS 14.0 and later. */ @@ -122,6 +132,16 @@ public UIPageControl() {} */ @Property(selector = "setPreferredIndicatorImage:") public native void setPreferredIndicatorImage(UIImage v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredCurrentPageIndicatorImage") + public native UIImage getPreferredCurrentPageIndicatorImage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredCurrentPageIndicatorImage:") + public native void setPreferredCurrentPageIndicatorImage(UIImage v); /** * @deprecated Deprecated in iOS 14.0. defersCurrentPageDisplay no longer does anything reasonable with the new interaction mode. */ @@ -150,6 +170,16 @@ public UIPageControl() {} */ @Method(selector = "setIndicatorImage:forPage:") public native void setIndicatorImage(UIImage image, @MachineSizedSInt long page); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "currentPageIndicatorImageForPage:") + public native UIImage currentPageIndicatorImageForPage(@MachineSizedSInt long page); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setCurrentPageIndicatorImage:forPage:") + public native void setCurrentPageIndicatorImage(UIImage image, @MachineSizedSInt long page); @Method(selector = "sizeForNumberOfPages:") public native @ByVal CGSize getSizeForNumberOfPages(@MachineSizedSInt long pageCount); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControlDirection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControlDirection.java new file mode 100644 index 000000000..b2a662575 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPageControlDirection.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIPageControlDirection/**/ implements ValuedEnum { + /**/ + Natural(0L), + LeftToRight(1L), + RightToLeft(2L), + TopToBottom(3L), + BottomToTop(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIPageControlDirection/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIPageControlDirection/**/ valueOf(long n) { + for (/**/UIPageControlDirection/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIPageControlDirection/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControl.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControl.java new file mode 100644 index 000000000..0d30fd446 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControl.java @@ -0,0 +1,103 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIPasteControl/**/ + extends /**/UIControl/**/ + /**//**/ { + + /**/public static class UIPasteControlPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIPasteControl.class); }/**/ + /**//**/ + /**/ + public UIPasteControl() {} + protected UIPasteControl(Handle h, long handle) { super(h, handle); } + protected UIPasteControl(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithConfiguration:") + public UIPasteControl(UIPasteControlConfiguration configuration) { super((SkipInit) null); initObject(init(configuration)); } + @Method(selector = "initWithCoder:") + public UIPasteControl(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + @Method(selector = "initWithFrame:") + public UIPasteControl(@ByVal CGRect frame) { super((SkipInit) null); initObject(init(frame)); } + /** + * @since Available in iOS 14.0 and later. + */ + @Method(selector = "initWithFrame:primaryAction:") + public UIPasteControl(@ByVal CGRect frame, UIAction primaryAction) { super(frame, primaryAction); } + /**/ + /**/ + @Property(selector = "configuration") + public native UIPasteControlConfiguration getConfiguration(); + @Property(selector = "target") + public native UIPasteConfigurationSupporting getTarget(); + @Property(selector = "setTarget:", strongRef = true) + public native void setTarget(UIPasteConfigurationSupporting v); + @WeaklyLinked + @Property(selector = "layerClass") + public static native Class getLayerClass(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithConfiguration:") + protected native @Pointer long init(UIPasteControlConfiguration configuration); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + @Method(selector = "initWithFrame:") + protected native @Pointer long init(@ByVal CGRect frame); + /** + * @since Available in iOS 9.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute); + /** + * @since Available in iOS 10.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlConfiguration.java new file mode 100644 index 000000000..53c95b4d8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlConfiguration.java @@ -0,0 +1,95 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIPasteControlConfiguration/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class UIPasteControlConfigurationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIPasteControlConfiguration.class); }/**/ + /**//**/ + /**/ + public UIPasteControlConfiguration() {} + protected UIPasteControlConfiguration(Handle h, long handle) { super(h, handle); } + protected UIPasteControlConfiguration(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public UIPasteControlConfiguration(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "displayMode") + public native UIPasteControlDisplayMode getDisplayMode(); + @Property(selector = "setDisplayMode:") + public native void setDisplayMode(UIPasteControlDisplayMode v); + @Property(selector = "cornerStyle") + public native UIButtonConfigurationCornerStyle getCornerStyle(); + @Property(selector = "setCornerStyle:") + public native void setCornerStyle(UIButtonConfigurationCornerStyle v); + @Property(selector = "cornerRadius") + public native @MachineSizedFloat double getCornerRadius(); + @Property(selector = "setCornerRadius:") + public native void setCornerRadius(@MachineSizedFloat double v); + @Property(selector = "baseForegroundColor") + public native UIColor getBaseForegroundColor(); + @Property(selector = "setBaseForegroundColor:") + public native void setBaseForegroundColor(UIColor v); + @Property(selector = "baseBackgroundColor") + public native UIColor getBaseBackgroundColor(); + @Property(selector = "setBaseBackgroundColor:") + public native void setBaseBackgroundColor(UIColor v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlDisplayMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlDisplayMode.java new file mode 100644 index 000000000..4be70c0e1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPasteControlDisplayMode.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/UIPasteControlDisplayMode/**/ implements ValuedEnum { + /**/ + IconAndLabel(0L), + IconOnly(1L), + LabelOnly(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIPasteControlDisplayMode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIPasteControlDisplayMode/**/ valueOf(long n) { + for (/**/UIPasteControlDisplayMode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIPasteControlDisplayMode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPencilPreferredAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPencilPreferredAction.java index 457d2ca49..7d69f1985 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPencilPreferredAction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPencilPreferredAction.java @@ -52,7 +52,11 @@ public enum /**/UIPencilPreferredAction/**/ implements ValuedEnum { Ignore(0L), SwitchEraser(1L), SwitchPrevious(2L), - ShowColorPalette(3L); + ShowColorPalette(3L), + /** + * @since Available in iOS 16.0 and later. + */ + ShowInkAttributes(4L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationController.java index 235118497..5bd2ffbcd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationController.java @@ -86,8 +86,26 @@ protected UIPopoverPresentationController() {} */ @Property(selector = "setCanOverlapSourceViewRect:") public native void setCanOverlapSourceViewRect(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "sourceItem") + public native UIPopoverPresentationControllerSourceItem getSourceItem(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSourceItem:") + public native void setSourceItem(UIPopoverPresentationControllerSourceItem v); + /** + * @deprecated Use sourceItem + */ + @Deprecated @Property(selector = "barButtonItem") public native UIBarButtonItem getBarButtonItem(); + /** + * @deprecated Use sourceItem + */ + @Deprecated @Property(selector = "setBarButtonItem:") public native void setBarButtonItem(UIBarButtonItem v); @Property(selector = "arrowDirection") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItem.java new file mode 100644 index 000000000..a6c9130e4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItem.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UIPopoverPresentationControllerSourceItem/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItemAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItemAdapter.java new file mode 100644 index 000000000..bdb475d6e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPopoverPresentationControllerSourceItemAdapter.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UIPopoverPresentationControllerSourceItemAdapter/**/ + extends /**/NSObject/**/ + /**/implements UIPopoverPresentationControllerSourceItem/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPrintFormatter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPrintFormatter.java index 4721e2119..75b7af1f5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPrintFormatter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIPrintFormatter.java @@ -90,6 +90,11 @@ public UIPrintFormatter() {} public native void setStartPage(@MachineSizedSInt long v); @Property(selector = "pageCount") public native @MachineSizedSInt long getPageCount(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "requiresMainThread") + public native boolean requiresMainThread(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponder.java index dccf3e77d..2745bdbd6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponder.java @@ -227,6 +227,31 @@ public UIResponder() {} public native void increaseSize(NSObject sender); @Method(selector = "decreaseSize:") public native void decreaseSize(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "find:") + public native void find(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "findAndReplace:") + public native void findAndReplace(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "findNext:") + public native void findNext(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "findPrevious:") + public native void findPrevious(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "useSelectionForFind:") + public native void useSelectionForFind(NSObject sender); /** * @since Available in iOS 13.0 and later. */ @@ -237,6 +262,26 @@ public UIResponder() {} */ @Method(selector = "print:") public native void print(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "rename:") + public native void rename(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "duplicate:") + public native void duplicate(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "move:") + public native void move(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "export:") + public native void export(NSObject sender); @Method(selector = "pasteItemProviders:") public native void pasteItemProviders(NSArray itemProviders); @Method(selector = "canPasteItemProviders:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActions.java index 3ac41ea0e..1de7dec39 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActions.java @@ -98,6 +98,31 @@ void increaseSize(NSObject sender); @Method(selector = "decreaseSize:") void decreaseSize(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "find:") + void find(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "findAndReplace:") + void findAndReplace(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "findNext:") + void findNext(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "findPrevious:") + void findPrevious(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "useSelectionForFind:") + void useSelectionForFind(NSObject sender); /** * @since Available in iOS 13.0 and later. */ @@ -108,6 +133,26 @@ */ @Method(selector = "print:") void print(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "rename:") + void rename(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "duplicate:") + void duplicate(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "move:") + void move(NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "export:") + void export(NSObject sender); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActionsAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActionsAdapter.java index 7c691b1b4..e63d9ecbe 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActionsAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIResponderStandardEditActionsAdapter.java @@ -100,6 +100,31 @@ public void toggleUnderline(NSObject sender) {} public void increaseSize(NSObject sender) {} @NotImplemented("decreaseSize:") public void decreaseSize(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("find:") + public void find(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("findAndReplace:") + public void findAndReplace(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("findNext:") + public void findNext(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("findPrevious:") + public void findPrevious(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("useSelectionForFind:") + public void useSelectionForFind(NSObject sender) {} /** * @since Available in iOS 13.0 and later. */ @@ -110,5 +135,25 @@ public void updateTextAttributes(@Block Block1, NSDict */ @NotImplemented("print:") public void print(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("rename:") + public void rename(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("duplicate:") + public void duplicate(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("move:") + public void move(NSObject sender) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("export:") + public void export(NSObject sender) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneErrorCode.java index 692155d4e..9860b4cbe 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneErrorCode.java @@ -50,7 +50,15 @@ public enum /**/UISceneErrorCode/**/ implements NSErrorCode { /**/ MultipleScenesNotSupported(0L), - RequestDenied(1L); + RequestDenied(1L), + /** + * @since Available in iOS 16.0 and later. + */ + GeometryRequestUnsupported(100L), + /** + * @since Available in iOS 16.0 and later. + */ + GeometryRequestDenied(101L); /**/ /**/static { Bro.bind(UISceneErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSessionRole.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSessionRole.java index 1aca20c74..6eea95f76 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSessionRole.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSessionRole.java @@ -102,13 +102,19 @@ public static long toNative(List l, long flags) { * @since Available in iOS 13.0 and later. */ public static final UISceneSessionRole Application = new UISceneSessionRole("Application"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final UISceneSessionRole ExternalDisplayNonInteractive = new UISceneSessionRole("ExternalDisplayNonInteractive"); /** * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use UIWindowSceneSessionRoleExternalDisplayNonInteractive */ + @Deprecated public static final UISceneSessionRole ExternalDisplay = new UISceneSessionRole("ExternalDisplay"); /**/ - private static /**/UISceneSessionRole/**/[] values = new /**/UISceneSessionRole/**/[] {/**/Application, ExternalDisplay/**/}; + private static /**/UISceneSessionRole/**/[] values = new /**/UISceneSessionRole/**/[] {/**/Application, ExternalDisplayNonInteractive, ExternalDisplay/**/}; /**/UISceneSessionRole/**/ (String getterName) { super(Values.class, getterName); @@ -136,9 +142,16 @@ public static class Values { */ @GlobalValue(symbol="UIWindowSceneSessionRoleApplication", optional=true) public static native NSString Application(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIWindowSceneSessionRoleExternalDisplayNonInteractive", optional=true) + public static native NSString ExternalDisplayNonInteractive(); /** * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use UIWindowSceneSessionRoleExternalDisplayNonInteractive */ + @Deprecated @GlobalValue(symbol="UIWindowSceneSessionRoleExternalDisplay", optional=true) public static native NSString ExternalDisplay(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneWindowingBehaviors.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneWindowingBehaviors.java new file mode 100644 index 000000000..e3a0a3a23 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneWindowingBehaviors.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UISceneWindowingBehaviors/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UISceneWindowingBehaviorsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UISceneWindowingBehaviors.class); }/**/ + /**//**/ + /**/ + protected UISceneWindowingBehaviors() {} + protected UISceneWindowingBehaviors(Handle h, long handle) { super(h, handle); } + protected UISceneWindowingBehaviors(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "isClosable") + public native boolean isClosable(); + @Property(selector = "setClosable:") + public native void setClosable(boolean v); + @Property(selector = "isMiniaturizable") + public native boolean isMiniaturizable(); + @Property(selector = "setMiniaturizable:") + public native void setMiniaturizable(boolean v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreen.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreen.java index 7f5b22a96..12623464c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreen.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreen.java @@ -104,8 +104,16 @@ public UIScreen() {} protected UIScreen(SkipInit skipInit) { super(skipInit); } /**/ /**/ + /** + * @deprecated Deprecated in iOS 16.0. Use UIApplication.shared.openSessions to find open sessions with scenes from other screens + */ + @Deprecated @Property(selector = "screens") public static native NSArray getScreens(); + /** + * @deprecated Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen + */ + @Deprecated @Property(selector = "mainScreen") public static native UIScreen getMainScreen(); @Property(selector = "bounds") @@ -162,6 +170,21 @@ public UIScreen() {} */ @Property(selector = "calibratedLatency") public native double getCalibratedLatency(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "referenceDisplayModeStatus") + public native UIScreenReferenceDisplayModeStatus getReferenceDisplayModeStatus(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "currentEDRHeadroom") + public native @MachineSizedFloat double getCurrentEDRHeadroom(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "potentialEDRHeadroom") + public native @MachineSizedFloat double getPotentialEDRHeadroom(); /** * @since Available in iOS 10.0 and later. * @deprecated Deprecated in iOS 15.0. Use -[UIWindowScene focusSystem].focusedItem instead @@ -194,8 +217,16 @@ public UIScreen() {} /**/ /**//**/ /**/ + /** + * @deprecated Deprecated in iOS 16.0. Use UISceneDelegate or related notifications to be informed of connecting scenes from other screens + */ + @Deprecated @GlobalValue(symbol="UIScreenDidConnectNotification", optional=true) public static native NSString DidConnectNotification(); + /** + * @deprecated Deprecated in iOS 16.0. Use UISceneDelegate or related notifications to be informed of disconnecting scenes from other screens + */ + @Deprecated @GlobalValue(symbol="UIScreenDidDisconnectNotification", optional=true) public static native NSString DidDisconnectNotification(); @GlobalValue(symbol="UIScreenModeDidChangeNotification", optional=true) @@ -207,6 +238,11 @@ public UIScreen() {} */ @GlobalValue(symbol="UIScreenCapturedDidChangeNotification", optional=true) public static native NSString CapturedDidChangeNotification(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UIScreenReferenceDisplayModeStatusDidChangeNotification", optional=true) + public static native NSString ReferenceDisplayModeStatusDidChangeNotification(); @WeaklyLinked @Method(selector = "displayLinkWithTarget:selector:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreenReferenceDisplayModeStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreenReferenceDisplayModeStatus.java new file mode 100644 index 000000000..b90b7211b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScreenReferenceDisplayModeStatus.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UIScreenReferenceDisplayModeStatus/**/ implements ValuedEnum { + /**/ + NotSupported(0L), + NotEnabled(1L), + Limited(2L), + Enabled(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UIScreenReferenceDisplayModeStatus/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UIScreenReferenceDisplayModeStatus/**/ valueOf(long n) { + for (/**/UIScreenReferenceDisplayModeStatus/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UIScreenReferenceDisplayModeStatus/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java index dea677a65..efa1107d3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java @@ -177,10 +177,6 @@ public UIScrollView() {} public native @MachineSizedFloat double getDecelerationRate(); @Property(selector = "setDecelerationRate:") public native void setDecelerationRate(@MachineSizedFloat double v); - @Property(selector = "indexDisplayMode") - public native UIScrollViewIndexDisplayMode getIndexDisplayMode(); - @Property(selector = "setIndexDisplayMode:") - public native void setIndexDisplayMode(UIScrollViewIndexDisplayMode v); @Property(selector = "isTracking") public native boolean isTracking(); @Property(selector = "isDragging") @@ -223,8 +219,6 @@ public UIScrollView() {} public native UIPanGestureRecognizer getPanGestureRecognizer(); @Property(selector = "pinchGestureRecognizer") public native UIPinchGestureRecognizer getPinchGestureRecognizer(); - @Property(selector = "directionalPressGestureRecognizer") - public native UIGestureRecognizer getDirectionalPressGestureRecognizer(); @Property(selector = "keyboardDismissMode") public native UIScrollViewKeyboardDismissMode getKeyboardDismissMode(); @Property(selector = "setKeyboardDismissMode:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollViewKeyboardDismissMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollViewKeyboardDismissMode.java index 2bc4bf699..2fcdac63c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollViewKeyboardDismissMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollViewKeyboardDismissMode.java @@ -49,7 +49,9 @@ public enum /**/UIScrollViewKeyboardDismissMode/**/ implements Valu /**/ None(0L), OnDrag(1L), - Interactive(2L); + Interactive(2L), + OnDragWithAccessory(3L), + InteractiveWithAccessory(4L); /**/ private final long n; diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchController.java index bdf2e55e5..62105eaea 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchController.java @@ -106,6 +106,11 @@ public UISearchController() {} public native UIViewController getSearchResultsController(); @Property(selector = "searchBar") public native UISearchBar getSearchBar(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "searchBarPlacement") + public native UINavigationItemSearchBarPlacement getSearchBarPlacement(); /** * @since Available in iOS 13.0 and later. */ @@ -138,14 +143,48 @@ public UISearchController() {} public native void setAutomaticallyShowsCancelButton(boolean v); /** * @since Available in iOS 13.0 and later. + * @deprecated Use scopeBarActivation instead */ + @Deprecated @Property(selector = "automaticallyShowsScopeBar") public native boolean automaticallyShowsScopeBar(); /** * @since Available in iOS 13.0 and later. + * @deprecated Use scopeBarActivation instead */ + @Deprecated @Property(selector = "setAutomaticallyShowsScopeBar:") public native void setAutomaticallyShowsScopeBar(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "scopeBarActivation") + public native UISearchControllerScopeBarActivation getScopeBarActivation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setScopeBarActivation:") + public native void setScopeBarActivation(UISearchControllerScopeBarActivation v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "searchSuggestions") + public native NSArray getSearchSuggestions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSearchSuggestions:") + public native void setSearchSuggestions(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "ignoresSearchSuggestionsForSearchBarPlacementStacked") + public native boolean ignoresSearchSuggestionsForSearchBarPlacementStacked(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setIgnoresSearchSuggestionsForSearchBarPlacementStacked:") + public native void setIgnoresSearchSuggestionsForSearchBarPlacementStacked(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegate.java index b75604064..c5c9c5706 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegate.java @@ -67,6 +67,16 @@ void didDismiss(UISearchController searchController); @Method(selector = "presentSearchController:") void present(UISearchController searchController); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "searchController:willChangeToSearchBarPlacement:") + void willChangeToSearchBarPlacement(UISearchController searchController, UINavigationItemSearchBarPlacement newPlacement); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "searchController:didChangeFromSearchBarPlacement:") + void didChangeFromSearchBarPlacement(UISearchController searchController, UINavigationItemSearchBarPlacement previousPlacement); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegateAdapter.java index 6d21ad5ec..388af0f97 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerDelegateAdapter.java @@ -69,5 +69,15 @@ public void willDismiss(UISearchController searchController) {} public void didDismiss(UISearchController searchController) {} @NotImplemented("presentSearchController:") public void present(UISearchController searchController) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("searchController:willChangeToSearchBarPlacement:") + public void willChangeToSearchBarPlacement(UISearchController searchController, UINavigationItemSearchBarPlacement newPlacement) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("searchController:didChangeFromSearchBarPlacement:") + public void didChangeFromSearchBarPlacement(UISearchController searchController, UINavigationItemSearchBarPlacement previousPlacement) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerScopeBarActivation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerScopeBarActivation.java new file mode 100644 index 000000000..efcb3bb48 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchControllerScopeBarActivation.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UISearchControllerScopeBarActivation/**/ implements ValuedEnum { + /**/ + Automatic(0L), + Manual(1L), + OnTextEntry(2L), + OnSearchActivation(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UISearchControllerScopeBarActivation/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UISearchControllerScopeBarActivation/**/ valueOf(long n) { + for (/**/UISearchControllerScopeBarActivation/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UISearchControllerScopeBarActivation/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdating.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdating.java index f158427ee..73594431d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdating.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdating.java @@ -59,6 +59,11 @@ /**/ @Method(selector = "updateSearchResultsForSearchController:") void updateSearchResults(UISearchController searchController); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "updateSearchResultsForSearchController:selectingSearchSuggestion:") + void updateSearchResults(UISearchController searchController, UISearchSuggestion searchSuggestion); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdatingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdatingAdapter.java index 934ce16e9..f6aa7a687 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdatingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchResultsUpdatingAdapter.java @@ -61,5 +61,10 @@ /**/ @NotImplemented("updateSearchResultsForSearchController:") public void updateSearchResults(UISearchController searchController) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("updateSearchResultsForSearchController:selectingSearchSuggestion:") + public void updateSearchResults(UISearchController searchController, UISearchSuggestion searchSuggestion) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestion.java new file mode 100644 index 000000000..8f313fd3f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestion.java @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UISearchSuggestion/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "localizedSuggestion") + String getLocalizedSuggestion(); + @Property(selector = "localizedDescription") + String getLocalizedDescription(); + @Property(selector = "iconImage") + UIImage getIconImage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "localizedAttributedSuggestion") + NSAttributedString getLocalizedAttributedSuggestion(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "representedObject") + NSObject getRepresentedObject(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRepresentedObject:") + void setRepresentedObject(NSObject v); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionAdapter.java new file mode 100644 index 000000000..65ec82000 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionAdapter.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UISearchSuggestionAdapter/**/ + extends /**/NSObject/**/ + /**/implements UISearchSuggestion/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("localizedSuggestion") + public String getLocalizedSuggestion() { return null; } + @NotImplemented("localizedDescription") + public String getLocalizedDescription() { return null; } + @NotImplemented("iconImage") + public UIImage getIconImage() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("localizedAttributedSuggestion") + public NSAttributedString getLocalizedAttributedSuggestion() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("representedObject") + public NSObject getRepresentedObject() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("setRepresentedObject:") + public void setRepresentedObject(NSObject v) {} + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionItem.java new file mode 100644 index 000000000..cd7c8852f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchSuggestionItem.java @@ -0,0 +1,130 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UISearchSuggestionItem/**/ + extends /**/NSObject/**/ + /**/implements UISearchSuggestion/**/ { + + /**/public static class UISearchSuggestionItemPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UISearchSuggestionItem.class); }/**/ + /**//**/ + /**/ + public UISearchSuggestionItem() {} + protected UISearchSuggestionItem(Handle h, long handle) { super(h, handle); } + protected UISearchSuggestionItem(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithLocalizedSuggestion:") + public UISearchSuggestionItem(String suggestion) { super((SkipInit) null); initObject(init(suggestion)); } + @Method(selector = "initWithLocalizedSuggestion:localizedDescription:") + public UISearchSuggestionItem(String suggestion, String description) { super((SkipInit) null); initObject(init(suggestion, description)); } + @Method(selector = "initWithLocalizedSuggestion:localizedDescription:iconImage:") + public UISearchSuggestionItem(String suggestion, String description, UIImage iconImage) { super((SkipInit) null); initObject(init(suggestion, description, iconImage)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocalizedAttributedSuggestion:") + public UISearchSuggestionItem(NSAttributedString suggestion) { super((SkipInit) null); initObject(initWithLocalizedAttributedSuggestion$(suggestion)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocalizedAttributedSuggestion:localizedDescription:") + public UISearchSuggestionItem(NSAttributedString suggestion, String description) { super((SkipInit) null); initObject(init(suggestion, description)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocalizedAttributedSuggestion:localizedDescription:iconImage:") + public UISearchSuggestionItem(NSAttributedString suggestion, String description, UIImage iconImage) { super((SkipInit) null); initObject(init(suggestion, description, iconImage)); } + /**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "localizedAttributedSuggestion") + public native NSAttributedString getLocalizedAttributedSuggestion(); + @Property(selector = "localizedSuggestion") + public native String getLocalizedSuggestion(); + @Property(selector = "localizedDescription") + public native String getLocalizedDescription(); + @Property(selector = "iconImage") + public native UIImage getIconImage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "representedObject") + public native NSObject getRepresentedObject(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRepresentedObject:") + public native void setRepresentedObject(NSObject v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithLocalizedSuggestion:") + protected native @Pointer long init(String suggestion); + @Method(selector = "initWithLocalizedSuggestion:localizedDescription:") + protected native @Pointer long init(String suggestion, String description); + @Method(selector = "initWithLocalizedSuggestion:localizedDescription:iconImage:") + protected native @Pointer long init(String suggestion, String description, UIImage iconImage); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocalizedAttributedSuggestion:") + protected native @Pointer long initWithLocalizedAttributedSuggestion$(NSAttributedString suggestion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocalizedAttributedSuggestion:localizedDescription:") + protected native @Pointer long init(NSAttributedString suggestion, String description); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocalizedAttributedSuggestion:localizedDescription:iconImage:") + protected native @Pointer long init(NSAttributedString suggestion, String description, UIImage iconImage); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextField.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextField.java index fcd3d32bc..9b9062281 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextField.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextField.java @@ -87,6 +87,16 @@ public UISearchTextField() {} public native boolean allowsCopyingTokens(); @Property(selector = "setAllowsCopyingTokens:") public native void setAllowsCopyingTokens(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "searchSuggestions") + public native NSArray getSearchSuggestions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSearchSuggestions:") + public native void setSearchSuggestions(NSArray v); @WeaklyLinked @Property(selector = "layerClass") public static native Class getLayerClass(); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegate.java index 7498d74cf..311f0b8cf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegate.java @@ -59,6 +59,11 @@ /**/ @Method(selector = "searchTextField:itemProviderForCopyingToken:") NSItemProvider getItemProviderForCopyingToken(UISearchTextField searchTextField, UISearchToken token); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "searchTextField:didSelectSuggestion:") + void didSelectSuggestion(UISearchTextField searchTextField, UISearchSuggestion suggestion); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegateAdapter.java index af7a41f9d..654d0e4bb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISearchTextFieldDelegateAdapter.java @@ -61,5 +61,10 @@ /**/ @NotImplemented("searchTextField:itemProviderForCopyingToken:") public NSItemProvider getItemProviderForCopyingToken(UISearchTextField searchTextField, UISearchToken token) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("searchTextField:didSelectSuggestion:") + public void didSelectSuggestion(UISearchTextField searchTextField, UISearchSuggestion suggestion) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationController.java index ab5a74184..81d91d370 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationController.java @@ -111,6 +111,11 @@ protected UISheetPresentationController() {} @GlobalValue(symbol="UISheetPresentationControllerAutomaticDimension", optional=true) public static native @MachineSizedFloat double AutomaticDimension(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "invalidateDetents") + public native void invalidateDetents(); @Method(selector = "animateChanges:") public native void animateChanges(@Block Runnable changes); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetent.java index 9885e28c2..ff2bb2a85 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetent.java @@ -60,13 +60,33 @@ protected UISheetPresentationControllerDetent() {} protected UISheetPresentationControllerDetent(SkipInit skipInit) { super(skipInit); } /**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "identifier") + public native UISheetPresentationControllerDetentIdentifier getIdentifier(); /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UISheetPresentationControllerDetentInactive", optional=true) + public static native @MachineSizedFloat double Inactive(); + + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resolvedValueInContext:") + public native @MachineSizedFloat double resolvedValueInContext(UISheetPresentationControllerDetentResolutionContext context); @Method(selector = "mediumDetent") public static native UISheetPresentationControllerDetent mediumDetent(); @Method(selector = "largeDetent") public static native UISheetPresentationControllerDetent largeDetent(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "customDetentWithIdentifier:resolver:") + public static native UISheetPresentationControllerDetent createCustomDetent(UISheetPresentationControllerDetentIdentifier identifier, @Block Block1 resolver); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContext.java new file mode 100644 index 000000000..adaa531cf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContext.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UISheetPresentationControllerDetentResolutionContext/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "containerTraitCollection") + UITraitCollection getContainerTraitCollection(); + @Property(selector = "maximumDetentValue") + @MachineSizedFloat double getMaximumDetentValue(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContextAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContextAdapter.java new file mode 100644 index 000000000..daf5f9ff9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISheetPresentationControllerDetentResolutionContextAdapter.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UISheetPresentationControllerDetentResolutionContextAdapter/**/ + extends /**/NSObject/**/ + /**/implements UISheetPresentationControllerDetentResolutionContext/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("containerTraitCollection") + public UITraitCollection getContainerTraitCollection() { return null; } + @NotImplemented("maximumDetentValue") + public @MachineSizedFloat double getMaximumDetentValue() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITabBarItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITabBarItem.java index 0b63a338a..bd6e23e5b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITabBarItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITabBarItem.java @@ -47,7 +47,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UITabBarItem/**/ extends /**/UIBarItem/**/ - /**/implements UISpringLoadedInteractionSupporting/**/ { + /**/implements UISpringLoadedInteractionSupporting, UIPopoverPresentationControllerSourceItem/**/ { /**/public static class UITabBarItemPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(UITabBarItem.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableView.java index c463160b2..efae03198 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableView.java @@ -182,6 +182,16 @@ public UITableView() {} */ @Property(selector = "setSeparatorInsetReference:") public native void setSeparatorInsetReference(UITableViewSeparatorInsetReference v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "selfSizingInvalidation") + public native UITableViewSelfSizingInvalidation getSelfSizingInvalidation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSelfSizingInvalidation:") + public native void setSelfSizingInvalidation(UITableViewSelfSizingInvalidation v); @Property(selector = "backgroundView") public native UIView getBackgroundView(); @Property(selector = "setBackgroundView:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewCell.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewCell.java index a9fb8a6fe..afa697a17 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewCell.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewCell.java @@ -254,6 +254,11 @@ public UITableViewCell() {} */ @Method(selector = "defaultContentConfiguration") public native UIListContentConfiguration defaultContentConfiguration(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "defaultBackgroundConfiguration") + public native UIBackgroundConfiguration defaultBackgroundConfiguration(); @Method(selector = "prepareForReuse") public native void prepareForReuse(); @Method(selector = "setSelected:animated:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewController.java index ae4ba4e7d..d3337996d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewController.java @@ -129,6 +129,16 @@ public UITableViewController() {} public native void didSelectRow(UITableView tableView, NSIndexPath indexPath); @Method(selector = "tableView:didDeselectRowAtIndexPath:") public native void didDeselectRow(UITableView tableView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "tableView:canPerformPrimaryActionForRowAtIndexPath:") + public native boolean canPerformPrimaryAction(UITableView tableView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "tableView:performPrimaryActionForRowAtIndexPath:") + public native void performPrimaryAction(UITableView tableView, NSIndexPath indexPath); @Method(selector = "tableView:editingStyleForRowAtIndexPath:") public native UITableViewCellEditingStyle getEditingStyleForRow(UITableView tableView, NSIndexPath indexPath); @Method(selector = "tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegate.java index 822b52951..889b13315 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegate.java @@ -101,6 +101,16 @@ void didSelectRow(UITableView tableView, NSIndexPath indexPath); @Method(selector = "tableView:didDeselectRowAtIndexPath:") void didDeselectRow(UITableView tableView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "tableView:canPerformPrimaryActionForRowAtIndexPath:") + boolean canPerformPrimaryAction(UITableView tableView, NSIndexPath indexPath); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "tableView:performPrimaryActionForRowAtIndexPath:") + void performPrimaryAction(UITableView tableView, NSIndexPath indexPath); @Method(selector = "tableView:editingStyleForRowAtIndexPath:") UITableViewCellEditingStyle getEditingStyleForRow(UITableView tableView, NSIndexPath indexPath); @Method(selector = "tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegateAdapter.java index 8d3704cbf..7166d0e6f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewDelegateAdapter.java @@ -103,6 +103,16 @@ public void didUnhighlightRow(UITableView tableView, NSIndexPath indexPath) {} public void didSelectRow(UITableView tableView, NSIndexPath indexPath) {} @NotImplemented("tableView:didDeselectRowAtIndexPath:") public void didDeselectRow(UITableView tableView, NSIndexPath indexPath) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("tableView:canPerformPrimaryActionForRowAtIndexPath:") + public boolean canPerformPrimaryAction(UITableView tableView, NSIndexPath indexPath) { return false; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("tableView:performPrimaryActionForRowAtIndexPath:") + public void performPrimaryAction(UITableView tableView, NSIndexPath indexPath) {} @NotImplemented("tableView:editingStyleForRowAtIndexPath:") public UITableViewCellEditingStyle getEditingStyleForRow(UITableView tableView, NSIndexPath indexPath) { return null; } @NotImplemented("tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewHeaderFooterView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewHeaderFooterView.java index 1e04b549e..7f8ff8666 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewHeaderFooterView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewHeaderFooterView.java @@ -164,6 +164,11 @@ public UITableViewHeaderFooterView() {} */ @Method(selector = "defaultContentConfiguration") public native UIListContentConfiguration defaultContentConfiguration(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "defaultBackgroundConfiguration") + public native UIBackgroundConfiguration defaultBackgroundConfiguration(); @Method(selector = "prepareForReuse") public native void prepareForReuse(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewModel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewModel.java index 4a3c3c814..ae5ec5376 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewModel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewModel.java @@ -242,20 +242,36 @@ public void willCommitMenu(UITableView tableView, UIContextMenuInteractionCommit /** * @since Available in iOS 14.0 and later. */ - @Override + @NotImplemented("tableView:willDisplayContextMenuWithConfiguration:animator:") public void willDisplayContextMenu(UITableView tableView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator) {} /** * @since Available in iOS 14.0 and later. */ - @Override + @NotImplemented("tableView:willEndContextMenuInteractionWithConfiguration:animator:") public void willEndContextMenuInteraction(UITableView tableView, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator) {} /** * @since Available in iOS 15.0 and later. */ - @Override + @NotImplemented("tableView:selectionFollowsFocusForRowAtIndexPath:") public boolean isSelectionFollowsFocus(UITableView tableView, NSIndexPath indexPath) { return false; } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("tableView:canPerformPrimaryActionForRowAtIndexPath:") + public boolean canPerformPrimaryAction(UITableView tableView, NSIndexPath indexPath) { + return false; + } + + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("tableView:performPrimaryActionForRowAtIndexPath:") + public void performPrimaryAction(UITableView tableView, NSIndexPath indexPath) { + + } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewSelfSizingInvalidation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewSelfSizingInvalidation.java new file mode 100644 index 000000000..4c6220330 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITableViewSelfSizingInvalidation.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UITableViewSelfSizingInvalidation/**/ implements ValuedEnum { + /**/ + Disabled(0L), + Enabled(1L), + EnabledIncludingConstraints(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UITableViewSelfSizingInvalidation/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UITableViewSelfSizingInvalidation/**/ valueOf(long n) { + for (/**/UITableViewSelfSizingInvalidation/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UITableViewSelfSizingInvalidation/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextField.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextField.java index 14c3900b6..6e2f8db22 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextField.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextField.java @@ -592,6 +592,21 @@ public void setTypingCoreTextAttributes(CTAttributedStringAttributes v) { */ @Method(selector = "endFloatingCursor") public native void endFloatingCursor(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "editMenuForTextRange:suggestedActions:") + public native UIMenu getEditMenu(UITextRange textRange, NSArray suggestedActions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "willPresentEditMenuWithAnimator:") + public native void willPresentEditMenu(UIEditMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "willDismissEditMenuWithAnimator:") + public native void willDismissEditMenu(UIEditMenuInteractionAnimating animator); @Method(selector = "insertText:") public native void insertText(String text); @Method(selector = "deleteBackward") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegate.java index ff7eea72d..b3cc27d07 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegate.java @@ -81,6 +81,21 @@ boolean shouldClear(UITextField textField); @Method(selector = "textFieldShouldReturn:") boolean shouldReturn(UITextField textField); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textField:editMenuForCharactersInRange:suggestedActions:") + UIMenu getEditMenu(UITextField textField, @ByVal NSRange range, NSArray suggestedActions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textField:willPresentEditMenuWithAnimator:") + void willPresentEditMenu(UITextField textField, UIEditMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textField:willDismissEditMenuWithAnimator:") + void willDismissEditMenu(UITextField textField, UIEditMenuInteractionAnimating animator); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegateAdapter.java index 031cb7045..649af64db 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextFieldDelegateAdapter.java @@ -83,5 +83,20 @@ public void textFieldDidChangeSelection(UITextField textField) {} public boolean shouldClear(UITextField textField) { return true; } @NotImplemented("textFieldShouldReturn:") public boolean shouldReturn(UITextField textField) { return true; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("textField:editMenuForCharactersInRange:suggestedActions:") + public UIMenu getEditMenu(UITextField textField, @ByVal NSRange range, NSArray suggestedActions) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("textField:willPresentEditMenuWithAnimator:") + public void willPresentEditMenu(UITextField textField, UIEditMenuInteractionAnimating animator) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("textField:willDismissEditMenuWithAnimator:") + public void willDismissEditMenu(UITextField textField, UIEditMenuInteractionAnimating animator) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInput.java index 2979b6894..fb2f4ef51 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInput.java @@ -162,6 +162,21 @@ */ @Method(selector = "endFloatingCursor") void endFloatingCursor(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "editMenuForTextRange:suggestedActions:") + UIMenu getEditMenu(UITextRange textRange, NSArray suggestedActions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "willPresentEditMenuWithAnimator:") + void willPresentEditMenu(UIEditMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "willDismissEditMenuWithAnimator:") + void willDismissEditMenu(UIEditMenuInteractionAnimating animator); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInputAdapter.java index 8e67110fd..ed16fd5a7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInputAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextInputAdapter.java @@ -165,5 +165,20 @@ public void updateFloatingCursor(@ByVal CGPoint point) {} */ @NotImplemented("endFloatingCursor") public void endFloatingCursor() {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("editMenuForTextRange:suggestedActions:") + public UIMenu getEditMenu(UITextRange textRange, NSArray suggestedActions) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("willPresentEditMenuWithAnimator:") + public void willPresentEditMenu(UIEditMenuInteractionAnimating animator) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("willDismissEditMenuWithAnimator:") + public void willDismissEditMenu(UIEditMenuInteractionAnimating animator) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregator.java new file mode 100644 index 000000000..a139351e1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregator.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UITextSearchAggregator/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "allFoundRanges") + NSOrderedSet getAllFoundRanges(); + /**/ + /**/ + @Method(selector = "foundRange:forSearchString:inDocument:") + void foundRange(UITextRange range, String string, NSObject document); + @Method(selector = "invalidateFoundRange:inDocument:") + void invalidateFoundRange(UITextRange range, NSObject document); + @Method(selector = "invalidate") + void invalidate(); + @Method(selector = "finishedSearching") + void finishedSearching(); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregatorAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregatorAdapter.java new file mode 100644 index 000000000..1acd4806a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchAggregatorAdapter.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UITextSearchAggregatorAdapter/**/ + extends /**/NSObject/**/ + /**/implements UITextSearchAggregator/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("allFoundRanges") + public NSOrderedSet getAllFoundRanges() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("foundRange:forSearchString:inDocument:") + public void foundRange(UITextRange range, String string, NSObject document) {} + @NotImplemented("invalidateFoundRange:inDocument:") + public void invalidateFoundRange(UITextRange range, NSObject document) {} + @NotImplemented("invalidate") + public void invalidate() {} + @NotImplemented("finishedSearching") + public void finishedSearching() {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchFoundTextStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchFoundTextStyle.java new file mode 100644 index 000000000..4fc781719 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchFoundTextStyle.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UITextSearchFoundTextStyle/**/ implements ValuedEnum { + /**/ + Normal(0L), + Found(1L), + Highlighted(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UITextSearchFoundTextStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UITextSearchFoundTextStyle/**/ valueOf(long n) { + for (/**/UITextSearchFoundTextStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UITextSearchFoundTextStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchMatchMethod.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchMatchMethod.java new file mode 100644 index 000000000..12b4db226 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchMatchMethod.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UITextSearchMatchMethod/**/ implements ValuedEnum { + /**/ + Contains(0L), + StartsWith(1L), + FullWord(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UITextSearchMatchMethod/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UITextSearchMatchMethod/**/ valueOf(long n) { + for (/**/UITextSearchMatchMethod/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UITextSearchMatchMethod/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchOptions.java new file mode 100644 index 000000000..5228e6675 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchOptions.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UITextSearchOptions/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UITextSearchOptionsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UITextSearchOptions.class); }/**/ + /**//**/ + /**/ + public UITextSearchOptions() {} + protected UITextSearchOptions(Handle h, long handle) { super(h, handle); } + protected UITextSearchOptions(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "wordMatchMethod") + public native UITextSearchMatchMethod getWordMatchMethod(); + @Property(selector = "stringCompareOptions") + public native NSStringCompareOptions getStringCompareOptions(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearching.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearching.java new file mode 100644 index 000000000..6241a82e7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearching.java @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/UITextSearching/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "selectedTextRange") + UITextRange getSelectedTextRange(); + @Property(selector = "supportsTextReplacement") + boolean supportsTextReplacement(); + @Property(selector = "selectedTextSearchDocument") + NSObject getSelectedTextSearchDocument(); + /**/ + /**/ + @Method(selector = "compareFoundRange:toRange:inDocument:") + NSComparisonResult compare(UITextRange foundRange, UITextRange toRange, NSObject document); + @Method(selector = "performTextSearchWithQueryString:usingOptions:resultAggregator:") + void performTextSearch(String string, UITextSearchOptions options, UITextSearchAggregator aggregator); + @Method(selector = "decorateFoundTextRange:inDocument:usingStyle:") + void decorateFoundTextRange(UITextRange range, NSObject document, UITextSearchFoundTextStyle style); + @Method(selector = "clearAllDecoratedFoundText") + void clearAllDecoratedFoundText(); + @Method(selector = "shouldReplaceFoundTextInRange:inDocument:withText:") + boolean shouldReplaceFoundTextInRange(UITextRange range, NSObject document, String replacementText); + @Method(selector = "replaceFoundTextInRange:inDocument:withText:") + void replaceFoundTextInRange(UITextRange range, NSObject document, String replacementText); + @Method(selector = "replaceAllOccurrencesOfQueryString:usingOptions:withText:") + void replaceAllOccurrencesOfQueryString(String queryString, UITextSearchOptions options, String replacementText); + @Method(selector = "willHighlightFoundTextRange:inDocument:") + void willHighlightFoundTextRange(UITextRange range, NSObject document); + @Method(selector = "scrollRangeToVisible:inDocument:") + void scrollRangeToVisible(UITextRange range, NSObject document); + @Method(selector = "compareOrderFromDocument:toDocument:") + NSComparisonResult compareOrder(NSObject fromDocument, NSObject toDocument); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingAdapter.java new file mode 100644 index 000000000..51a4b3a5c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingAdapter.java @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/UITextSearchingAdapter/**/ + extends /**/NSObject/**/ + /**/implements UITextSearching/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("selectedTextRange") + public UITextRange getSelectedTextRange() { return null; } + @NotImplemented("supportsTextReplacement") + public boolean supportsTextReplacement() { return false; } + @NotImplemented("selectedTextSearchDocument") + public NSObject getSelectedTextSearchDocument() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("compareFoundRange:toRange:inDocument:") + public NSComparisonResult compare(UITextRange foundRange, UITextRange toRange, NSObject document) { return null; } + @NotImplemented("performTextSearchWithQueryString:usingOptions:resultAggregator:") + public void performTextSearch(String string, UITextSearchOptions options, UITextSearchAggregator aggregator) {} + @NotImplemented("decorateFoundTextRange:inDocument:usingStyle:") + public void decorateFoundTextRange(UITextRange range, NSObject document, UITextSearchFoundTextStyle style) {} + @NotImplemented("clearAllDecoratedFoundText") + public void clearAllDecoratedFoundText() {} + @NotImplemented("shouldReplaceFoundTextInRange:inDocument:withText:") + public boolean shouldReplaceFoundTextInRange(UITextRange range, NSObject document, String replacementText) { return false; } + @NotImplemented("replaceFoundTextInRange:inDocument:withText:") + public void replaceFoundTextInRange(UITextRange range, NSObject document, String replacementText) {} + @NotImplemented("replaceAllOccurrencesOfQueryString:usingOptions:withText:") + public void replaceAllOccurrencesOfQueryString(String queryString, UITextSearchOptions options, String replacementText) {} + @NotImplemented("willHighlightFoundTextRange:inDocument:") + public void willHighlightFoundTextRange(UITextRange range, NSObject document) {} + @NotImplemented("scrollRangeToVisible:inDocument:") + public void scrollRangeToVisible(UITextRange range, NSObject document) {} + @NotImplemented("compareOrderFromDocument:toDocument:") + public NSComparisonResult compareOrder(NSObject fromDocument, NSObject toDocument) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingFindSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingFindSession.java new file mode 100644 index 000000000..c7def4b29 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextSearchingFindSession.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UITextSearchingFindSession/**/ + extends /**/UIFindSession/**/ + /**//**/ { + + /**/public static class UITextSearchingFindSessionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UITextSearchingFindSession.class); }/**/ + /**//**/ + /**/ + protected UITextSearchingFindSession() {} + protected UITextSearchingFindSession(Handle h, long handle) { super(h, handle); } + protected UITextSearchingFindSession(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSearchableObject:") + public UITextSearchingFindSession(UITextSearching searchableObject) { super((SkipInit) null); initObject(init(searchableObject)); } + /**/ + /**/ + @Property(selector = "searchableObject") + public native UITextSearching getSearchableObject(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSearchableObject:") + protected native @Pointer long init(UITextSearching searchableObject); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextView.java index 4b2ba29d0..6af44fedd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextView.java @@ -49,7 +49,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UITextView/**/ extends /**/UIScrollView/**/ - /**/implements UITextInput, UIContentSizeCategoryAdjusting, UITextDraggable, UITextDroppable, UITextPasteConfigurationSupporting/**/ { + /**/implements UITextInput, UIContentSizeCategoryAdjusting, UITextDraggable, UITextDroppable, UITextPasteConfigurationSupporting, UIFindInteractionDelegate, UITextSearching/**/ { public static class Notifications { public static NSObject observeDidBeginEditing(UITextView object, final VoidBlock1 block) { @@ -277,6 +277,11 @@ public void setTypingCoreTextAttributes(CTAttributedStringAttributes v) { public native @ByVal UIEdgeInsets getTextContainerInset(); @Property(selector = "setTextContainerInset:") public native void setTextContainerInset(@ByVal UIEdgeInsets v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "textLayoutManager") + public native NSTextLayoutManager getTextLayoutManager(); @Property(selector = "layoutManager") public native NSLayoutManager getLayoutManager(); @Property(selector = "textStorage") @@ -295,6 +300,21 @@ public void setTypingCoreTextAttributes(CTAttributedStringAttributes v) { */ @Property(selector = "setUsesStandardTextScaling:") public native void setUsesStandardTextScaling(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "findInteraction") + public native UIFindInteraction getFindInteraction(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isFindInteractionEnabled") + public native boolean isFindInteractionEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setFindInteractionEnabled:") + public native void setFindInteractionEnabled(boolean v); @WeaklyLinked @Property(selector = "layerClass") public static native Class getLayerClass(); @@ -448,6 +468,10 @@ public void setTypingCoreTextAttributes(CTAttributedStringAttributes v) { public native UITextPasteDelegate getPasteDelegate(); @Property(selector = "setPasteDelegate:", strongRef = true) public native void setPasteDelegate(UITextPasteDelegate v); + @Property(selector = "supportsTextReplacement") + public native boolean supportsTextReplacement(); + @Property(selector = "selectedTextSearchDocument") + public native NSObject getSelectedTextSearchDocument(); /**/ /**//**/ /**/ @@ -464,6 +488,11 @@ public void setTypingCoreTextAttributes(CTAttributedStringAttributes v) { protected native @Pointer long init(@ByVal CGRect frame, NSTextContainer textContainer); @Method(selector = "initWithCoder:") protected native @Pointer long init(NSCoder coder); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textViewUsingTextLayoutManager:") + public static native UITextView textViewUsingTextLayoutManager(boolean usingTextLayoutManager); /** * @since Available in iOS 9.0 and later. */ @@ -553,9 +582,50 @@ public void setTypingCoreTextAttributes(CTAttributedStringAttributes v) { */ @Method(selector = "endFloatingCursor") public native void endFloatingCursor(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "editMenuForTextRange:suggestedActions:") + public native UIMenu getEditMenu(UITextRange textRange, NSArray suggestedActions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "willPresentEditMenuWithAnimator:") + public native void willPresentEditMenu(UIEditMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "willDismissEditMenuWithAnimator:") + public native void willDismissEditMenu(UIEditMenuInteractionAnimating animator); @Method(selector = "insertText:") public native void insertText(String text); @Method(selector = "deleteBackward") public native void deleteBackward(); + @Method(selector = "findInteraction:sessionForView:") + public native UIFindSession getSession(UIFindInteraction interaction, UIView view); + @Method(selector = "findInteraction:didBeginFindSession:") + public native void didBeginFindSession(UIFindInteraction interaction, UIFindSession session); + @Method(selector = "findInteraction:didEndFindSession:") + public native void didEndFindSession(UIFindInteraction interaction, UIFindSession session); + @Method(selector = "compareFoundRange:toRange:inDocument:") + public native NSComparisonResult compare(UITextRange foundRange, UITextRange toRange, NSObject document); + @Method(selector = "performTextSearchWithQueryString:usingOptions:resultAggregator:") + public native void performTextSearch(String string, UITextSearchOptions options, UITextSearchAggregator aggregator); + @Method(selector = "decorateFoundTextRange:inDocument:usingStyle:") + public native void decorateFoundTextRange(UITextRange range, NSObject document, UITextSearchFoundTextStyle style); + @Method(selector = "clearAllDecoratedFoundText") + public native void clearAllDecoratedFoundText(); + @Method(selector = "shouldReplaceFoundTextInRange:inDocument:withText:") + public native boolean shouldReplaceFoundTextInRange(UITextRange range, NSObject document, String replacementText); + @Method(selector = "replaceFoundTextInRange:inDocument:withText:") + public native void replaceFoundTextInRange(UITextRange range, NSObject document, String replacementText); + @Method(selector = "replaceAllOccurrencesOfQueryString:usingOptions:withText:") + public native void replaceAllOccurrencesOfQueryString(String queryString, UITextSearchOptions options, String replacementText); + @Method(selector = "willHighlightFoundTextRange:inDocument:") + public native void willHighlightFoundTextRange(UITextRange range, NSObject document); + @Method(selector = "scrollRangeToVisible:inDocument:") + public native void scrollRangeToVisible(UITextRange range, NSObject document); + @Method(selector = "compareOrderFromDocument:toDocument:") + public native NSComparisonResult compareOrder(NSObject fromDocument, NSObject toDocument); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegate.java index 6aed6ef80..7cebd2933 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegate.java @@ -93,6 +93,21 @@ @Deprecated @Method(selector = "textView:shouldInteractWithTextAttachment:inRange:") boolean shouldInteractWithTextAttachment(UITextView textView, NSTextAttachment textAttachment, @ByVal NSRange characterRange); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textView:editMenuForTextInRange:suggestedActions:") + UIMenu getEditMenu(UITextView textView, @ByVal NSRange range, NSArray suggestedActions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textView:willPresentEditMenuWithAnimator:") + void willPresentEditMenu(UITextView textView, UIEditMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textView:willDismissEditMenuWithAnimator:") + void willDismissEditMenu(UITextView textView, UIEditMenuInteractionAnimating animator); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegateAdapter.java index 89735ce5b..d15edc7b4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITextViewDelegateAdapter.java @@ -95,5 +95,20 @@ public void didChangeSelection(UITextView textView) {} @Deprecated @NotImplemented("textView:shouldInteractWithTextAttachment:inRange:") public boolean shouldInteractWithTextAttachment(UITextView textView, NSTextAttachment textAttachment, @ByVal NSRange characterRange) { return false; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("textView:editMenuForTextInRange:suggestedActions:") + public UIMenu getEditMenu(UITextView textView, @ByVal NSRange range, NSArray suggestedActions) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("textView:willPresentEditMenuWithAnimator:") + public void willPresentEditMenu(UITextView textView, UIEditMenuInteractionAnimating animator) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("textView:willDismissEditMenuWithAnimator:") + public void willDismissEditMenu(UITextView textView, UIEditMenuInteractionAnimating animator) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIView.java index b96dd9db3..603e8f85e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIView.java @@ -47,7 +47,7 @@ /**/@Library("UIKit") @NativeClass/**/ /**/public/**/ class /**/UIView/**/ extends /**/UIResponder/**/ - /**/implements NSCoding, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate, UIAccessibilityIdentification, UILargeContentViewerItem/**/ { + /**/implements NSCoding, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate, UIAccessibilityIdentification, UILargeContentViewerItem, UIPopoverPresentationControllerSourceItem/**/ { /**/public static class UIViewPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(UIView.class); }/**/ @@ -162,6 +162,16 @@ public UIView() {} public native @MachineSizedFloat double getContentScaleFactor(); @Property(selector = "setContentScaleFactor:") public native void setContentScaleFactor(@MachineSizedFloat double v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "anchorPoint") + public native @ByVal CGPoint getAnchorPoint(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAnchorPoint:") + public native void setAnchorPoint(@ByVal CGPoint v); @Property(selector = "isMultipleTouchEnabled") public native boolean isMultipleTouchEnabled(); @Property(selector = "setMultipleTouchEnabled:") @@ -395,14 +405,29 @@ public UIView() {} */ @Property(selector = "setOverrideUserInterfaceStyle:") public native void setOverrideUserInterfaceStyle(UIUserInterfaceStyle v); + /** + * @since Available in iOS 15.0 and later. + */ @Property(selector = "minimumContentSizeCategory") public native String getMinimumContentSizeCategory(); + /** + * @since Available in iOS 15.0 and later. + */ @Property(selector = "setMinimumContentSizeCategory:") public native void setMinimumContentSizeCategory(String v); + /** + * @since Available in iOS 15.0 and later. + */ @Property(selector = "maximumContentSizeCategory") public native String getMaximumContentSizeCategory(); + /** + * @since Available in iOS 15.0 and later. + */ @Property(selector = "setMaximumContentSizeCategory:") public native void setMaximumContentSizeCategory(String v); + /** + * @since Available in iOS 15.0 and later. + */ @Property(selector = "appliedContentSizeCategoryLimitsDescription") public native String getAppliedContentSizeCategoryLimitsDescription(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIViewController.java index fa6f713a4..629d1a1d7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIViewController.java @@ -134,6 +134,16 @@ public UIViewController() {} */ @Property(selector = "setFocusGroupIdentifier:") public native void setFocusGroupIdentifier(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "interactionActivityTrackingBaseName") + public native String getInteractionActivityTrackingBaseName(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setInteractionActivityTrackingBaseName:") + public native void setInteractionActivityTrackingBaseName(String v); @Property(selector = "isBeingPresented") public native boolean isBeingPresented(); @Property(selector = "isBeingDismissed") @@ -208,6 +218,10 @@ public UIViewController() {} */ @Property(selector = "setOverrideUserInterfaceStyle:") public native void setOverrideUserInterfaceStyle(UIUserInterfaceStyle v); + /** + * @deprecated Deprecated in iOS 16.0. Update supported interface orientations and call setNeedsUpdateOfSupportedInterfaceOrientations to indicate a change. + */ + @Deprecated @Property(selector = "shouldAutorotate") public native boolean shouldAutorotate(); @Property(selector = "supportedInterfaceOrientations") @@ -305,6 +319,11 @@ public UIViewController() {} public native UISheetPresentationController getSheetPresentationController(); @Property(selector = "popoverPresentationController") public native UIPopoverPresentationController getPopoverPresentationController(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "activePresentationController") + public native UIPresentationController getActivePresentationController(); /** * @since Available in iOS 13.0 and later. */ @@ -605,6 +624,11 @@ public void dismissMoviePlayerViewController() { public native void showViewController(UIViewController vc, NSObject sender); @Method(selector = "showDetailViewController:sender:") public native void showDetailViewController(UIViewController vc, NSObject sender); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setNeedsUpdateOfSupportedInterfaceOrientations") + public native void setNeedsUpdateOfSupportedInterfaceOrientations(); /** * @deprecated Deprecated in iOS 8.0. Header views are animated along with the rest of the view hierarchy */ @@ -635,6 +659,10 @@ public void dismissMoviePlayerViewController() { @Deprecated @Method(selector = "willAnimateRotationToInterfaceOrientation:duration:") public native void willAnimateRotation(UIInterfaceOrientation toInterfaceOrientation, double duration); + /** + * @deprecated Deprecated in iOS 16.0. Please use instance method `setNeedsUpdateOfSupportedInterfaceOrientations`. + */ + @Deprecated @Method(selector = "attemptRotationToDeviceOrientation") public static native void attemptRotationToDeviceOrientation(); @Method(selector = "setEditing:animated:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java index 8e9b49ec1..b9af97c28 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java @@ -165,10 +165,6 @@ public UIWindow() {} */ @Property(selector = "setWindowScene:", strongRef = true) public native void setWindowScene(UIWindowScene v); - @Property(selector = "canResizeToFitContent") - public native boolean canResizeToFitContent(); - @Property(selector = "setCanResizeToFitContent:") - public native void setCanResizeToFitContent(boolean v); @Property(selector = "screen") public native UIScreen getScreen(); @Property(selector = "setScreen:") @@ -191,6 +187,11 @@ public UIWindow() {} @WeaklyLinked @Property(selector = "layerClass") public static native Class getLayerClass(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "safeAreaAspectFitLayoutGuide") + public native UILayoutGuide getSafeAreaAspectFitLayoutGuide(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java index 426131486..8bfd9253d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java @@ -70,6 +70,11 @@ protected UIWindowScene() {} public native UICoordinateSpace getCoordinateSpace(); @Property(selector = "traitCollection") public native UITraitCollection getTraitCollection(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "effectiveGeometry") + public native UIWindowSceneGeometry getEffectiveGeometry(); /** * @since Available in iOS 13.0 and later. */ @@ -92,6 +97,11 @@ protected UIWindowScene() {} */ @Property(selector = "setActivityItemsConfigurationSource:", strongRef = true) public native void setActivityItemsConfigurationSource(UIActivityItemsConfigurationProviding v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "windowingBehaviors") + public native UISceneWindowingBehaviors getWindowingBehaviors(); /** * @since Available in iOS 15.0 and later. */ @@ -107,6 +117,10 @@ protected UIWindowScene() {} /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "requestGeometryUpdateWithPreferences:errorHandler:") + public native void requestGeometryUpdate(UIWindowSceneGeometryPreferences geometryPreferences, @Block VoidBlock1 errorHandler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometry.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometry.java new file mode 100644 index 000000000..a9616295b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometry.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIWindowSceneGeometry/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UIWindowSceneGeometryPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIWindowSceneGeometry.class); }/**/ + /**//**/ + /**/ + protected UIWindowSceneGeometry() {} + protected UIWindowSceneGeometry(Handle h, long handle) { super(h, handle); } + protected UIWindowSceneGeometry(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "interfaceOrientation") + public native UIInterfaceOrientation getInterfaceOrientation(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferences.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferences.java new file mode 100644 index 000000000..0956af580 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferences.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIWindowSceneGeometryPreferences/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class UIWindowSceneGeometryPreferencesPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIWindowSceneGeometryPreferences.class); }/**/ + /**//**/ + /**/ + protected UIWindowSceneGeometryPreferences() {} + protected UIWindowSceneGeometryPreferences(Handle h, long handle) { super(h, handle); } + protected UIWindowSceneGeometryPreferences(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesIOS.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesIOS.java new file mode 100644 index 000000000..f4e7d213b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesIOS.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIWindowSceneGeometryPreferencesIOS/**/ + extends /**/UIWindowSceneGeometryPreferences/**/ + /**//**/ { + + /**/public static class UIWindowSceneGeometryPreferencesIOSPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIWindowSceneGeometryPreferencesIOS.class); }/**/ + /**//**/ + /**/ + public UIWindowSceneGeometryPreferencesIOS() {} + protected UIWindowSceneGeometryPreferencesIOS(Handle h, long handle) { super(h, handle); } + protected UIWindowSceneGeometryPreferencesIOS(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithInterfaceOrientations:") + public UIWindowSceneGeometryPreferencesIOS(UIInterfaceOrientationMask interfaceOrientations) { super((SkipInit) null); initObject(init(interfaceOrientations)); } + /**/ + /**/ + @Property(selector = "interfaceOrientations") + public native UIInterfaceOrientationMask getInterfaceOrientations(); + @Property(selector = "setInterfaceOrientations:") + public native void setInterfaceOrientations(UIInterfaceOrientationMask v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithInterfaceOrientations:") + protected native @Pointer long init(UIInterfaceOrientationMask interfaceOrientations); + /**/ +} From 87faa92ebd0c69190d7e3f4dcc807cb58e6ed20d Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:28:06 +0300 Subject: [PATCH 03/73] * ios16 bindings: Social processed --- .../social/SLComposeServiceViewController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/social/SLComposeServiceViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/social/SLComposeServiceViewController.java index 9af822c61..01553c827 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/social/SLComposeServiceViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/social/SLComposeServiceViewController.java @@ -131,6 +131,21 @@ public SLComposeServiceViewController() {} @Deprecated @Method(selector = "textView:shouldInteractWithTextAttachment:inRange:") public native boolean shouldInteractWithTextAttachment(UITextView textView, NSTextAttachment textAttachment, @ByVal NSRange characterRange); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textView:editMenuForTextInRange:suggestedActions:") + public native UIMenu getEditMenu(UITextView textView, @ByVal NSRange range, NSArray suggestedActions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textView:willPresentEditMenuWithAnimator:") + public native void willPresentEditMenu(UITextView textView, UIEditMenuInteractionAnimating animator); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "textView:willDismissEditMenuWithAnimator:") + public native void willDismissEditMenu(UITextView textView, UIEditMenuInteractionAnimating animator); @Method(selector = "scrollViewDidScroll:") public native void didScroll(UIScrollView scrollView); @Method(selector = "scrollViewDidZoom:") From 7705637f842d70fb9d42295f11fcca54aa8e2309 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:35:17 +0300 Subject: [PATCH 04/73] * ios16 bindings: CoreImage processed --- .../main/java/org/robovm/apple/coreimage/CIImage.java | 10 ++++++++++ .../robovm/apple/coreimage/CIImageProcessorInput.java | 5 +++++ .../apple/coreimage/CIImageProcessorInputAdapter.java | 5 +++++ .../robovm/apple/coreimage/CIImageProcessorOutput.java | 5 +++++ .../apple/coreimage/CIImageProcessorOutputAdapter.java | 5 +++++ 5 files changed, 30 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImage.java index 3bd867b96..f8d1d864f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImage.java @@ -411,6 +411,16 @@ public CIImage(org.robovm.apple.uikit.UIImage image, CIImageOptions options) { public native NSArray getAutoAdjustmentFilters(); @Method(selector = "autoAdjustmentFiltersWithOptions:") public native NSArray getAutoAdjustmentFilters(CIImageAutoAdjustmentOptions options); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "imageByConvertingWorkingSpaceToLab") + public native CIImage newImageByConvertingWorkingSpaceToLab(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "imageByConvertingLabToWorkingSpace") + public native CIImage newImageByConvertingLabToWorkingSpace(); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInput.java index 62de50228..4d99569ae 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInput.java @@ -68,6 +68,11 @@ CVPixelBuffer getPixelBuffer(); @Property(selector = "metalTexture") MTLTexture getMetalTexture(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "digest") + long getDigest(); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInputAdapter.java index b66b68fee..e1c13c598 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInputAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorInputAdapter.java @@ -67,6 +67,11 @@ public CVPixelBuffer getPixelBuffer() { return null; } @NotImplemented("metalTexture") public MTLTexture getMetalTexture() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("digest") + public long getDigest() { return 0; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutput.java index b373cbdf7..e56574025 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutput.java @@ -70,6 +70,11 @@ MTLTexture getMetalTexture(); @Property(selector = "metalCommandBuffer") MTLCommandBuffer getMetalCommandBuffer(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "digest") + long getDigest(); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutputAdapter.java index 9d936c355..d335d6957 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutputAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreimage/CIImageProcessorOutputAdapter.java @@ -69,6 +69,11 @@ public MTLTexture getMetalTexture() { return null; } @NotImplemented("metalCommandBuffer") public MTLCommandBuffer getMetalCommandBuffer() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("digest") + public long getDigest() { return 0; } /**/ /**//**/ /**/ From e1460e63459431dcbd7fa02c7d0431e0a5830dd0 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:36:44 +0300 Subject: [PATCH 05/73] * ios16 bindings: CoreLocation processed --- .../main/java/org/robovm/apple/corelocation/CLErrorCode.java | 3 ++- .../java/org/robovm/apple/corelocation/CLLocationManager.java | 2 -- .../main/java/org/robovm/apple/corelocation/CLPlacemark.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLErrorCode.java index c92b754de..834547bd5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLErrorCode.java @@ -58,7 +58,8 @@ public enum /**/CLErrorCode/**/ implements NSErrorCode { DeferredCanceled(15L), RangingUnavailable(16L), RangingFailure(17L), - PromptDeclined(18L); + PromptDeclined(18L), + HistoricalLocationError(19L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java index 251c84d43..a396e9bc7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java @@ -156,8 +156,6 @@ public CLLocationManager() {} */ @Method(selector = "requestTemporaryFullAccuracyAuthorizationWithPurposeKey:") public native void requestTemporaryFullAccuracyAuthorization(String purposeKey); - @Method(selector = "startUpdatingLocation") - public native void startUpdatingLocation(); @Method(selector = "stopUpdatingLocation") public native void stopUpdatingLocation(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLPlacemark.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLPlacemark.java index 45ad2c038..f533e9cd5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLPlacemark.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLPlacemark.java @@ -45,7 +45,7 @@ /**/static { ObjCRuntime.bind(CLPlacemark.class); }/**/ /**//**/ /**/ - public CLPlacemark() {} + protected CLPlacemark() {} protected CLPlacemark(Handle h, long handle) { super(h, handle); } protected CLPlacemark(SkipInit skipInit) { super(skipInit); } @Method(selector = "initWithPlacemark:") From 4e0d3644807fed3c31cded68a0c8c346d7aa6179 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:37:50 +0300 Subject: [PATCH 06/73] * ios16 bindings: CoreMedia processed --- .../apple/coremedia/CMImageDescriptionFlavor.java | 11 ++++++++++- .../robovm/apple/coremedia/CMTextMarkupAttribute.java | 11 ++++++++++- .../org/robovm/apple/coremedia/CMVideoCodecType.java | 3 ++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMImageDescriptionFlavor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMImageDescriptionFlavor.java index 359c462cf..7fada9fb8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMImageDescriptionFlavor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMImageDescriptionFlavor.java @@ -93,9 +93,13 @@ public static long toNative(List l, long flags) { public static final CMImageDescriptionFlavor QuickTimeMovie = new CMImageDescriptionFlavor("QuickTimeMovie"); public static final CMImageDescriptionFlavor ISOFamily = new CMImageDescriptionFlavor("ISOFamily"); public static final CMImageDescriptionFlavor _3GPFamily = new CMImageDescriptionFlavor("_3GPFamily"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final CMImageDescriptionFlavor ISOFamilyWithAppleExtensions = new CMImageDescriptionFlavor("ISOFamilyWithAppleExtensions"); /**/ - private static /**/CMImageDescriptionFlavor/**/[] values = new /**/CMImageDescriptionFlavor/**/[] {/**/QuickTimeMovie, ISOFamily, _3GPFamily/**/}; + private static /**/CMImageDescriptionFlavor/**/[] values = new /**/CMImageDescriptionFlavor/**/[] {/**/QuickTimeMovie, ISOFamily, _3GPFamily, ISOFamilyWithAppleExtensions/**/}; /**/CMImageDescriptionFlavor/**/ (String getterName) { super(Values.class, getterName); @@ -124,6 +128,11 @@ public static class Values { public static native CFString ISOFamily(); @GlobalValue(symbol="kCMImageDescriptionFlavor_3GPFamily", optional=true) public static native CFString _3GPFamily(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCMImageDescriptionFlavor_ISOFamilyWithAppleExtensions", optional=true) + public static native CFString ISOFamilyWithAppleExtensions(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMTextMarkupAttribute.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMTextMarkupAttribute.java index d20fa8724..b12e55047 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMTextMarkupAttribute.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMTextMarkupAttribute.java @@ -99,6 +99,10 @@ public static long toNative(List l, long flags) { public static final CMTextMarkupAttribute ItalicStyle = new CMTextMarkupAttribute("ItalicStyle"); public static final CMTextMarkupAttribute UnderlineStyle = new CMTextMarkupAttribute("UnderlineStyle"); public static final CMTextMarkupAttribute FontFamilyName = new CMTextMarkupAttribute("FontFamilyName"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final CMTextMarkupAttribute FontFamilyNameList = new CMTextMarkupAttribute("FontFamilyNameList"); public static final CMTextMarkupAttribute GenericFontFamilyName = new CMTextMarkupAttribute("GenericFontFamilyName"); public static final CMTextMarkupAttribute BaseFontSizePercentageRelativeToVideoHeight = new CMTextMarkupAttribute("BaseFontSizePercentageRelativeToVideoHeight"); public static final CMTextMarkupAttribute RelativeFontSize = new CMTextMarkupAttribute("RelativeFontSize"); @@ -110,7 +114,7 @@ public static long toNative(List l, long flags) { public static final CMTextMarkupAttribute CharacterEdgeStyle = new CMTextMarkupAttribute("CharacterEdgeStyle"); /**/ - private static /**/CMTextMarkupAttribute/**/[] values = new /**/CMTextMarkupAttribute/**/[] {/**/ForegroundColorARGB, BackgroundColorARGB, CharacterBackgroundColorARGB, BoldStyle, ItalicStyle, UnderlineStyle, FontFamilyName, GenericFontFamilyName, BaseFontSizePercentageRelativeToVideoHeight, RelativeFontSize, VerticalLayout, Alignment, TextPositionPercentageRelativeToWritingDirection, OrthogonalLinePositionPercentageRelativeToWritingDirection, WritingDirectionSizePercentage, CharacterEdgeStyle/**/}; + private static /**/CMTextMarkupAttribute/**/[] values = new /**/CMTextMarkupAttribute/**/[] {/**/ForegroundColorARGB, BackgroundColorARGB, CharacterBackgroundColorARGB, BoldStyle, ItalicStyle, UnderlineStyle, FontFamilyName, FontFamilyNameList, GenericFontFamilyName, BaseFontSizePercentageRelativeToVideoHeight, RelativeFontSize, VerticalLayout, Alignment, TextPositionPercentageRelativeToWritingDirection, OrthogonalLinePositionPercentageRelativeToWritingDirection, WritingDirectionSizePercentage, CharacterEdgeStyle/**/}; /**/CMTextMarkupAttribute/**/ (String getterName) { super(Values.class, getterName); @@ -147,6 +151,11 @@ public static class Values { public static native CFString UnderlineStyle(); @GlobalValue(symbol="kCMTextMarkupAttribute_FontFamilyName", optional=true) public static native CFString FontFamilyName(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCMTextMarkupAttribute_FontFamilyNameList", optional=true) + public static native CFString FontFamilyNameList(); @GlobalValue(symbol="kCMTextMarkupAttribute_GenericFontFamilyName", optional=true) public static native CFString GenericFontFamilyName(); @GlobalValue(symbol="kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight", optional=true) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMVideoCodecType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMVideoCodecType.java index fbe2b9c90..1ae970f34 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMVideoCodecType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMVideoCodecType.java @@ -78,7 +78,8 @@ public enum /**/CMVideoCodecType/**/ implements ValuedEnum { AppleProResRAW(1634759278L), AppleProResRAWHQ(1634759272L), DisparityHEVC(1684632424L), - DepthHEVC(1684369512L); + DepthHEVC(1684369512L), + AV1(1635135537L); /**/ public static class AsListMarshaler { From 90d04fcee6f0c6f038937282291ec4fffc040d80 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:38:20 +0300 Subject: [PATCH 07/73] * ios16 bindings: CoreMidi processed --- .../main/java/org/robovm/apple/coremidi/CoreMIDI.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremidi/CoreMIDI.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremidi/CoreMIDI.java index a6970113a..0ec98f1a8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremidi/CoreMIDI.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremidi/CoreMIDI.java @@ -54,5 +54,16 @@ public static native NSString NetworkNotificationContactsDidChange(); @GlobalValue(symbol="MIDINetworkNotificationSessionDidChange", optional=true) public static native NSString NetworkNotificationSessionDidChange(); + + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="MIDIBluetoothDriverActivateAllConnections", optional=true) + public static native OSStatus function__MIDIBluetoothDriverActivateAllConnections(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="MIDIBluetoothDriverDisconnect", optional=true) + public static native OSStatus function__MIDIBluetoothDriverDisconnect(String uuid); /**/ } From 249c4a729e4f977e7621ee7243ec10591bdead4c Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:47:30 +0300 Subject: [PATCH 08/73] * ios16 bindings: CoreML processed --- .../cocoatouch/src/main/bro-gen/coreml.yaml | 20 +++++ .../robovm/apple/coreml/MLComputeUnits.java | 6 +- .../java/org/robovm/apple/coreml/MLModel.java | 14 ++++ .../org/robovm/apple/coreml/MLModelAsset.java | 78 +++++++++++++++++++ .../apple/coreml/MLModelConfiguration.java | 10 +++ .../org/robovm/apple/coreml/MLMultiArray.java | 30 +++++++ .../apple/coreml/MLMultiArrayDataType.java | 4 + .../apple/coreml/MLPredictionOptions.java | 10 +++ .../org/robovm/apple/coreml/MLUpdateTask.java | 36 ++++++++- 9 files changed, 203 insertions(+), 5 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelAsset.java diff --git a/compiler/cocoatouch/src/main/bro-gen/coreml.yaml b/compiler/cocoatouch/src/main/bro-gen/coreml.yaml index ea2cfb184..a86ba172a 100755 --- a/compiler/cocoatouch/src/main/bro-gen/coreml.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/coreml.yaml @@ -127,6 +127,10 @@ classes: throws: NSErrorException '+loadContentsOfURL:configuration:completionHandler:': name: load + '+loadModelAsset:configuration:completionHandler:': + name: loadModelAsset + '+compileModelAtURL:completionHandler:': + name: compileModelAtURL MLModelDescription: {} #since 11.0 MLMultiArray: #since 11.0 methods: @@ -143,6 +147,12 @@ classes: '+multiArrayByConcatenatingMultiArrays:alongAxis:dataType:': constructor: true name: multiArrayByConcatenatingMultiArrays + '-initWithPixelBuffer:shape:': + name: init + '-getBytesWithHandler:': + name: getBytes + '-getMutableBytesWithHandler:': + name: getMutableBytes MLMultiArrayConstraint: {} #since 11.0 MLPredictionOptions: {} #since 11.0 MLArrayBatchProvider: #since 12.0 @@ -186,15 +196,19 @@ classes: '+updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:': constructor: true name: create + throws: NSErrorException '+updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:': constructor: true name: create + throws: NSErrorException '+updateTaskForModelAtURL:trainingData:completionHandler:error:': constructor: true name: create + throws: NSErrorException '+updateTaskForModelAtURL:trainingData:progressHandlers:error:': constructor: true name: create + throws: NSErrorException MLModelCollection: #since 14.0 methods: '+beginAccessingModelCollectionWithIdentifier:completionHandler:': @@ -202,6 +216,12 @@ classes: '+endAccessingModelCollectionWithIdentifier:completionHandler:': name: endAccessingModelCollection MLModelCollectionEntry: {} #since 14.0 + MLModelAsset: #since 16.0 + methods: + '+modelAssetWithSpecificationData:error:': + constructor: true + name: create + throws: NSErrorException protocols: MLFeatureProvider: {} #since 11.0 MLBatchProvider: {} #since 12.0 diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLComputeUnits.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLComputeUnits.java index d5d97daca..b8ff8e7e7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLComputeUnits.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLComputeUnits.java @@ -45,7 +45,11 @@ public enum /**/MLComputeUnits/**/ implements ValuedEnum { /**/ CPUOnly(0L), CPUAndGPU(1L), - All(2L); + All(2L), + /** + * @since Available in iOS 16.0 and later. + */ + CPUAndNeuralEngine(3L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModel.java index a9a23a8f7..e518cbb60 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModel.java @@ -147,9 +147,16 @@ public NSObject getParameterValue(MLParameterKey key) throws NSErrorException { */ @Method(selector = "loadContentsOfURL:configuration:completionHandler:") public static native void load(NSURL url, MLModelConfiguration configuration, @Block VoidBlock2 handler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "loadModelAsset:configuration:completionHandler:") + public static native void loadModelAsset(MLModelAsset asset, MLModelConfiguration configuration, @Block VoidBlock2 handler); /** * @since Available in iOS 11.0 and later. + * @deprecated Use the asynchronous interface compileModelAtURL:completionHandler:error: instead. */ + @Deprecated public static NSURL compileModel(NSURL modelURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURL result = compileModel(modelURL, ptr); @@ -158,8 +165,15 @@ public static NSURL compileModel(NSURL modelURL) throws NSErrorException { } /** * @since Available in iOS 11.0 and later. + * @deprecated Use the asynchronous interface compileModelAtURL:completionHandler:error: instead. */ + @Deprecated @Method(selector = "compileModelAtURL:error:") private static native NSURL compileModel(NSURL modelURL, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "compileModelAtURL:completionHandler:") + public static native void compileModelAtURL(NSURL modelURL, @Block VoidBlock2 handler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelAsset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelAsset.java new file mode 100644 index 000000000..9f27625a6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelAsset.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coreml; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.imageio.*; +import org.robovm.apple.vision.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CoreML") @NativeClass/**/ +/**/public/**/ class /**/MLModelAsset/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MLModelAssetPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MLModelAsset.class); }/**/ + /**//**/ + /**/ + protected MLModelAsset() {} + protected MLModelAsset(Handle h, long handle) { super(h, handle); } + protected MLModelAsset(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + public MLModelAsset(NSData specificationData) throws NSErrorException { + this(specificationData, new NSError.NSErrorPtr()); + } + private MLModelAsset(NSData specificationData, NSError.NSErrorPtr ptr) throws NSErrorException { + super((Handle) null, create(specificationData, ptr)); + retain(getHandle()); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "modelAssetWithSpecificationData:error:") + protected static native @Pointer long create(NSData specificationData, NSError.NSErrorPtr error); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelConfiguration.java index 4b3dbce6b..4405d3d68 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLModelConfiguration.java @@ -56,6 +56,16 @@ public MLModelConfiguration() {} public MLModelConfiguration(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "modelDisplayName") + public native String getModelDisplayName(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setModelDisplayName:") + public native void setModelDisplayName(String v); @Property(selector = "computeUnits") public native MLComputeUnits getComputeUnits(); @Property(selector = "setComputeUnits:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArray.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArray.java index 06b22f2bc..ebb2bc3dc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArray.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArray.java @@ -68,6 +68,11 @@ public MLMultiArray(VoidPtr dataPointer, NSArray shape, MLMultiArrayDa if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } initObject(handle); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithPixelBuffer:shape:") + public MLMultiArray(CVPixelBuffer pixelBuffer, NSArray shape) { super((SkipInit) null); initObject(init(pixelBuffer, shape)); } /** * @since Available in iOS 14.0 and later. */ @@ -76,6 +81,11 @@ public MLMultiArray(VoidPtr dataPointer, NSArray shape, MLMultiArrayDa public MLMultiArray(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ /**/ + /** + * @since Available in iOS 11.0 and later. + * @deprecated Use getBytesWithHandler or getMutableBytesWithHandler instead. For Swift, use withUnsafeBytes or withUnsafeMutableBytes. + */ + @Deprecated @Property(selector = "dataPointer") public native VoidPtr getDataPointer(); @Property(selector = "dataType") @@ -86,6 +96,11 @@ public MLMultiArray(VoidPtr dataPointer, NSArray shape, MLMultiArrayDa public native NSArray getStrides(); @Property(selector = "count") public native @MachineSizedSInt long getCount(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pixelBuffer") + public native CVPixelBuffer getPixelBuffer(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ @@ -95,6 +110,21 @@ public MLMultiArray(VoidPtr dataPointer, NSArray shape, MLMultiArrayDa private native @Pointer long init(NSArray shape, MLMultiArrayDataType dataType, NSError.NSErrorPtr error); @Method(selector = "initWithDataPointer:shape:dataType:strides:deallocator:error:") private native @Pointer long init(VoidPtr dataPointer, NSArray shape, MLMultiArrayDataType dataType, NSArray strides, @Block VoidBlock1 deallocator, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithPixelBuffer:shape:") + protected native @Pointer long init(CVPixelBuffer pixelBuffer, NSArray shape); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "getBytesWithHandler:") + public native void getBytes(@Block("(,@MachineSizedSInt)") VoidBlock2 handler); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "getMutableBytesWithHandler:") + public native void getMutableBytes(@Block("(,@MachineSizedSInt,)") VoidBlock3> handler); /** * @since Available in iOS 14.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArrayDataType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArrayDataType.java index 6f814afbc..fe4d0c33b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArrayDataType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLMultiArrayDataType.java @@ -49,6 +49,10 @@ public enum /**/MLMultiArrayDataType/**/ implements ValuedEnum { */ Float64(65600L), Float32(65568L), + /** + * @since Available in iOS 16.0 and later. + */ + Float16(65552L), /** * @since Available in iOS 14.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLPredictionOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLPredictionOptions.java index a21036bc5..b3bd6ac3f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLPredictionOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLPredictionOptions.java @@ -68,6 +68,16 @@ public MLPredictionOptions() {} @Deprecated @Property(selector = "setUsesCPUOnly:") public native void setUsesCPUOnly(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "outputBackings") + public native NSDictionary getOutputBackings(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setOutputBackings:") + public native void setOutputBackings(NSDictionary v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLUpdateTask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLUpdateTask.java index 953efef1d..7323537bb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLUpdateTask.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreml/MLUpdateTask.java @@ -52,16 +52,44 @@ protected MLUpdateTask() {} protected MLUpdateTask(Handle h, long handle) { super(h, handle); } protected MLUpdateTask(SkipInit skipInit) { super(skipInit); } - public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLModelConfiguration configuration, @Block VoidBlock1 completionHandler, NSError.NSErrorPtr error) { super((Handle) null, create(modelURL, trainingData, configuration, completionHandler, error)); retain(getHandle()); } + public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLModelConfiguration configuration, @Block VoidBlock1 completionHandler) throws NSErrorException { + this(modelURL, trainingData, configuration, completionHandler, new NSError.NSErrorPtr()); + } + private MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLModelConfiguration configuration, @Block VoidBlock1 completionHandler, NSError.NSErrorPtr ptr) throws NSErrorException { + super((Handle) null, create(modelURL, trainingData, configuration, completionHandler, ptr)); + retain(getHandle()); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + } /** * @since Available in iOS 14.0 and later. */ - public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, @Block VoidBlock1 completionHandler, NSError.NSErrorPtr error) { super((Handle) null, create(modelURL, trainingData, completionHandler, error)); retain(getHandle()); } - public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLModelConfiguration configuration, MLUpdateProgressHandlers progressHandlers, NSError.NSErrorPtr error) { super((Handle) null, create(modelURL, trainingData, configuration, progressHandlers, error)); retain(getHandle()); } + public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, @Block VoidBlock1 completionHandler) throws NSErrorException { + this(modelURL, trainingData, completionHandler, new NSError.NSErrorPtr()); + } + private MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, @Block VoidBlock1 completionHandler, NSError.NSErrorPtr ptr) throws NSErrorException { + super((Handle) null, create(modelURL, trainingData, completionHandler, ptr)); + retain(getHandle()); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + } + public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLModelConfiguration configuration, MLUpdateProgressHandlers progressHandlers) throws NSErrorException { + this(modelURL, trainingData, configuration, progressHandlers, new NSError.NSErrorPtr()); + } + private MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLModelConfiguration configuration, MLUpdateProgressHandlers progressHandlers, NSError.NSErrorPtr ptr) throws NSErrorException { + super((Handle) null, create(modelURL, trainingData, configuration, progressHandlers, ptr)); + retain(getHandle()); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + } /** * @since Available in iOS 14.0 and later. */ - public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLUpdateProgressHandlers progressHandlers, NSError.NSErrorPtr error) { super((Handle) null, create(modelURL, trainingData, progressHandlers, error)); retain(getHandle()); } + public MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLUpdateProgressHandlers progressHandlers) throws NSErrorException { + this(modelURL, trainingData, progressHandlers, new NSError.NSErrorPtr()); + } + private MLUpdateTask(NSURL modelURL, MLBatchProvider trainingData, MLUpdateProgressHandlers progressHandlers, NSError.NSErrorPtr ptr) throws NSErrorException { + super((Handle) null, create(modelURL, trainingData, progressHandlers, ptr)); + retain(getHandle()); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + } /**/ /**/ From 1e335a2892b563f7282950c62e8a79d2d8151172 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:47:44 +0300 Subject: [PATCH 09/73] * ios16 bindings: ARKit processed --- .../cocoatouch/src/main/bro-gen/arkit.yaml | 3 + .../arkit/ARBodyTrackingConfiguration.java | 15 ++++ .../robovm/apple/arkit/ARConfiguration.java | 25 ++++++ .../org/robovm/apple/arkit/ARErrorCode.java | 8 ++ .../arkit/ARFaceTrackingConfiguration.java | 15 ++++ .../java/org/robovm/apple/arkit/ARFrame.java | 5 ++ .../arkit/ARGeoTrackingConfiguration.java | 15 ++++ .../arkit/ARImageTrackingConfiguration.java | 15 ++++ .../arkit/ARObjectScanningConfiguration.java | 15 ++++ .../AROrientationTrackingConfiguration.java | 15 ++++ .../org/robovm/apple/arkit/ARPlaneAnchor.java | 10 +++ .../org/robovm/apple/arkit/ARPlaneExtent.java | 82 +++++++++++++++++++ .../ARPositionalTrackingConfiguration.java | 15 ++++ .../robovm/apple/arkit/ARSCNFaceGeometry.java | 2 - .../apple/arkit/ARSCNPlaneGeometry.java | 2 - .../org/robovm/apple/arkit/ARSession.java | 5 ++ .../org/robovm/apple/arkit/ARVideoFormat.java | 10 +++ .../arkit/ARWorldTrackingConfiguration.java | 15 ++++ 18 files changed, 268 insertions(+), 4 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneExtent.java diff --git a/compiler/cocoatouch/src/main/bro-gen/arkit.yaml b/compiler/cocoatouch/src/main/bro-gen/arkit.yaml index b6f38a0b1..e60079cfc 100755 --- a/compiler/cocoatouch/src/main/bro-gen/arkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/arkit.yaml @@ -128,6 +128,8 @@ classes: name: update '-getGeoLocationForPoint:completionHandler:': name: getGeoLocation + '-captureHighResolutionFrameWithCompletion:': + name: captureHighResolutionFrame ARWorldTrackingConfiguration: #since 11.0 skip_def_constructor: true methods: @@ -242,6 +244,7 @@ classes: ARMeshAnchor: {} #since 13.4 ARMeshGeometry: {} #since 13.4 ARAppClipCodeAnchor: {} #since 14.3 + ARPlaneExtent: {} #since 16.0 protocols: ARSCNViewDelegate: #since 11.0 methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARBodyTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARBodyTrackingConfiguration.java index 8ba23b00d..d4adb3767 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARBodyTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARBodyTrackingConfiguration.java @@ -119,6 +119,21 @@ public ARBodyTrackingConfiguration() {} */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARConfiguration.java index 5a5e7be27..ca7339b83 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARConfiguration.java @@ -100,6 +100,31 @@ protected ARConfiguration() {} */ @Property(selector = "setFrameSemantics:") public native void setFrameSemantics(ARFrameSemantics v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "videoHDRAllowed") + public native boolean isVideoHDRAllowed(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setVideoHDRAllowed:") + public native void setVideoHDRAllowed(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARErrorCode.java index 3c969f0f4..27921c0a5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARErrorCode.java @@ -57,6 +57,14 @@ public enum /**/ARErrorCode/**/ implements NSErrorCode { * @since Available in iOS 14.0 and later. */ LocationUnauthorized(105L), + /** + * @since Available in iOS 16.0 and later. + */ + HighResolutionFrameCaptureInProgress(106L), + /** + * @since Available in iOS 16.0 and later. + */ + HighResolutionFrameCaptureFailed(107L), WorldTrackingFailed(200L), /** * @since Available in iOS 14.0 and later. diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFaceTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFaceTrackingConfiguration.java index adbe22098..e9d22d4da 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFaceTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFaceTrackingConfiguration.java @@ -98,6 +98,21 @@ */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFrame.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFrame.java index d7ecc1bdc..358527533 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFrame.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARFrame.java @@ -65,6 +65,11 @@ protected ARFrame() {} public native double getTimestamp(); @Property(selector = "capturedImage") public native CVPixelBuffer getCapturedImage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "exifData") + public native NSDictionary getExifData(); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARGeoTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARGeoTrackingConfiguration.java index aaf3bad40..1a8e73878 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARGeoTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARGeoTrackingConfiguration.java @@ -111,6 +111,21 @@ public ARGeoTrackingConfiguration() {} */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARImageTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARImageTrackingConfiguration.java index a4ab49b44..6d5c4e2a6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARImageTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARImageTrackingConfiguration.java @@ -80,6 +80,21 @@ public ARImageTrackingConfiguration() {} */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARObjectScanningConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARObjectScanningConfiguration.java index 139215773..ccfd96b6a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARObjectScanningConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARObjectScanningConfiguration.java @@ -76,6 +76,21 @@ public ARObjectScanningConfiguration() {} */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/AROrientationTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/AROrientationTrackingConfiguration.java index a9e68b1ae..0ad5050c0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/AROrientationTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/AROrientationTrackingConfiguration.java @@ -78,6 +78,21 @@ */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneAnchor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneAnchor.java index 015021448..818c74db4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneAnchor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneAnchor.java @@ -70,8 +70,18 @@ protected ARPlaneAnchor() {} public native ARPlaneAnchorAlignment getAlignment(); @Property(selector = "center") public native @ByVal VectorFloat3 getCenter(); + /** + * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use planeExtent + */ + @Deprecated @Property(selector = "extent") public native @ByVal VectorFloat3 getExtent(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "planeExtent") + public native ARPlaneExtent getPlaneExtent(); /** * @since Available in iOS 11.3 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneExtent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneExtent.java new file mode 100644 index 000000000..70eab94b3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPlaneExtent.java @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.arkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.scenekit.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.spritekit.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.imageio.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("ARKit") @NativeClass/**/ +/**/public/**/ class /**/ARPlaneExtent/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class ARPlaneExtentPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(ARPlaneExtent.class); }/**/ + /**//**/ + /**/ + public ARPlaneExtent() {} + protected ARPlaneExtent(Handle h, long handle) { super(h, handle); } + protected ARPlaneExtent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public ARPlaneExtent(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "rotationOnYAxis") + public native float getRotationOnYAxis(); + @Property(selector = "width") + public native float getWidth(); + @Property(selector = "height") + public native float getHeight(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPositionalTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPositionalTrackingConfiguration.java index 52aebb450..fb2fa4dfd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPositionalTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARPositionalTrackingConfiguration.java @@ -76,6 +76,21 @@ public ARPositionalTrackingConfiguration() {} */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java index fb7b50114..3d13f4c45 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java @@ -74,8 +74,6 @@ protected ARSCNFaceGeometry() {} protected static native @Pointer long create(MTLDevice device); @Method(selector = "faceGeometryWithDevice:fillMesh:") protected static native @Pointer long create(MTLDevice device, boolean fillMesh); - @Method(selector = "geometry") - public static native ARSCNFaceGeometry createGeometry(); @Method(selector = "geometryWithSources:elements:") public static native ARSCNFaceGeometry createGeometry(NSArray sources, NSArray elements); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java index 5b040231c..83c9daa0c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java @@ -71,8 +71,6 @@ public ARSCNPlaneGeometry() {} public native void updateFromPlaneGeometry(ARPlaneGeometry planeGeometry); @Method(selector = "planeGeometryWithDevice:") protected static native @Pointer long create(MTLDevice device); - @Method(selector = "geometry") - public static native ARSCNPlaneGeometry createGeometry(); @Method(selector = "geometryWithSources:elements:") public static native ARSCNPlaneGeometry createGeometry(NSArray sources, NSArray elements); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSession.java index b7790e8d3..ccacc65e6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSession.java @@ -126,5 +126,10 @@ public ARSession() {} */ @Method(selector = "getGeoLocationForPoint:completionHandler:") public native void getGeoLocation(@ByVal VectorFloat3 position, @Block("(@ByVal,,)") VoidBlock3 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "captureHighResolutionFrameWithCompletion:") + public native void captureHighResolutionFrame(@Block VoidBlock2 completion); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARVideoFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARVideoFormat.java index 9d8c1b35a..7798a5d22 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARVideoFormat.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARVideoFormat.java @@ -75,6 +75,16 @@ protected ARVideoFormat() {} public native @ByVal CGSize getImageResolution(); @Property(selector = "framesPerSecond") public native @MachineSizedSInt long getFramesPerSecond(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isRecommendedForHighResolutionFrameCapturing") + public native boolean isRecommendedForHighResolutionFrameCapturing(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isVideoHDRSupported") + public native boolean isVideoHDRSupported(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARWorldTrackingConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARWorldTrackingConfiguration.java index c441f43b1..b0fb1ea78 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARWorldTrackingConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARWorldTrackingConfiguration.java @@ -202,6 +202,21 @@ */ @Property(selector = "supportedVideoFormats") public static native NSArray getSupportedVideoFormats(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurableCaptureDeviceForPrimaryCamera") + public static native AVCaptureDevice getConfigurableCaptureDeviceForPrimaryCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatFor4KResolution") + public static native ARVideoFormat getRecommendedVideoFormatFor4KResolution(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recommendedVideoFormatForHighResolutionFrameCapturing") + public static native ARVideoFormat getRecommendedVideoFormatForHighResolutionFrameCapturing(); /**/ /**//**/ /**/ From a54c163f8b9e147e408f7d1e35abe2ab1d6bc691 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 11:50:46 +0300 Subject: [PATCH 10/73] * ios16 bindings: CoreMotion processed --- .../src/main/bro-gen/coremotion.yaml | 2 + .../CMWaterSubmersionDepthState.java | 66 +++++++++++++++++++ .../coremotion/CMWaterSubmersionState.java | 62 +++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionDepthState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionState.java diff --git a/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml b/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml index 31725834a..004c7b79e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml @@ -17,6 +17,8 @@ enums: CMAuthorizationStatus: {} #since 11.0 CMDeviceMotionSensorLocation: {} CMFallDetectionEventUserResolution: {} + CMWaterSubmersionState: {} + CMWaterSubmersionDepthState: {} classes: CMError: extends: NSError diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionDepthState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionDepthState.java new file mode 100644 index 000000000..ae5f97481 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionDepthState.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coremotion; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/CMWaterSubmersionDepthState/**/ implements ValuedEnum { + /**/ + Unknown(0L), + NotSubmerged(100L), + SubmergedShallow(200L), + SubmergedDeep(300L), + ApproachingMaxDepth(400L), + PastMaxDepth(500L), + SensorDepthError(600L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/CMWaterSubmersionDepthState/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/CMWaterSubmersionDepthState/**/ valueOf(long n) { + for (/**/CMWaterSubmersionDepthState/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/CMWaterSubmersionDepthState/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionState.java new file mode 100644 index 000000000..3fe6f31f6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionState.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coremotion; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/CMWaterSubmersionState/**/ implements ValuedEnum { + /**/ + Unknown(0L), + NotSubmerged(1L), + Submerged(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/CMWaterSubmersionState/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/CMWaterSubmersionState/**/ valueOf(long n) { + for (/**/CMWaterSubmersionState/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/CMWaterSubmersionState/**/.class.getName()); + } +} From c9eb0b8b22697144c84d79b177ce7b5aa77a4135 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 13:31:23 +0300 Subject: [PATCH 11/73] * ios16 bindings: AudioToolbox processed --- .../src/main/bro-gen/audiotoolbox.yaml | 62 +++++++++++++++-- .../apple/audiotoolbox/AUAudioUnit.java | 5 ++ .../audiotoolbox/AUAudioUnitV2Bridge.java | 6 +- .../audiotoolbox/AUConfigurationInfo.java | 2 + .../apple/audiotoolbox/AUEventListener.java | 63 +++++++++++++++++ .../apple/audiotoolbox/AUMessageChannel.java | 64 +++++++++++++++++ .../audiotoolbox/AUMessageChannelAdapter.java | 62 +++++++++++++++++ .../audiotoolbox/AUParameterListener.java | 69 +++++++++++++++++++ .../audiotoolbox/AUParameterNewTimePitch.java | 13 +++- .../apple/audiotoolbox/AUTypeEffect.java | 4 ++ .../AudioCodecProduceOutputPacketStatus.java | 3 +- .../apple/audiotoolbox/AudioComponent.java | 15 ++++ .../apple/audiotoolbox/AudioToolbox.java | 9 +++ .../apple/audiotoolbox/AudioUnitEvent.java | 65 +++++++++++++++++ .../audiotoolbox/AudioUnitEventArgument.java | 65 +++++++++++++++++ .../audiotoolbox/AudioUnitEventType.java | 68 ++++++++++++++++++ .../audiotoolbox/AudioUnitParameter.java | 20 ++++-- 17 files changed, 582 insertions(+), 13 deletions(-) create mode 100755 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUEventListener.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannel.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannelAdapter.java create mode 100755 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterListener.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventArgument.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventType.java diff --git a/compiler/cocoatouch/src/main/bro-gen/audiotoolbox.yaml b/compiler/cocoatouch/src/main/bro-gen/audiotoolbox.yaml index f127ef843..6c896b7fe 100755 --- a/compiler/cocoatouch/src/main/bro-gen/audiotoolbox.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/audiotoolbox.yaml @@ -14,6 +14,9 @@ private_typedefs: '__CFDictionary': NSDictionary '__CFArray': NSArray '__CFRunLoop': NSRunLoop + AUParameterListenerRef: AUParameterListener + AUEventListenerRef: AUEventListener + OS_dispatch_queue: org.robovm.apple.dispatch.DispatchQueue enums: AudioBytePacketTranslationFlags: {prefix: kBytePacketTranslationFlag_, bits: true} @@ -205,7 +208,7 @@ enums: AUSpatialMixerSourceMode: {prefix: kSpatialMixerSourceMode_} AUSpatialMixerOutputType: {prefix: kSpatialMixerOutputType_} AUSpatialMixerPointSourceInHeadMode: {prefix: kSpatialMixerPointSourceInHeadMode_} - + AudioUnitEventType: {} # excludes as either deprecated or not to be used Excluded2: {prefix: kNumberOfResponseFrequencies, first: kNumberOfResponseFrequencies, exclude: true} # Excluded3: {prefix: kAudioUnitParameterName_Full, first: kAudioUnitParameterName_Full, exclude: true} -- will convert to constant @@ -269,6 +272,9 @@ classes: AUParameterAutomationEvent: {} AUParameterEvent: annotations: ['@Packed(4)'] + AudioUnitEvent: {} + AudioUnitEvent$InnerStruct$1: + name: AudioUnitEventArgument AURenderEvent: {} AURenderEventHeader: annotations: ['@Packed(4)'] @@ -838,12 +844,12 @@ classes: name: create constructor: true protocols: - AUAudioUnitFactory: + AUAudioUnitFactory: methods: '-createAudioUnitWithComponentDescription:error:': throws: NSErrorException name: createAudioUnit - + AUMessageChannel: {} #since 16.0 functions: (Audio.*)GetTypeID: class: '#{g[0]}' @@ -1533,11 +1539,44 @@ functions: AudioWorkIntervalCreate: exclude: true # as workgroups are not supported + AUListener(CreateWithDispatchQueue): + class: AUParameterListener + name: create0 + visibility: protected + AUListenerCreate: + exclude: true # in sake of block version + AUListener(.*): + class: AUParameterListener + name: '#{g[0]}' + AUParameterSet: + class: AUParameterListener + name: setParameter + AUParameterListenerNotify: + class: AUParameterListener + name: notifyParameterListener + + AUEventListener(CreateWithDispatchQueue): + class: AUEventListener + name: create0 + visibility: protected + AUEventListenerCreate: + exclude: true # in sake of block version + AUEventListener(.*): + class: AUEventListener + name: '#{g[0]}' + + AUParameterValue(FromLinear|ToLinear): + class: AudioUnitParameter + name: '#{g[0]}' + static: true + AUParameterFormatValue: + exclude: true + # Make sure we don't miss any functions if new ones are introduced in a later version - (k?AU.*): - class: AudioUnitGlobals + (AU.*): + class: AudioToolbox name: 'Function__#{g[0]}' - (k?Audio.*): + (Audio.*): class: AudioToolbox name: 'Function__#{g[0]}' @@ -1608,6 +1647,17 @@ constants: kMusicTimeStamp_EndOfTrack: class: AudioToolbox name: EndOfTrackTimeStamp + kAUParameterListener_(.*): + class: AUParameterListener + name: '#{g[0]}' + kAUSoundIsolationParam_(.*): + class: AudioToolbox + static_class: IsolationParams + name: '#{g[0]}' + kAUSoundIsolationSoundType_(.*): + class: AudioToolbox + static_class: IsolationSoundTypes + name: '#{g[0]}' # Make sure we don't miss any constants if new ones are introduced in a later version (k.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnit.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnit.java index 02b3b37b8..59164ee94 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnit.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnit.java @@ -357,6 +357,11 @@ public boolean deleteUserPreset(AUAudioUnitPreset userPreset) throws NSErrorExce */ @Method(selector = "disableProfile:cable:onChannel:error:") public native boolean disableProfile(MIDICIProfile profile, byte cable, byte channel, NSError.NSErrorPtr outError); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "messageChannelFor:") + public native AUMessageChannel messageChannelFor(String channelName); @Method(selector = "instantiateWithComponentDescription:options:completionHandler:") public static native void instantiate(@ByVal AudioComponentDescription componentDescription, AudioComponentInstantiationOptions options, @Block VoidBlock2 completionHandler); @Method(selector = "startHardwareAndReturnError:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnitV2Bridge.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnitV2Bridge.java index e07cd9d0f..f4392b351 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnitV2Bridge.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUAudioUnitV2Bridge.java @@ -58,7 +58,11 @@ protected AUAudioUnitV2Bridge() {} public AUAudioUnitV2Bridge(@ByVal AudioComponentDescription componentDescription) throws NSErrorException { super(componentDescription); } /**/ /**/ - + /** + * @since Available in iOS 14.0 and later. + */ + @Property(selector = "audioUnit") + public native AudioUnit getAudioUnit(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUConfigurationInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUConfigurationInfo.java index 411c2ea9c..bc0201a3f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUConfigurationInfo.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUConfigurationInfo.java @@ -54,6 +54,8 @@ public static final String IconURL = "IconURL"; public static final String BusCountWritable = "BusCountWritable"; public static final String SupportedChannelLayoutTags = "SupportedChannelLayoutTags"; + public static final String MIDIProtocol = "MIDIProtocol"; + public static final String MigrateFromPlugin = "MigrateFromPlugin"; /**/ /**//**/ /**//**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUEventListener.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUEventListener.java new file mode 100755 index 000000000..10eb52113 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUEventListener.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + + +/**/ +/**/ +/**/@Library("AudioToolbox")/**/ +/**/public/**/ class /**/AUEventListener/**/ + extends NativeObject + /**//**/ { + + /**/public static class AUEventListenerPtr extends Ptr {}/**/ + + /**/static { Bro.bind(AUEventListener.class); }/**/ + /**//**/ + /**//**/ + /**//**/ + /**//**/ + /**/ + @Bridge(symbol="AUEventListenerCreateWithDispatchQueue", optional=true) + protected static native OSStatus create0(AUEventListener.AUEventListenerPtr outListener, float inNotificationInterval, float inValueChangeGranularity, org.robovm.apple.dispatch.DispatchQueue inDispatchQueue, @Block VoidBlock4 inBlock); + @Bridge(symbol="AUEventListenerAddEventType", optional=true) + public native OSStatus addEventType(VoidPtr inObject, AudioUnitEvent inEvent); + @Bridge(symbol="AUEventListenerRemoveEventType", optional=true) + public native OSStatus removeEventType(VoidPtr inObject, AudioUnitEvent inEvent); + @Bridge(symbol="AUEventListenerNotify", optional=true) + public native OSStatus notify(VoidPtr inSendingObject, AudioUnitEvent inEvent); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannel.java new file mode 100644 index 000000000..191b92968 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannel.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/AUMessageChannel/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "callHostBlock") + @Block Block1, NSDictionary> getCallHostBlock(); + @Property(selector = "setCallHostBlock:") + void setCallHostBlock(@Block Block1, NSDictionary> v); + /**/ + /**/ + @Method(selector = "callAudioUnit:") + NSDictionary callAudioUnit(NSDictionary message); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannelAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannelAdapter.java new file mode 100644 index 000000000..5b8d810fb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUMessageChannelAdapter.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/AUMessageChannelAdapter/**/ + extends /**/NSObject/**/ + /**/implements AUMessageChannel/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("callHostBlock") + public @Block Block1, NSDictionary> getCallHostBlock() { return null; } + @NotImplemented("setCallHostBlock:") + public void setCallHostBlock(@Block Block1, NSDictionary> v) {} + /**/ + /**//**/ + /**/ + @NotImplemented("callAudioUnit:") + public NSDictionary callAudioUnit(NSDictionary message) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterListener.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterListener.java new file mode 100755 index 000000000..fe11a783b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterListener.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + + +/**/ +/**/ +/**/@Library("AudioToolbox")/**/ +/**/public/**/ class /**/AUParameterListener/**/ + extends NativeObject + /**//**/ { + + /**/public static class AUParameterListenerPtr extends Ptr {}/**/ + + /**/static { Bro.bind(AUParameterListener.class); }/**/ + /**/ + public static final int AnyParameter = -1; + /**/ + /**//**/ + /**//**/ + /**//**/ + /**/ + @Bridge(symbol="AUListenerCreateWithDispatchQueue", optional=true) + protected static native OSStatus create0(AUParameterListener.AUParameterListenerPtr outListener, float inNotificationInterval, org.robovm.apple.dispatch.DispatchQueue inDispatchQueue, @Block VoidBlock3 inBlock); + @Bridge(symbol="AUListenerDispose", optional=true) + public native OSStatus dispose(); + @Bridge(symbol="AUListenerAddParameter", optional=true) + public native OSStatus addParameter(VoidPtr inObject, AudioUnitParameter inParameter); + @Bridge(symbol="AUListenerRemoveParameter", optional=true) + public native OSStatus removeParameter(VoidPtr inObject, AudioUnitParameter inParameter); + @Bridge(symbol="AUParameterSet", optional=true) + public native OSStatus setParameter(VoidPtr inSendingObject, AudioUnitParameter inParameter, float inValue, int inBufferOffsetInFrames); + @Bridge(symbol="AUParameterListenerNotify", optional=true) + public native OSStatus notifyParameterListener(VoidPtr inSendingObject, AudioUnitParameter inParameter); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterNewTimePitch.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterNewTimePitch.java index 8aa12d692..e08d67b4e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterNewTimePitch.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUParameterNewTimePitch.java @@ -43,8 +43,19 @@ public enum /**/AUParameterNewTimePitch/**/ implements AUParameterT /**/ Rate(0L), Pitch(1L), + Smoothness(4L), + /** + * @deprecated Deprecated in iOS 16.0. Use kNewTimePitchParam_Smoothness + */ + @Deprecated Overlap(4L), - EnablePeakLocking(6L); + EnableSpectralCoherence(6L), + /** + * @deprecated Deprecated in iOS 16.0. Use kNewTimePitchParam_EnableSpectralCoherence + */ + @Deprecated + EnablePeakLocking(6L), + EnableTransientPreservation(7L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUTypeEffect.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUTypeEffect.java index 33597d021..b1da85260 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUTypeEffect.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUTypeEffect.java @@ -54,6 +54,10 @@ public enum /**/AUTypeEffect/**/ implements AUSubType { SampleDelay(1935961209L), NBandEQ(1851942257L), Reverb2(1920361010L), + /** + * @since Available in iOS 16.0 and later. + */ + AUSoundIsolation(1987012979L), /** * @deprecated Deprecated in iOS 13.0. Use kAudioUnitSubType_GraphicEQ */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioCodecProduceOutputPacketStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioCodecProduceOutputPacketStatus.java index cda4b3319..1d9b6eaa8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioCodecProduceOutputPacketStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioCodecProduceOutputPacketStatus.java @@ -45,7 +45,8 @@ public enum /**/AudioCodecProduceOutputPacketStatus/**/ implements Success(2L), SuccessHasMore(3L), NeedsMoreInputData(4L), - AtEOF(5L); + AtEOF(5L), + SuccessConcealed(6L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioComponent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioComponent.java index 38ba4484e..d2ad9e5ab 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioComponent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioComponent.java @@ -115,6 +115,21 @@ public int getVersion() throws OSStatusException { protected native OSStatus getDescription0(AudioComponentDescription.AudioComponentDescriptionPtr desc); @Bridge(symbol="AudioComponentGetVersion", optional=true) protected native OSStatus getVersion0(IntPtr outVersion); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="AudioComponentCopyConfigurationInfo", optional=true) + public native OSStatus copyConfigurationInfo(NSDictionary.NSDictionaryPtr outConfigurationInfo); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="AudioComponentValidate", optional=true) + public native OSStatus validate(NSDictionary inValidationParameters, IntPtr outValidationResult); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="AudioComponentValidateWithResults", optional=true) + public native OSStatus validateWithResults(NSDictionary inValidationParameters, @Block VoidBlock2 inCompletionHandler); /** * @deprecated Deprecated in iOS 14.0. Use AudioComponentCopyIcon */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioToolbox.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioToolbox.java index 110335dfb..ff367d9b6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioToolbox.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioToolbox.java @@ -54,6 +54,15 @@ public static class InstrumentInfoKeys { public static final String Program = "program"; } + public static class IsolationParams { + public static final int WetDryMixPercent = 0; + public static final int SoundToIsolate = 1; + } + + public static class IsolationSoundTypes { + public static final long Voice = 1L; + } + public static class Presets { public static final String VersionKey = "version"; public static final String TypeKey = "type"; diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEvent.java new file mode 100644 index 000000000..75e7c3ab8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEvent.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AudioUnitEvent/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AudioUnitEventPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AudioUnitEvent() {} + public AudioUnitEvent(AudioUnitEventType mEventType, AudioUnitEventArgument mArgument) { + this.setMEventType(mEventType); + this.setMArgument(mArgument); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native AudioUnitEventType getMEventType(); + @StructMember(0) public native AudioUnitEvent setMEventType(AudioUnitEventType mEventType); + @StructMember(1) public native @ByVal AudioUnitEventArgument getMArgument(); + @StructMember(1) public native AudioUnitEvent setMArgument(@ByVal AudioUnitEventArgument mArgument); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventArgument.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventArgument.java new file mode 100644 index 000000000..64e974c72 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventArgument.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AudioUnitEventArgument/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AudioUnitEventArgumentPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AudioUnitEventArgument() {} + public AudioUnitEventArgument(AudioUnitParameter mParameter, AudioUnitProperty mProperty) { + this.setMParameter(mParameter); + this.setMProperty(mProperty); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native @ByVal AudioUnitParameter getMParameter(); + @StructMember(0) public native AudioUnitEventArgument setMParameter(@ByVal AudioUnitParameter mParameter); + @StructMember(0) public native @ByVal AudioUnitProperty getMProperty(); + @StructMember(0) public native AudioUnitEventArgument setMProperty(@ByVal AudioUnitProperty mProperty); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventType.java new file mode 100644 index 000000000..da1293502 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitEventType.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.audiotoolbox; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +public enum /**/AudioUnitEventType/**/ implements ValuedEnum { + /**/ + ParameterValueChange(0L), + BeginParameterChangeGesture(1L), + EndParameterChangeGesture(2L), + PropertyChange(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/AudioUnitEventType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/AudioUnitEventType/**/ valueOf(long n) { + for (/**/AudioUnitEventType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/AudioUnitEventType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitParameter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitParameter.java index 47fb27549..323bac7b1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitParameter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AudioUnitParameter.java @@ -38,14 +38,13 @@ /**/ /**/ -/**//**/ +/**/@Library("AudioToolbox")/**/ /**/public/**/ class /**/AudioUnitParameter/**/ extends /**/Struct/**/ /**//**/ { /**/public static class AudioUnitParameterPtr extends Ptr {}/**/ - /**/ - /**/ + /**/static { Bro.bind(AudioUnitParameter.class); }/**/ /**//**/ /**/ public AudioUnitParameter() {} @@ -67,5 +66,18 @@ public AudioUnitParameter(AudioUnit audioUnit, AUParameterType type, AUScope sco @StructMember(3) public native int getElement(); @StructMember(3) public native AudioUnitParameter setElement(int element); /**/ - /**//**/ + /**/ + @Bridge(symbol="AUParameterValueFromLinear", optional=true) + public static native float fromLinear(float inLinearValue, AudioUnitParameter inParameter); + @Bridge(symbol="AUParameterValueToLinear", optional=true) + public static native float toLinear(float inParameterValue, AudioUnitParameter inParameter); + /**/ + + public float fromLinear(float inLinearValue) { + return fromLinear(inLinearValue, this); + } + + public float toLinear(float inParameterValue) { + return toLinear(inParameterValue, this); + } } From 8caf6a43b657bfaa3337d62579ba8fea0fb9d666 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 13:34:01 +0300 Subject: [PATCH 12/73] * ios16 bindings: CoreNFC processed --- .../main/java/org/robovm/apple/corenfc/NFCPollingOption.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corenfc/NFCPollingOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corenfc/NFCPollingOption.java index 56b75da6d..c3bba821e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corenfc/NFCPollingOption.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corenfc/NFCPollingOption.java @@ -50,6 +50,10 @@ public final class /**/NFCPollingOption/**/ extends Bits*/ * @since Available in iOS 13.0 and later. */ public static final NFCPollingOption ISO18092 = new NFCPollingOption(4L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NFCPollingOption PACE = new NFCPollingOption(8L); /**/ /**/ From 422fe4555f223f3a856863c51a0e4a01cf8af4a5 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 13:34:41 +0300 Subject: [PATCH 13/73] * ios16 bindings: AuthServices processed --- .../src/main/bro-gen/authservices.yaml | 3 + .../ASAuthorizationController.java | 15 +++++ ...AuthorizationControllerRequestOptions.java | 66 +++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationControllerRequestOptions.java diff --git a/compiler/cocoatouch/src/main/bro-gen/authservices.yaml b/compiler/cocoatouch/src/main/bro-gen/authservices.yaml index 940ab7132..dd9b3d7f3 100755 --- a/compiler/cocoatouch/src/main/bro-gen/authservices.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/authservices.yaml @@ -17,6 +17,7 @@ enums: ASAuthorizationError: {nserror: true} #since 13.0 ASAuthorizationAppleIDButtonType: {} #since 13.0 ASAuthorizationAppleIDButtonStyle: {} #since 13.0 + ASAuthorizationControllerRequestOptions: {prefix: ASAuthorizationControllerRequestOption} #since 16.0 classes: ASCredentialIdentityStore: #since 12.0 @@ -78,6 +79,8 @@ classes: methods: '-initWithAuthorizationRequests:': name: init + '-performRequestsWithOptions:': + name: performRequests ASAuthorizationOpenIDRequest: {} #since 13.0 ASAuthorizationPasswordProvider: {} #since 13.0 ASAuthorizationPasswordRequest: {} #since 13.0 diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationController.java index aa388cc25..ce4bc012c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationController.java @@ -71,5 +71,20 @@ protected ASAuthorizationController() {} protected native @Pointer long init(NSArray authorizationRequests); @Method(selector = "performRequests") public native void performRequests(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "performAutoFillAssistedRequests") + public native void performAutoFillAssistedRequests(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "performRequestsWithOptions:") + public native void performRequests(ASAuthorizationControllerRequestOptions options); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cancel") + public native void cancel(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationControllerRequestOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationControllerRequestOptions.java new file mode 100644 index 000000000..7eff31908 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationControllerRequestOptions.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.authservices; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/ASAuthorizationControllerRequestOptions/**/ extends Bits*/ASAuthorizationControllerRequestOptions/**/> { + /**/ + public static final ASAuthorizationControllerRequestOptions None = new ASAuthorizationControllerRequestOptions(0L); + public static final ASAuthorizationControllerRequestOptions PreferImmediatelyAvailableCredentials = new ASAuthorizationControllerRequestOptions(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/ASAuthorizationControllerRequestOptions/**/[] values = _values(/**/ASAuthorizationControllerRequestOptions/**/.class); + + public /**/ASAuthorizationControllerRequestOptions/**/(long value) { super(value); } + private /**/ASAuthorizationControllerRequestOptions/**/(long value, long mask) { super(value, mask); } + protected /**/ASAuthorizationControllerRequestOptions/**/ wrap(long value, long mask) { + return new /**/ASAuthorizationControllerRequestOptions/**/(value, mask); + } + protected /**/ASAuthorizationControllerRequestOptions/**/[] _values() { + return values; + } + public static /**/ASAuthorizationControllerRequestOptions/**/[] values() { + return values.clone(); + } +} From eda5154fbee6cb451c26da7f7d12c072c970725b Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 13:36:06 +0300 Subject: [PATCH 14/73] * ios16 bindings: automaticassessmentconfiguration processed --- .../org/robovm/apple/automaticac/AEAssessmentErrorCode.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/automaticac/AEAssessmentErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/automaticac/AEAssessmentErrorCode.java index e8f84f88c..bec70f84a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/automaticac/AEAssessmentErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/automaticac/AEAssessmentErrorCode.java @@ -36,7 +36,11 @@ /**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("AutomaticAssessmentConfiguration")/**/ public enum /**/AEAssessmentErrorCode/**/ implements NSErrorCode { /**/ - Unknown(1L); + Unknown(1L), + /** + * @since Available in iOS 16.0 and later. + */ + UnsupportedPlatform(2L); /**/ /**/static { Bro.bind(AEAssessmentErrorCode.class); }/**/ From d3a3a6f3397b6a53a8819d29e04c584cde4fe2c0 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 13:41:54 +0300 Subject: [PATCH 15/73] * ios16 bindings: CoreSpotlight processed --- .../src/main/bro-gen/corespotlight.yaml | 19 +++++ .../apple/corespotlight/CSSearchQuery.java | 10 +++ .../corespotlight/CSSearchQueryContext.java | 77 ++++++++++++++++++ .../corespotlight/CSSearchableIndex.java | 2 + .../apple/corespotlight/CSSearchableItem.java | 5 ++ .../apple/corespotlight/CSSuggestion.java | 79 +++++++++++++++++++ .../apple/corespotlight/CSSuggestionKind.java | 63 +++++++++++++++ .../apple/corespotlight/CSUserQuery.java | 78 ++++++++++++++++++ .../corespotlight/CSUserQueryContext.java | 76 ++++++++++++++++++ 9 files changed, 409 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestion.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestionKind.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQuery.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQueryContext.java diff --git a/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml b/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml index 05c6d3e93..0791b5324 100755 --- a/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml @@ -13,6 +13,7 @@ private_typedefs: enums: CSIndexErrorCode: { nserror: true} #since 9.0 CSSearchQueryErrorCode: { nserror: true } #since 10.0 + CSSuggestionKind: {} classes: CSCustomAttributeKey: #since 9.0 @@ -34,6 +35,8 @@ classes: methods: '-initWithQueryString:attributes:': name: init + '-initWithQueryString:queryContext:': + name: init CSSearchableIndex: #since 9.0 methods: '-initWithName:protectionClass:': @@ -52,6 +55,8 @@ classes: name: deleteAllSearchableItems '-fetchLastClientStateWithCompletionHandler:': name: fetchLastClientState + '-fetchDataForBundleIdentifier:itemIdentifier:contentType:completionHandler:': + name: fetchDataForBundleIdentifier CSSearchableItem: #since 9.0 methods: '-initWithUniqueIdentifier:domainIdentifier:attributeSet:': @@ -69,6 +74,17 @@ classes: '-updateAttributes:forFileAtURL:error:': name: updateAttributes throws: NSErrorException + CSSearchQueryContext: {} #since 10.0 + CSSuggestion: {} #since 16.0 + CSUserQuery: #since 16.0 + methods: + '-initWithUserQueryString:userQueryContext:': + name: ini + CSUserQueryContext: #since 16.0 + methods: + '+userQueryContextWithCurrentSuggestion:': + constructor: true + name: create protocols: CSSearchableIndexDelegate: #since 9.0 methods: @@ -108,6 +124,9 @@ values: class: CSSearchableItem name: getActionIdentifier + CSSuggestionHighlightAttributeName: + class: CSSuggestion + name: getHighlightAttributeName # Make sure we don't miss any values if new ones are introduced in a later version (k?CS.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuery.java index b3a820449..b43905b28 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuery.java @@ -48,6 +48,11 @@ protected CSSearchQuery() {} protected CSSearchQuery(Handle h, long handle) { super(h, handle); } protected CSSearchQuery(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithQueryString:queryContext:") + public CSSearchQuery(String queryString, CSSearchQueryContext queryContext) { super((SkipInit) null); initObject(init(queryString, queryContext)); } @Method(selector = "initWithQueryString:attributes:") public CSSearchQuery(String queryString, NSArray attributes) { super((SkipInit) null); initObject(init(queryString, attributes)); } /**/ @@ -71,6 +76,11 @@ protected CSSearchQuery() {} /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithQueryString:queryContext:") + protected native @Pointer long init(String queryString, CSSearchQueryContext queryContext); @Method(selector = "initWithQueryString:attributes:") protected native @Pointer long init(String queryString, NSArray attributes); @Method(selector = "start") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java new file mode 100644 index 000000000..08b783e47 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.corespotlight; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 10.0 and later. + */ +/**/ +/**/@Library("CoreSpotlight") @NativeClass/**/ +/**/public/**/ class /**/CSSearchQueryContext/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class CSSearchQueryContextPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CSSearchQueryContext.class); }/**/ + /**//**/ + /**/ + public CSSearchQueryContext() {} + protected CSSearchQueryContext(Handle h, long handle) { super(h, handle); } + protected CSSearchQueryContext(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public CSSearchQueryContext(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "fetchAttributes") + public native NSArray getFetchAttributes(); + @Property(selector = "setFetchAttributes:") + public native void setFetchAttributes(NSArray v); + @Property(selector = "filterQueries") + public native NSArray getFilterQueries(); + @Property(selector = "setFilterQueries:") + public native void setFilterQueries(NSArray v); + @Property(selector = "keyboardLanguage") + public native String getKeyboardLanguage(); + @Property(selector = "setKeyboardLanguage:") + public native void setKeyboardLanguage(String v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableIndex.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableIndex.java index fe80f855c..c66fbb829 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableIndex.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableIndex.java @@ -83,5 +83,7 @@ public CSSearchableIndex() {} public native void endIndexBatch(NSData clientState, @Block VoidBlock1 completionHandler); @Method(selector = "fetchLastClientStateWithCompletionHandler:") public native void fetchLastClientState(@Block VoidBlock2 completionHandler); + @Method(selector = "fetchDataForBundleIdentifier:itemIdentifier:contentType:completionHandler:") + public native void fetchDataForBundleIdentifier(String bundleIdentifier, String itemIdentifier, UTType contentType, @Block VoidBlock2 completionHandler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableItem.java index 4ac965356..cd3e79eac 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchableItem.java @@ -103,6 +103,11 @@ public CSSearchableItem() {} @Method(selector = "initWithUniqueIdentifier:domainIdentifier:attributeSet:") protected native @Pointer long init(String uniqueIdentifier, String domainIdentifier, CSSearchableItemAttributeSet attributeSet); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "compareByRank:") + public native NSComparisonResult compareByRank(CSSearchableItem other); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); @Method(selector = "initWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestion.java new file mode 100644 index 000000000..9e7273417 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestion.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.corespotlight; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CoreSpotlight") @NativeClass/**/ +/**/public/**/ class /**/CSSuggestion/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class CSSuggestionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CSSuggestion.class); }/**/ + /**//**/ + /**/ + public CSSuggestion() {} + protected CSSuggestion(Handle h, long handle) { super(h, handle); } + protected CSSuggestion(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public CSSuggestion(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "localizedAttributedSuggestion") + public native NSAttributedString getLocalizedAttributedSuggestion(); + @Property(selector = "suggestionKind") + public native CSSuggestionKind getSuggestionKind(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="CSSuggestionHighlightAttributeName", optional=true) + public static native NSString getHighlightAttributeName(); + + @Method(selector = "compareByRank:") + public native NSComparisonResult compareByRank(CSSuggestion other); + @Method(selector = "compare:") + public native NSComparisonResult compare(CSSuggestion other); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestionKind.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestionKind.java new file mode 100644 index 000000000..2b0e64e15 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSuggestionKind.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.corespotlight; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/CSSuggestionKind/**/ implements ValuedEnum { + /**/ + None(0L), + Custom(1L), + Default(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/CSSuggestionKind/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/CSSuggestionKind/**/ valueOf(long n) { + for (/**/CSSuggestionKind/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/CSSuggestionKind/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQuery.java new file mode 100644 index 000000000..80f0e01c0 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQuery.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.corespotlight; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CoreSpotlight") @NativeClass/**/ +/**/public/**/ class /**/CSUserQuery/**/ + extends /**/CSSearchQuery/**/ + /**//**/ { + + /**/public static class CSUserQueryPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CSUserQuery.class); }/**/ + /**//**/ + /**/ + protected CSUserQuery() {} + protected CSUserQuery(Handle h, long handle) { super(h, handle); } + protected CSUserQuery(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithUserQueryString:userQueryContext:") + public CSUserQuery(String userQueryString, CSUserQueryContext userQueryContext) { super((SkipInit) null); initObject(ini(userQueryString, userQueryContext)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithQueryString:queryContext:") + public CSUserQuery(String queryString, CSSearchQueryContext queryContext) { super(queryString, queryContext); } + @Method(selector = "initWithQueryString:attributes:") + public CSUserQuery(String queryString, NSArray attributes) { super(queryString, attributes); } + /**/ + /**/ + @Property(selector = "foundSuggestionCount") + public native @MachineSizedSInt long getFoundSuggestionCount(); + @Property(selector = "foundSuggestionsHandler") + public native @Block VoidBlock1> getFoundSuggestionsHandler(); + @Property(selector = "setFoundSuggestionsHandler:") + public native void setFoundSuggestionsHandler(@Block VoidBlock1> v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithUserQueryString:userQueryContext:") + protected native @Pointer long ini(String userQueryString, CSUserQueryContext userQueryContext); + @Method(selector = "start") + public native void start(); + @Method(selector = "cancel") + public native void cancel(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQueryContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQueryContext.java new file mode 100644 index 000000000..50eeea749 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSUserQueryContext.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.corespotlight; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CoreSpotlight") @NativeClass/**/ +/**/public/**/ class /**/CSUserQueryContext/**/ + extends /**/CSSearchQueryContext/**/ + /**//**/ { + + /**/public static class CSUserQueryContextPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CSUserQueryContext.class); }/**/ + /**//**/ + /**/ + public CSUserQueryContext() {} + protected CSUserQueryContext(Handle h, long handle) { super(h, handle); } + protected CSUserQueryContext(SkipInit skipInit) { super(skipInit); } + public CSUserQueryContext(CSSuggestion currentSuggestion) { super((Handle) null, create(currentSuggestion)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "enableRankedResults") + public native boolean isEnableRankedResults(); + @Property(selector = "setEnableRankedResults:") + public native void setEnableRankedResults(boolean v); + @Property(selector = "maxResultCount") + public native @MachineSizedSInt long getMaxResultCount(); + @Property(selector = "setMaxResultCount:") + public native void setMaxResultCount(@MachineSizedSInt long v); + @Property(selector = "maxSuggestionCount") + public native @MachineSizedSInt long getMaxSuggestionCount(); + @Property(selector = "setMaxSuggestionCount:") + public native void setMaxSuggestionCount(@MachineSizedSInt long v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "userQueryContext") + public static native CSUserQueryContext userQueryContext(); + @Method(selector = "userQueryContextWithCurrentSuggestion:") + protected static native @Pointer long create(CSSuggestion currentSuggestion); + /**/ +} From a4e6c5f184244210b54e1fa8180310542523ee65 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:22:53 +0300 Subject: [PATCH 16/73] * ios16 bindings: AVFoundation processed --- .../src/main/bro-gen/avfoundation.yaml | 229 +++++++++++- .../apple/avfoundation/AVAUPresetEvent.java | 82 +++++ .../AVAggregateAssetDownloadTask.java | 2 + .../robovm/apple/avfoundation/AVAsset.java | 34 ++ .../apple/avfoundation/AVAssetCache.java | 2 + .../AVAssetDownloadConfiguration.java | 2 + .../AVAssetDownloadContentConfiguration.java | 2 + .../avfoundation/AVAssetDownloadDelegate.java | 2 + .../AVAssetDownloadDelegateAdapter.java | 2 + ...VAssetDownloadStorageManagementPolicy.java | 2 + .../AVAssetDownloadStorageManager.java | 2 + .../avfoundation/AVAssetDownloadTask.java | 2 + .../AVAssetDownloadTaskOptions.java | 2 + .../AVAssetDownloadURLSession.java | 2 + ...VAssetDownloadedAssetEvictionPriority.java | 2 + .../avfoundation/AVAssetExportPreset.java | 2 + .../avfoundation/AVAssetExportSession.java | 16 + .../AVAssetExportSessionStatus.java | 2 + .../avfoundation/AVAssetImageGenerator.java | 15 + .../AVAssetImageGeneratorApertureMode.java | 2 + .../AVAssetImageGeneratorResult.java | 2 + .../AVAssetPlaybackAssistant.java | 74 ++++ .../AVAssetPlaybackConfigurationOption.java | 147 ++++++++ .../apple/avfoundation/AVAssetReader.java | 2 + .../AVAssetReaderAudioMixOutput.java | 2 + .../avfoundation/AVAssetReaderOutput.java | 2 + .../AVAssetReaderOutputMetadataAdaptor.java | 2 + .../AVAssetReaderSampleReferenceOutput.java | 2 + .../avfoundation/AVAssetReaderStatus.java | 2 + .../AVAssetReaderTrackOutput.java | 2 + .../AVAssetReaderVideoCompositionOutput.java | 2 + .../AVAssetReferenceRestrictions.java | 2 + .../avfoundation/AVAssetResourceLoader.java | 2 + .../AVAssetResourceLoaderDelegate.java | 2 + .../AVAssetResourceLoaderDelegateAdapter.java | 2 + ...ourceLoadingContentInformationRequest.java | 12 + .../AVAssetResourceLoadingDataRequest.java | 2 + .../AVAssetResourceLoadingRequest.java | 2 + .../AVAssetResourceLoadingRequestOptions.java | 2 + .../AVAssetResourceLoadingRequestor.java | 2 + .../AVAssetResourceRenewalRequest.java | 2 + .../avfoundation/AVAssetSegmentReport.java | 2 + ...AVAssetSegmentReportSampleInformation.java | 2 + .../AVAssetSegmentTrackReport.java | 2 + .../avfoundation/AVAssetSegmentType.java | 2 + .../apple/avfoundation/AVAssetTrack.java | 38 ++ .../apple/avfoundation/AVAssetTrackGroup.java | 2 + .../AVAssetTrackGroupOutputHandling.java | 76 ++++ .../avfoundation/AVAssetTrackSegment.java | 2 + .../apple/avfoundation/AVAssetVariant.java | 2 + .../AVAssetVariantAudioAttributes.java | 2 + ...riantAudioRenditionSpecificAttributes.java | 2 + .../avfoundation/AVAssetVariantQualifier.java | 2 + .../AVAssetVariantVideoAttributes.java | 4 +- .../apple/avfoundation/AVAssetWriter.java | 2 + .../avfoundation/AVAssetWriterDelegate.java | 2 + .../AVAssetWriterDelegateAdapter.java | 2 + .../avfoundation/AVAssetWriterInput.java | 2 + .../avfoundation/AVAssetWriterInputGroup.java | 2 + .../AVAssetWriterInputMediaDataLocation.java | 2 + .../AVAssetWriterInputMetadataAdaptor.java | 2 + .../AVAssetWriterInputPassDescription.java | 2 + .../AVAssetWriterInputPixelBufferAdaptor.java | 2 + .../avfoundation/AVAssetWriterStatus.java | 2 + ...AVAsynchronousCIImageFilteringRequest.java | 2 + .../AVAsynchronousKeyValueLoading.java | 2 + .../AVAsynchronousKeyValueLoadingAdapter.java | 2 + ...AVAsynchronousVideoCompositionRequest.java | 2 + .../AVAudio3DAngularOrientation.java | 2 + .../apple/avfoundation/AVAudio3DMixing.java | 2 + .../avfoundation/AVAudio3DMixingAdapter.java | 2 + .../AVAudio3DMixingPointSourceInHeadMode.java | 2 + .../AVAudio3DMixingRenderingAlgorithm.java | 2 + .../AVAudio3DMixingSourceMode.java | 2 + .../apple/avfoundation/AVAudio3DPoint.java | 2 + .../apple/avfoundation/AVAudio3DVector.java | 2 + .../AVAudio3DVectorOrientation.java | 2 + .../avfoundation/AVAudioBitRateStrategy.java | 2 + .../apple/avfoundation/AVAudioBuffer.java | 2 + .../avfoundation/AVAudioChannelLayout.java | 2 + .../avfoundation/AVAudioCommonFormat.java | 2 + .../avfoundation/AVAudioCompressedBuffer.java | 2 + .../avfoundation/AVAudioConnectionPoint.java | 2 + .../apple/avfoundation/AVAudioConverter.java | 2 + .../AVAudioConverterInputStatus.java | 2 + .../AVAudioConverterOutputStatus.java | 2 + .../AVAudioConverterPrimeInfo.java | 2 + .../AVAudioConverterPrimeMethod.java | 2 + .../avfoundation/AVAudioEncoderSettings.java | 2 + .../apple/avfoundation/AVAudioEngine.java | 20 +- .../AVAudioEngineManualRenderingError.java | 2 + .../AVAudioEngineManualRenderingMode.java | 2 + .../AVAudioEngineManualRenderingStatus.java | 2 + ...ioEnvironmentDistanceAttenuationModel.java | 2 + ...ironmentDistanceAttenuationParameters.java | 2 + .../avfoundation/AVAudioEnvironmentNode.java | 2 + .../AVAudioEnvironmentOutputType.java | 2 + .../AVAudioEnvironmentReverbParameters.java | 2 + .../apple/avfoundation/AVAudioFile.java | 2 + .../apple/avfoundation/AVAudioFormat.java | 2 + .../apple/avfoundation/AVAudioIONode.java | 2 + .../apple/avfoundation/AVAudioInputNode.java | 2 + .../robovm/apple/avfoundation/AVAudioMix.java | 2 + .../AVAudioMixInputParameters.java | 2 + .../apple/avfoundation/AVAudioMixerNode.java | 2 + .../apple/avfoundation/AVAudioMixing.java | 2 + .../avfoundation/AVAudioMixingAdapter.java | 2 + .../AVAudioMixingDestination.java | 2 + .../apple/avfoundation/AVAudioNode.java | 2 + .../apple/avfoundation/AVAudioOutputNode.java | 2 + .../apple/avfoundation/AVAudioPCMBuffer.java | 2 + .../apple/avfoundation/AVAudioPlayer.java | 2 + .../avfoundation/AVAudioPlayerDelegate.java | 25 +- .../apple/avfoundation/AVAudioPlayerNode.java | 2 + .../AVAudioPlayerNodeBufferOptions.java | 2 + ...AudioPlayerNodeCompletionCallbackType.java | 2 + .../apple/avfoundation/AVAudioQuality.java | 2 + .../apple/avfoundation/AVAudioRecorder.java | 2 + .../avfoundation/AVAudioRecorderDelegate.java | 2 + .../AVAudioRecorderDelegateAdapter.java | 2 + .../AVAudioRoutingArbitrationCategory.java | 2 + .../apple/avfoundation/AVAudioSequencer.java | 22 ++ .../AVAudioSequencerInfoDictionaryKey.java | 327 ++++++++++++++++++ .../apple/avfoundation/AVAudioSession.java | 12 + .../AVAudioSessionActivationOptions.java | 2 + .../avfoundation/AVAudioSessionCategory.java | 2 + .../AVAudioSessionCategoryOptions.java | 2 + .../AVAudioSessionChannelDescription.java | 2 + .../AVAudioSessionDataSourceDescription.java | 2 + .../avfoundation/AVAudioSessionErrorCode.java | 2 + .../avfoundation/AVAudioSessionIOType.java | 2 + ...VAudioSessionInterruptionNotification.java | 2 + .../AVAudioSessionInterruptionOptions.java | 2 + .../AVAudioSessionInterruptionReason.java | 7 + .../AVAudioSessionInterruptionType.java | 2 + .../avfoundation/AVAudioSessionLocation.java | 2 + .../avfoundation/AVAudioSessionMode.java | 2 + .../AVAudioSessionOrientation.java | 2 + .../AVAudioSessionPolarPattern.java | 2 + .../avfoundation/AVAudioSessionPort.java | 2 + .../AVAudioSessionPortDescription.java | 2 + .../AVAudioSessionPortOverride.java | 2 + .../AVAudioSessionPromptStyle.java | 2 + .../AVAudioSessionRecordPermission.java | 2 + ...AVAudioSessionRouteChangeNotification.java | 2 + .../AVAudioSessionRouteChangeReason.java | 2 + .../AVAudioSessionRouteDescription.java | 2 + .../AVAudioSessionRouteSharingPolicy.java | 2 + .../AVAudioSessionSetActiveOptions.java | 2 + ...oSessionSilenceSecondaryAudioHintType.java | 2 + .../apple/avfoundation/AVAudioSettings.java | 2 + .../apple/avfoundation/AVAudioSinkNode.java | 2 + .../apple/avfoundation/AVAudioSourceNode.java | 2 + .../AVAudioSpatializationFormats.java | 2 + .../avfoundation/AVAudioStereoMixing.java | 2 + .../AVAudioStereoMixingAdapter.java | 2 + .../AVAudioStereoOrientation.java | 2 + .../apple/avfoundation/AVAudioTime.java | 2 + .../AVAudioTimePitchAlgorithm.java | 2 + .../apple/avfoundation/AVAudioUnit.java | 2 + .../avfoundation/AVAudioUnitComponent.java | 17 + .../AVAudioUnitComponentManager.java | 2 + .../apple/avfoundation/AVAudioUnitDelay.java | 2 + .../avfoundation/AVAudioUnitDistortion.java | 2 + .../AVAudioUnitDistortionPreset.java | 2 + .../apple/avfoundation/AVAudioUnitEQ.java | 2 + .../AVAudioUnitEQFilterParameters.java | 2 + .../avfoundation/AVAudioUnitEQFilterType.java | 2 + .../apple/avfoundation/AVAudioUnitEffect.java | 2 + .../avfoundation/AVAudioUnitGenerator.java | 2 + .../AVAudioUnitMIDIInstrument.java | 7 + .../AVAudioUnitManufacturerName.java | 2 + .../apple/avfoundation/AVAudioUnitReverb.java | 2 + .../avfoundation/AVAudioUnitReverbPreset.java | 2 + .../avfoundation/AVAudioUnitSampler.java | 2 + .../avfoundation/AVAudioUnitTimeEffect.java | 2 + .../avfoundation/AVAudioUnitTimePitch.java | 2 + .../apple/avfoundation/AVAudioUnitType.java | 2 + .../avfoundation/AVAudioUnitVarispeed.java | 2 + .../avfoundation/AVAuthorizationStatus.java | 2 + .../apple/avfoundation/AVBeatRange.java | 2 + .../avfoundation/AVCameraCalibrationData.java | 2 + .../avfoundation/AVCaptureAudioChannel.java | 2 + .../AVCaptureAudioDataOutput.java | 2 + ...reAudioDataOutputSampleBufferDelegate.java | 2 + ...DataOutputSampleBufferDelegateAdapter.java | 2 + ...toExposureBracketedStillImageSettings.java | 2 + .../AVCaptureAutoFocusRangeRestriction.java | 2 + .../AVCaptureAutoFocusSystem.java | 2 + .../AVCaptureBracketedStillImageSettings.java | 2 + .../AVCaptureCenterStageControlMode.java | 2 + .../avfoundation/AVCaptureColorSpace.java | 2 + .../avfoundation/AVCaptureConnection.java | 2 + .../AVCaptureDataOutputSynchronizer.java | 2 + ...CaptureDataOutputSynchronizerDelegate.java | 2 + ...DataOutputSynchronizerDelegateAdapter.java | 2 + .../AVCaptureDepthDataOutput.java | 2 + .../AVCaptureDepthDataOutputDelegate.java | 2 + ...CaptureDepthDataOutputDelegateAdapter.java | 2 + .../apple/avfoundation/AVCaptureDevice.java | 27 ++ .../AVCaptureDeviceDiscoverySession.java | 2 + .../avfoundation/AVCaptureDeviceFormat.java | 35 ++ .../avfoundation/AVCaptureDeviceInput.java | 2 + .../avfoundation/AVCaptureDevicePosition.java | 2 + .../avfoundation/AVCaptureDeviceType.java | 2 + .../avfoundation/AVCaptureExposureMode.java | 2 + .../avfoundation/AVCaptureFileOutput.java | 2 + .../AVCaptureFileOutputRecordingDelegate.java | 2 + ...ureFileOutputRecordingDelegateAdapter.java | 2 + .../avfoundation/AVCaptureFlashMode.java | 2 + .../avfoundation/AVCaptureFocusMode.java | 2 + .../apple/avfoundation/AVCaptureInput.java | 2 + .../avfoundation/AVCaptureInputPort.java | 2 + .../AVCaptureLensStabilizationStatus.java | 2 + ...alExposureBracketedStillImageSettings.java | 2 + .../avfoundation/AVCaptureMetadataInput.java | 2 + .../avfoundation/AVCaptureMetadataOutput.java | 2 + ...VCaptureMetadataOutputObjectsDelegate.java | 2 + ...eMetadataOutputObjectsDelegateAdapter.java | 2 + .../avfoundation/AVCaptureMicrophoneMode.java | 2 + .../AVCaptureMovieFileOutput.java | 2 + .../AVCaptureMultiCamSession.java | 2 + .../apple/avfoundation/AVCaptureOutput.java | 2 + .../AVCaptureOutputDataDroppedReason.java | 2 + .../apple/avfoundation/AVCapturePhoto.java | 2 + .../AVCapturePhotoBracketSettings.java | 2 + .../AVCapturePhotoCaptureDelegate.java | 2 + .../AVCapturePhotoCaptureDelegateAdapter.java | 2 + ...PhotoFileDataRepresentationCustomizer.java | 2 + ...leDataRepresentationCustomizerAdapter.java | 2 + .../avfoundation/AVCapturePhotoOutput.java | 34 +- .../AVCapturePhotoQualityPrioritization.java | 2 + .../avfoundation/AVCapturePhotoSettings.java | 26 +- ...RestrictedSwitchingBehaviorConditions.java | 2 + ...aryConstituentDeviceSwitchingBehavior.java | 2 + .../AVCaptureResolvedPhotoSettings.java | 2 + .../apple/avfoundation/AVCaptureSession.java | 22 ++ .../AVCaptureSessionInterruptionReason.java | 2 + .../avfoundation/AVCaptureSessionPreset.java | 2 + .../AVCaptureStillImageOutput.java | 2 + .../AVCaptureSynchronizedData.java | 2 + .../AVCaptureSynchronizedDataCollection.java | 2 + .../AVCaptureSynchronizedDepthData.java | 2 + ...CaptureSynchronizedMetadataObjectData.java | 2 + ...AVCaptureSynchronizedSampleBufferData.java | 2 + .../AVCaptureSystemPressureFactors.java | 2 + .../AVCaptureSystemPressureLevel.java | 2 + .../AVCaptureSystemPressureState.java | 2 + .../AVCaptureSystemUserInterface.java | 2 + .../avfoundation/AVCaptureTorchMode.java | 2 + .../AVCaptureVideoDataOutput.java | 2 + ...reVideoDataOutputSampleBufferDelegate.java | 2 + ...DataOutputSampleBufferDelegateAdapter.java | 2 + .../AVCaptureVideoOrientation.java | 2 + .../AVCaptureVideoPreviewLayer.java | 2 + .../AVCaptureVideoStabilizationMode.java | 2 + ...CaptureWhiteBalanceChromaticityValues.java | 2 + .../AVCaptureWhiteBalanceGains.java | 2 + .../AVCaptureWhiteBalanceMode.java | 2 + ...eWhiteBalanceTemperatureAndTintValues.java | 2 + .../apple/avfoundation/AVComposition.java | 12 + .../avfoundation/AVCompositionTrack.java | 10 + ...tionTrackFormatDescriptionReplacement.java | 2 + .../AVCompositionTrackSegment.java | 2 + .../apple/avfoundation/AVContentKey.java | 2 + .../avfoundation/AVContentKeyRecipient.java | 2 + .../avfoundation/AVContentKeyRequest.java | 2 + .../AVContentKeyRequestStatus.java | 2 + .../avfoundation/AVContentKeyResponse.java | 2 + .../avfoundation/AVContentKeySession.java | 2 + .../AVContentKeySessionDelegate.java | 2 + .../AVContentKeySessionDelegateAdapter.java | 2 + .../avfoundation/AVContentKeySpecifier.java | 2 + .../AVCoordinatedPlaybackParticipant.java | 2 + .../AVCoordinatedPlaybackSuspension.java | 4 +- ...AVCoordinatedPlaybackSuspensionReason.java | 183 ++++++++++ .../AVDateRangeMetadataGroup.java | 2 + .../AVDelegatingPlaybackCoordinator.java | 2 + ...ngPlaybackCoordinatorBufferingCommand.java | 2 + ...gatingPlaybackCoordinatorPauseCommand.java | 2 + ...egatingPlaybackCoordinatorPlayCommand.java | 2 + ...backCoordinatorPlaybackControlCommand.java | 2 + ...gPlaybackCoordinatorRateChangeOptions.java | 2 + ...egatingPlaybackCoordinatorSeekCommand.java | 2 + ...egatingPlaybackCoordinatorSeekOptions.java | 2 + .../apple/avfoundation/AVDepthData.java | 2 + .../avfoundation/AVDepthDataAccuracy.java | 2 + .../avfoundation/AVDepthDataQuality.java | 2 + .../apple/avfoundation/AVEdgeWidths.java | 2 + .../robovm/apple/avfoundation/AVError.java | 2 + .../apple/avfoundation/AVErrorCode.java | 16 +- .../avfoundation/AVErrorUserInfoKey.java | 2 + .../avfoundation/AVExtendedNoteOnEvent.java | 102 ++++++ .../avfoundation/AVExtendedTempoEvent.java | 76 ++++ .../robovm/apple/avfoundation/AVFileType.java | 2 + .../apple/avfoundation/AVFoundation.java | 107 +----- .../apple/avfoundation/AVFragmentMinding.java | 2 + .../apple/avfoundation/AVFragmentedAsset.java | 14 + .../avfoundation/AVFragmentedAssetMinder.java | 2 + .../avfoundation/AVFragmentedAssetTrack.java | 2 + .../apple/avfoundation/AVFragmentedMovie.java | 14 + .../avfoundation/AVFragmentedMovieMinder.java | 2 + .../avfoundation/AVFragmentedMovieTrack.java | 2 + .../apple/avfoundation/AVFrameRateRange.java | 2 + .../apple/avfoundation/AVKeyValueStatus.java | 2 + .../avfoundation/AVLayerVideoGravity.java | 2 + .../avfoundation/AVMIDIChannelEvent.java | 73 ++++ .../AVMIDIChannelPressureEvent.java | 76 ++++ .../AVMIDIControlChangeEvent.java | 76 ++++ .../AVMIDIControlChangeMessageType.java | 106 ++++++ .../apple/avfoundation/AVMIDIMetaEvent.java | 74 ++++ .../avfoundation/AVMIDIMetaEventType.java | 87 +++++ .../apple/avfoundation/AVMIDINoteEvent.java | 88 +++++ .../avfoundation/AVMIDIPitchBendEvent.java | 76 ++++ .../apple/avfoundation/AVMIDIPlayer.java | 2 + .../avfoundation/AVMIDIPolyPressureEvent.java | 80 +++++ .../AVMIDIProgramChangeEvent.java | 76 ++++ .../apple/avfoundation/AVMIDISysexEvent.java | 74 ++++ .../avfoundation/AVMediaCharacteristic.java | 2 + .../avfoundation/AVMediaDataStorage.java | 2 + .../apple/avfoundation/AVMediaSelection.java | 2 + .../avfoundation/AVMediaSelectionGroup.java | 2 + .../avfoundation/AVMediaSelectionOption.java | 2 + .../apple/avfoundation/AVMediaType.java | 2 + .../avfoundation/AVMetadataBodyObject.java | 2 + .../avfoundation/AVMetadataCatBodyObject.java | 2 + .../avfoundation/AVMetadataDogBodyObject.java | 2 + .../AVMetadataExtraAttributes.java | 2 + .../avfoundation/AVMetadataFaceObject.java | 2 + .../apple/avfoundation/AVMetadataFormat.java | 2 + .../apple/avfoundation/AVMetadataGroup.java | 2 + .../AVMetadataHumanBodyObject.java | 2 + .../AVMetadataIdentifier3GPUserData.java | 2 + .../AVMetadataIdentifierCommon.java | 2 + .../AVMetadataIdentifierID3Metadata.java | 2 + .../AVMetadataIdentifierISOUserData.java | 2 + .../AVMetadataIdentifierIcyMetadata.java | 2 + ...AVMetadataIdentifierQuickTimeMetadata.java | 2 + ...AVMetadataIdentifierQuickTimeUserData.java | 2 + .../AVMetadataIdentifieriTunesMetadata.java | 2 + .../apple/avfoundation/AVMetadataItem.java | 2 + .../avfoundation/AVMetadataItemFilter.java | 2 + .../AVMetadataItemValueRequest.java | 2 + .../AVMetadataKey3GPUserData.java | 2 + .../avfoundation/AVMetadataKeyCommon.java | 2 + .../AVMetadataKeyID3Metadata.java | 2 + .../AVMetadataKeyISOUserData.java | 2 + .../AVMetadataKeyIcyMetadata.java | 2 + .../AVMetadataKeyQuickTimeMetadata.java | 2 + .../AVMetadataKeyQuickTimeUserData.java | 2 + .../avfoundation/AVMetadataKeySpace.java | 2 + .../AVMetadataKeyiTunesMetadata.java | 2 + .../AVMetadataMachineReadableCodeObject.java | 2 + .../apple/avfoundation/AVMetadataObject.java | 2 + .../avfoundation/AVMetadataObjectType.java | 2 + .../avfoundation/AVMetadataSalientObject.java | 2 + .../robovm/apple/avfoundation/AVMovie.java | 24 ++ .../apple/avfoundation/AVMovieTrack.java | 2 + .../avfoundation/AVMovieWritingOptions.java | 2 + .../apple/avfoundation/AVMusicEvent.java | 70 ++++ .../AVMusicSequenceLoadOptions.java | 2 + .../apple/avfoundation/AVMusicTrack.java | 25 +- .../avfoundation/AVMusicTrackLoopCount.java | 2 + .../apple/avfoundation/AVMusicUserEvent.java | 74 ++++ ...eAssetDownloadStorageManagementPolicy.java | 2 + .../apple/avfoundation/AVMutableAudioMix.java | 2 + .../AVMutableAudioMixInputParameters.java | 2 + .../avfoundation/AVMutableComposition.java | 15 + .../AVMutableCompositionTrack.java | 2 + .../AVMutableDateRangeMetadataGroup.java | 2 + .../avfoundation/AVMutableMediaSelection.java | 2 + .../avfoundation/AVMutableMetadataItem.java | 2 + .../apple/avfoundation/AVMutableMovie.java | 12 + .../avfoundation/AVMutableMovieTrack.java | 12 + .../AVMutableTimedMetadataGroup.java | 2 + .../AVMutableVideoComposition.java | 45 +++ .../AVMutableVideoCompositionInstruction.java | 2 + ...tableVideoCompositionLayerInstruction.java | 2 + .../AVOutputSettingsAssistant.java | 2 + .../avfoundation/AVOutputSettingsPreset.java | 2 + .../apple/avfoundation/AVParameterEvent.java | 88 +++++ .../AVPersistableContentKeyRequest.java | 2 + .../avfoundation/AVPixelAspectRatio.java | 2 + .../avfoundation/AVPlaybackCoordinator.java | 24 +- ...ackCoordinatorPlaybackControlDelegate.java | 2 + ...dinatorPlaybackControlDelegateAdapter.java | 2 + .../robovm/apple/avfoundation/AVPlayer.java | 33 ++ .../avfoundation/AVPlayerActionAtItemEnd.java | 2 + ...erAudiovisualBackgroundPlaybackPolicy.java | 2 + .../apple/avfoundation/AVPlayerHDRMode.java | 2 + .../AVPlayerInterstitialEvent.java | 125 +++++++ .../AVPlayerInterstitialEventController.java | 2 + .../AVPlayerInterstitialEventCue.java | 156 +++++++++ .../AVPlayerInterstitialEventMonitor.java | 2 + ...AVPlayerInterstitialEventRestrictions.java | 2 + .../apple/avfoundation/AVPlayerItem.java | 2 + .../avfoundation/AVPlayerItemAccessLog.java | 2 + .../AVPlayerItemAccessLogEvent.java | 2 + .../avfoundation/AVPlayerItemErrorLog.java | 2 + .../AVPlayerItemErrorLogEvent.java | 2 + .../AVPlayerItemLegibleOutput.java | 2 + ...AVPlayerItemLegibleOutputPushDelegate.java | 2 + ...rItemLegibleOutputPushDelegateAdapter.java | 2 + ...temLegibleOutputTextStylingResolution.java | 2 + .../AVPlayerItemMediaDataCollector.java | 2 + .../AVPlayerItemMetadataCollector.java | 2 + ...ayerItemMetadataCollectorPushDelegate.java | 2 + ...mMetadataCollectorPushDelegateAdapter.java | 2 + .../AVPlayerItemMetadataOutput.java | 2 + ...VPlayerItemMetadataOutputPushDelegate.java | 2 + ...ItemMetadataOutputPushDelegateAdapter.java | 2 + .../avfoundation/AVPlayerItemOutput.java | 2 + .../AVPlayerItemOutputPullDelegate.java | 2 + ...AVPlayerItemOutputPullDelegateAdapter.java | 2 + .../AVPlayerItemOutputPushDelegate.java | 2 + ...AVPlayerItemOutputPushDelegateAdapter.java | 2 + .../avfoundation/AVPlayerItemStatus.java | 2 + .../apple/avfoundation/AVPlayerItemTrack.java | 2 + .../avfoundation/AVPlayerItemVideoOutput.java | 2 + .../apple/avfoundation/AVPlayerLayer.java | 7 + .../apple/avfoundation/AVPlayerLooper.java | 2 + .../avfoundation/AVPlayerLooperStatus.java | 2 + .../AVPlayerMediaSelectionCriteria.java | 2 + .../AVPlayerPlaybackCoordinator.java | 2 + .../AVPlayerPlaybackCoordinatorDelegate.java | 2 + ...yerPlaybackCoordinatorDelegateAdapter.java | 2 + .../AVPlayerRateDidChangeReason.java | 165 +++++++++ .../apple/avfoundation/AVPlayerStatus.java | 2 + .../AVPlayerTimeControlStatus.java | 2 + .../avfoundation/AVPortraitEffectsMatte.java | 2 + .../apple/avfoundation/AVQueuePlayer.java | 2 + .../AVQueuedSampleBufferRendering.java | 2 + .../AVQueuedSampleBufferRenderingAdapter.java | 2 + .../AVQueuedSampleBufferRenderingStatus.java | 2 + .../apple/avfoundation/AVRouteDetector.java | 12 + .../AVSampleBufferAudioRenderer.java | 22 +- .../AVSampleBufferDisplayLayer.java | 2 + .../avfoundation/AVSampleBufferGenerator.java | 90 +++++ .../AVSampleBufferGeneratorBatch.java | 73 ++++ .../AVSampleBufferRenderSynchronizer.java | 2 + .../avfoundation/AVSampleBufferRequest.java | 98 ++++++ .../AVSampleBufferRequestDirection.java | 2 + .../AVSampleBufferRequestMode.java | 2 + .../apple/avfoundation/AVSampleCursor.java | 119 +++++++ .../AVSampleCursorAudioDependencyInfo.java | 72 ++++ .../avfoundation/AVSampleCursorChunkInfo.java | 78 +++++ .../AVSampleCursorDependencyInfo.java | 84 +++++ .../AVSampleCursorStorageRange.java | 72 ++++ .../avfoundation/AVSampleCursorSyncInfo.java | 75 ++++ .../AVSampleRateConverterAlgorithm.java | 2 + .../AVSampleRateConverterSettings.java | 2 + .../AVSemanticSegmentationMatte.java | 2 + .../AVSemanticSegmentationMatteType.java | 2 + .../apple/avfoundation/AVSpeechBoundary.java | 2 + .../AVSpeechSynthesisAttributes.java | 2 + .../avfoundation/AVSpeechSynthesisMarker.java | 92 +++++ .../AVSpeechSynthesisMarkerMark.java | 77 +++++ .../AVSpeechSynthesisProviderAudioUnit.java | 86 +++++ .../AVSpeechSynthesisProviderRequest.java | 84 +++++ .../AVSpeechSynthesisProviderVoice.java | 106 ++++++ .../avfoundation/AVSpeechSynthesisVoice.java | 2 + .../AVSpeechSynthesisVoiceGender.java | 2 + .../AVSpeechSynthesisVoiceIdentifier.java | 2 + .../AVSpeechSynthesisVoiceQuality.java | 8 +- .../avfoundation/AVSpeechSynthesizer.java | 7 + .../AVSpeechSynthesizerDelegate.java | 2 + .../AVSpeechSynthesizerDelegateAdapter.java | 2 + .../apple/avfoundation/AVSpeechUtterance.java | 16 + .../avfoundation/AVSynchronizedLayer.java | 2 + .../apple/avfoundation/AVTextStyleRule.java | 2 + .../avfoundation/AVTimedMetadataGroup.java | 2 + .../avfoundation/AVTrackAssociationType.java | 2 + .../robovm/apple/avfoundation/AVURLAsset.java | 11 + .../apple/avfoundation/AVURLAssetOptions.java | 12 + .../avfoundation/AVVariantPreferences.java | 2 + .../avfoundation/AVVideoApertureMode.java | 2 + .../avfoundation/AVVideoCleanAperture.java | 2 + .../apple/avfoundation/AVVideoCodecType.java | 2 + .../avfoundation/AVVideoColorPrimaries.java | 2 + .../avfoundation/AVVideoCompositing.java | 2 + .../AVVideoCompositingAdapter.java | 2 + .../avfoundation/AVVideoComposition.java | 41 +++ .../AVVideoCompositionCoreAnimationTool.java | 2 + .../AVVideoCompositionInstruction.java | 2 + ...AVVideoCompositionInstructionProtocol.java | 2 + .../AVVideoCompositionLayerInstruction.java | 2 + .../AVVideoCompositionRenderContext.java | 2 + .../AVVideoCompositionRenderHint.java | 2 + .../AVVideoCompositionValidationHandling.java | 2 + ...oCompositionValidationHandlingAdapter.java | 2 + .../AVVideoCompressionSettings.java | 2 + .../avfoundation/AVVideoH264EntropyMode.java | 2 + .../avfoundation/AVVideoProfileLevel.java | 2 + .../apple/avfoundation/AVVideoRange.java | 156 +++++++++ .../avfoundation/AVVideoScalingMode.java | 2 + .../apple/avfoundation/AVVideoSettings.java | 2 + .../avfoundation/AVVideoTransferFunction.java | 7 + .../avfoundation/AVVideoYCbCrMatrix.java | 2 + .../apple/avfoundation/NSCoderExtensions.java | 2 + .../apple/avfoundation/NSValueExtensions.java | 2 + 500 files changed, 5783 insertions(+), 154 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAUPresetEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackAssistant.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackConfigurationOption.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroupOutputHandling.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencerInfoDictionaryKey.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspensionReason.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedNoteOnEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedTempoEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelPressureEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeMessageType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEventType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDINoteEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPitchBendEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPolyPressureEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIProgramChangeEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDISysexEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicUserEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVParameterEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventCue.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerRateDidChangeReason.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGenerator.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGeneratorBatch.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorAudioDependencyInfo.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorChunkInfo.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorDependencyInfo.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorStorageRange.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorSyncInfo.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarker.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarkerMark.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderAudioUnit.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderVoice.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoRange.java diff --git a/compiler/cocoatouch/src/main/bro-gen/avfoundation.yaml b/compiler/cocoatouch/src/main/bro-gen/avfoundation.yaml index b8c43c204..432a2e618 100755 --- a/compiler/cocoatouch/src/main/bro-gen/avfoundation.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/avfoundation.yaml @@ -11,6 +11,8 @@ include: - corevideo - mediatoolbox - audiotoolbox + - coremidi + - uikit library: AVFoundation framework: AVFoundation internal_frameworks: [AVFAudio] @@ -123,6 +125,10 @@ enums: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions: {prefix: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorCondition} #since 15.0 AVCaptureMicrophoneMode: {} #since 15.0 AVCaptureSystemUserInterface: {} #since 15.0 + AVAssetTrackGroupOutputHandling: { } #since 16.0 + AVMIDIControlChangeMessageType: { } + AVMIDIMetaEventType: { } + AVSpeechSynthesisMarkerMark: { } #since 16.0 typed_enums: AVAssetDownloadedAssetEvictionPriority: @@ -149,6 +155,30 @@ typed_enums: type: NSString AVSemanticSegmentationMatteType(.*): name: '#{g[0]}' + AVAudioSequencerInfoDictionaryKey: + enum: AVAudioSequencerInfoDictionaryKey + type: NSString + prefix: AVAudioSequencerInfoDictionaryKey + AVAssetPlaybackConfigurationOption: + enum: AVAssetPlaybackConfigurationOption + type: NSString + prefix: AVAssetPlaybackConfigurationOption + AVPlayerInterstitialEventCue: + enum: AVPlayerInterstitialEventCue + type: NSString + prefix: AVPlayerInterstitialEventCue + AVVideoRange: + enum: AVVideoRange + type: NSString + prefix: AVVideoRange + AVPlayerRateDidChangeReason: + enum: AVPlayerRateDidChangeReason + type: NSString + prefix: AVPlayerRateDidChangeReason + AVCoordinatedPlaybackSuspensionReason: + enum: AVCoordinatedPlaybackSuspensionReason + type: NSString + prefix: AVCoordinatedPlaybackSuspensionReason categories: NSValueAVFoundationExtensions: # DONE methods: @@ -368,6 +398,8 @@ classes: type: '@Block VoidBlock5' '+assetImageGeneratorWithAsset:': exclude: true + '-generateCGImageAsynchronouslyForTime:completionHandler:': + name: generateCGImageAsynchronouslyForTime AVAssetReader: # DONE properties: 'outputs': @@ -533,6 +565,8 @@ classes: name: loadMetadataForFormat '-loadAssociatedTracksOfType:completionHandler:': name: loadAssociatedTracksOfType + '-makeSampleCursorWithPresentationTimeStamp:': + name: makeSampleCursor AVAssetTrackGroup: # DONE properties: 'trackIDs': @@ -794,6 +828,10 @@ classes: name: disconnectMIDI '-disconnectMIDI:fromNodes:': name: disconnectMIDI + '-connectMIDI:to:format:eventListBlock:': + name: connectMIDI + '-connectMIDI:toNodes:format:eventListBlock:': + name: connectMIDI AVAudioEnvironmentDistanceAttenuationParameters: {} # DONE AVAudioEnvironmentNode: # DONE @@ -1890,7 +1928,19 @@ classes: throws: NSErrorException '-play:': trim_after_first_colon: true - AVMusicTrack: {} # DONE + AVMusicTrack: + methods: + '-addEvent:atBeat:': + name: addEvent + '-moveEventsInRange:byAmount:': + name: moveEvents + '-copyEventsInRange:fromTrack:insertAtBeat:': + name: copyEvents + '-copyAndMergeEventsInRange:fromTrack:mergeAtBeat:': + name: copyAndMergeEvents + '-enumerateEventsInRange:usingBlock:': + name: enumerateEvents + AVMutableAudioMix: # DONE properties: 'inputParameters': @@ -1960,6 +2010,8 @@ classes: parameters: mediaCharacteristic: type: AVMediaCharacteristic + '-insertTimeRange:ofAsset:atTime:completionHandler:': + name: insertTimeRange # '-loadTrackWithTrackID:completionHandler:': # name: loadMutableCompositionTrack # '-loadTracksWithMediaType:completionHandler:': @@ -2052,6 +2104,15 @@ classes: '+videoCompositionWithPropertiesOfAsset:prototypeInstruction:': name: create constructor: true + '+videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler:': + name: create + constructor: true + '+videoCompositionWithPropertiesOfAsset:completionHandler:': + name: create0 + constructor: true + '+videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler:': + name: create0 + constructor: true AVMutableVideoCompositionInstruction: # DONE properties: 'layerInstructions': @@ -2376,6 +2437,8 @@ classes: name: pauseSpeaking '-writeUtterance:toBufferCallback:': name: writeUtterance + '-writeUtterance:toBufferCallback:toMarkerCallback:': + name: writeUtterance AVSpeechUtterance: # DONE methods: '-initWithString:': @@ -2386,6 +2449,11 @@ classes: name: init '+speechUtteranceWithAttributedString:': exclude: true + '-initWithSSMLRepresentation:': + static_constructor_name: createWithSSMLRepresentation + name: initWithSSMLRepresentation + '+speechUtteranceWithSSMLRepresentation:': + exclude: true AVSynchronizedLayer: # DONE annotations: ['@WeaklyLinked'] methods: @@ -2476,6 +2544,14 @@ classes: type: '@Block VoidBlock1' '-isValidForAsset:timeRange:validationDelegate:': name: isValid + '+videoCompositionWithPropertiesOfAsset:completionHandler:': + name: create + constructor: true + '+videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler:': + name: create + constructor: true + '-determineValidityForAsset:timeRange:validationDelegate:completionHandler:': + name: determineValidityForAsset AVVideoCompositionCoreAnimationTool: # DONE methods: '+videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:': @@ -2852,6 +2928,12 @@ classes: exclude: true // COMPATIBILITY SHIM - 72562501 '+playerInterstitialEventWithPrimaryItem:date:interstitialTemplateItems:restrictions:resumptionOffset:': exclude: true // COMPATIBILITY SHIM - 72562501 + '+interstitialEventWithPrimaryItem:time:': + name: create + constructor: true + '+interstitialEventWithPrimaryItem:date:': + name: create + constructor: true AVPlayerInterstitialEventController: #since 14.5 methods: '-cancelCurrentEventWithResumptionOffset:': @@ -2922,6 +3004,117 @@ classes: '+interstitialEventMonitorWithPrimaryPlayer:': exclude: true AVPlayerPlaybackCoordinator: {} #since 15.0 + AVAUPresetEvent: #since 16.0 + methods: + '-initWithScope:element:dictionary:': + name: init + AVAssetPlaybackAssistant: #since 16.0 + methods: + '-loadPlaybackConfigurationOptionsWithCompletionHandler:': + name: loadPlaybackConfigurationOptions + '+assetPlaybackAssistantWithAsset:': + name: create + constructor: true + AVExtendedNoteOnEvent: #since 16.0 + methods: + '-initWithMIDINote:velocity:groupID:duration:': + name: init + '-initWithMIDINote:velocity:instrumentID:groupID:duration:': + name: init + AVExtendedTempoEvent: #since 16.0 + methods: + '-initWithTempo:': + name: init + AVMIDIChannelEvent: {} #since 16.0 + AVMIDIChannelPressureEvent: #since 16.0 + methods: + '-initWithChannel:pressure:': + name: init + AVMIDIControlChangeEvent: #since 16.0 + methods: + '-initWithChannel:messageType:value:': + name: init + AVMIDIMetaEvent: #since 16.0 + methods: + '-initWithType:data:': + name: init + AVMIDINoteEvent: #since 16.0 + methods: + '-initWithChannel:key:velocity:duration:': + name: init + AVMIDIPitchBendEvent: #since 16.0 + methods: + '-initWithChannel:value:': + name: init + AVMIDIPolyPressureEvent: #since 16.0 + methods: + '-initWithChannel:key:pressure:': + name: init + AVMIDIProgramChangeEvent: #since 16.0 + methods: + '-initWithChannel:programNumber:': + name: init + AVMIDISysexEvent: #since 16.0 + methods: + '-initWithData:': + name: init + AVMusicEvent: {} #since 16.0 + AVMusicUserEvent: #since 16.0 + methods: + '-initWithData:': + name: init + AVParameterEvent: #since 16.0 + methods: + '-initWithParameterID:scope:element:value:': + name: init + AVSampleBufferGenerator: #since 16.0 + methods: + '-initWithAsset:timebase:': + name: init + '-createSampleBufferForRequest:error:': + name: createSampleBuffer + '-createSampleBufferForRequest:addingToBatch:error:': + name: createSampleBuffer + '+notifyOfDataReadyForSampleBuffer:completionHandler:': + name: notifyOfDataReadyForSampleBuffer + AVSampleBufferGeneratorBatch: #since 16.0 + methods: + '-makeDataReadyWithCompletionHandler:': + name: makeDataReady + AVSampleBufferRequest: #since 16.0 + methods: + '-initWithStartCursor:': + name: init + AVSampleCursor: #since 16.0 + methods: + '-stepByDecodeTime:wasPinned:': + name: stepByDecodeTime + '-stepByPresentationTime:wasPinned:': + name: stepByPresentationTime + '-comparePositionInDecodeOrderWithPositionOfCursor:': + name: comparePositionInDecodeOrder + '-samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor:': + name: samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor + '-samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:': + name: samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor + AVSampleCursorSyncInfo: {} + AVSampleCursorDependencyInfo: {} + AVSampleCursorAudioDependencyInfo: {} + AVSampleCursorStorageRange: {} + AVSampleCursorChunkInfo: {} + AVSpeechSynthesisMarker: #since 16.0 + methods: + '-initWithMarkerType:forTextRange:atByteSampleOffset:': + name: init + AVSpeechSynthesisProviderAudioUnit: {} #since 16.0 + AVSpeechSynthesisProviderRequest: #since 16.0 + methods: + '-initWithSSMLRepresentation:voice:': + name: init + AVSpeechSynthesisProviderVoice: #since 16.0 + methods: + '-initWithName:identifier:primaryLanguages:supportedLanguages:': + name: init protocols: AVCapturePhotoCaptureDelegate: methods: @@ -3782,9 +3975,10 @@ values: AVRouteDetectorMultipleRoutesDetectedDidChangeNotification: class: AVRouteDetector name: MultipleRoutesDetectedDidChangeNotification - AVSampleBufferAudioRendererWasFlushedAutomaticallyNotification: + AVSampleBufferAudioRenderer(.*)Notification: class: AVSampleBufferAudioRenderer - name: WasFlushedAutomaticallyNotification + name: '#{g[0]}' + static_class: Notifications AVAudioFileTypeKey: class: AVAudioFile name: TypeKey @@ -3815,11 +4009,32 @@ values: static_class: Notifications name: '#{g[0]}' type: NSString - + AVExtendedNoteOnEvent(DefaultInstrument): + name: '#{g[0]}' + class: AVExtendedNoteOnEvent + AVPlayer(.*)Key: + name: '#{g[0]}' + class: AVPlayer + static_class: Keys + AVPlaybackCoordinator(.*)Notification: + class: AVPlaybackCoordinator + static_class: Notifications + name: '#{g[0]}' + type: NSString + AVMovie(.*)Key: + class: AVMovie + static_class: Keys + name: '#{g[0]}' + type: NSString + AVAudioSession(.*)Key: + class: AVAudioSession + static_class: Keys + name: '#{g[0]}' + type: NSString # Make sure we don't miss any values if new ones are introduced in a later version (k?AV.*): - class: AVFoundation + class: FIXME name: 'Value__#{g[0]}' constants: @@ -3837,6 +4052,10 @@ constants: exclude: true AVAUDIOENGINE_HAVE_AUAUDIOUNIT: exclude: true + AVF_DEPRECATED_FOR_SWIFT_ONLY: + exclude: true + AVMusicTimeStampEndOfTrack: + exclude: true # Make sure we don't miss any constants if new ones are introduced in a later version (k?AV.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAUPresetEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAUPresetEvent.java new file mode 100644 index 000000000..c7d95d85f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAUPresetEvent.java @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVAUPresetEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVAUPresetEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVAUPresetEvent.class); }/**/ + /**//**/ + /**/ + public AVAUPresetEvent() {} + protected AVAUPresetEvent(Handle h, long handle) { super(h, handle); } + protected AVAUPresetEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithScope:element:dictionary:") + public AVAUPresetEvent(int scope, int element, NSDictionary presetDictionary) { super((SkipInit) null); initObject(init(scope, element, presetDictionary)); } + /**/ + /**/ + @Property(selector = "scope") + public native int getScope(); + @Property(selector = "setScope:") + public native void setScope(int v); + @Property(selector = "element") + public native int getElement(); + @Property(selector = "setElement:") + public native void setElement(int v); + @Property(selector = "presetDictionary") + public native NSDictionary getPresetDictionary(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithScope:element:dictionary:") + protected native @Pointer long init(int scope, int element, NSDictionary presetDictionary); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAggregateAssetDownloadTask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAggregateAssetDownloadTask.java index 995bccc29..65ac27157 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAggregateAssetDownloadTask.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAggregateAssetDownloadTask.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsset.java index 24d54ca1f..7e5840d5a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -219,6 +221,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept protected static native @Pointer long create(NSURL URL); @Method(selector = "cancelLoading") public native void cancelLoading(); + /** + * @deprecated Use loadTrackWithTrackID:completionHandler: + */ + @Deprecated @Method(selector = "trackWithTrackID:") public native AVAssetTrack getTrack(int trackID); /** @@ -226,6 +232,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadTrackWithTrackID:completionHandler:") public native void loadTrack(int trackID, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaType:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaType:") public native NSArray getTracksWithType(AVMediaType mediaType); /** @@ -233,6 +243,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadTracksWithMediaType:completionHandler:") public native void loadTracksWithMediaType(String mediaType, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaCharacteristic:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaCharacteristic:") public native NSArray getTracksWithCharacteristic(AVMediaCharacteristic mediaCharacteristic); /** @@ -240,6 +254,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadTracksWithMediaCharacteristic:completionHandler:") public native void loadTracksWithMediaCharacteristic(String mediaCharacteristic, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadMetadataForFormat:completionHandler: + */ + @Deprecated @Method(selector = "metadataForFormat:") public native NSArray getMetadata(AVMetadataFormat format); /** @@ -247,6 +265,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadMetadataForFormat:completionHandler:") public native void loadMetadataForFormat(String format, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadChapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:completionHandler: + */ + @Deprecated @Method(selector = "chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:") public native NSArray getChapterMetadataGroupsContainingItemsWithCommonKeys(NSLocale locale, @org.robovm.rt.bro.annotation.Marshaler(AVMetadataKey.AsListMarshaler.class) List commonKeys); /** @@ -254,6 +276,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadChapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:completionHandler:") public native void loadChapterMetadataGroups(NSLocale locale, NSArray commonKeys, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadChapterMetadataGroupsBestMatchingPreferredLanguages:completionHandler + */ + @Deprecated @Method(selector = "chapterMetadataGroupsBestMatchingPreferredLanguages:") public native NSArray getChapterMetadataGroupsBestMatchingPreferredLanguages(@org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List preferredLanguages); /** @@ -261,6 +287,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadChapterMetadataGroupsBestMatchingPreferredLanguages:completionHandler:") public native void loadChapterMetadataGroupsBestMatchingPreferredLanguages(NSArray preferredLanguages, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadMediaSelectionGroupForMediaCharacteristic:completionHandler: + */ + @Deprecated @Method(selector = "mediaSelectionGroupForMediaCharacteristic:") public native AVMediaSelectionGroup getMediaSelectionGroup(AVMediaCharacteristic mediaCharacteristic); /** @@ -268,6 +298,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadMediaSelectionGroupForMediaCharacteristic:completionHandler:") public native void loadMediaSelectionGroupForMediaCharacteristic(String mediaCharacteristic, @Block VoidBlock2 completionHandler); + /** + * @deprecated Use findUnusedTrackIDWithCompletionHandler: + */ + @Deprecated @Method(selector = "unusedTrackID") public native int getUnusedTrackID(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetCache.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetCache.java index e5d10f60c..2965604ad 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetCache.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetCache.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadConfiguration.java index 12567a43f..7229ec52b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadConfiguration.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadContentConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadContentConfiguration.java index 4ac6b81cc..b4d1c3e2c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadContentConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadContentConfiguration.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegate.java index 087835f60..40924925a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegateAdapter.java index 0a792368c..fe137084f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManagementPolicy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManagementPolicy.java index e0a7b4e70..d47657610 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManagementPolicy.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManagementPolicy.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManager.java index d8cd79dd6..bc83d9091 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadStorageManager.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTask.java index 5925c84fc..a8cbc3c9f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTask.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTask.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTaskOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTaskOptions.java index 5a21e879e..e3fdab34b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTaskOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadTaskOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadURLSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadURLSession.java index 66b21a7ac..db755a972 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadURLSession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadURLSession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadedAssetEvictionPriority.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadedAssetEvictionPriority.java index 2949bc446..b92a42646 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadedAssetEvictionPriority.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetDownloadedAssetEvictionPriority.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportPreset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportPreset.java index bf498e2c7..0dbd85e30 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportPreset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportPreset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSession.java index d1e36a44d..74f2a5974 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -125,6 +127,16 @@ protected AVAssetExportSession() {} public native void setVideoComposition(AVVideoComposition v); @Property(selector = "customVideoCompositor") public native AVVideoCompositing getCustomVideoCompositor(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "audioTrackGroupHandling") + public native AVAssetTrackGroupOutputHandling getAudioTrackGroupHandling(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAudioTrackGroupHandling:") + public native void setAudioTrackGroupHandling(AVAssetTrackGroupOutputHandling v); @Property(selector = "canPerformMultiplePassesOverSourceMediaData") public native boolean canPerformMultiplePassesOverSourceMediaData(); @Property(selector = "setCanPerformMultiplePassesOverSourceMediaData:") @@ -144,6 +156,10 @@ protected AVAssetExportSession() {} public native void cancelExport(); @Method(selector = "allExportPresets") public static native @org.robovm.rt.bro.annotation.Marshaler(AVAssetExportPreset.AsListMarshaler.class) List getAllExportPresets(); + /** + * @deprecated Deprecated in iOS 16.0. Use determineCompatibilityOfExportPreset:withAsset:outputFileType:completionHandler: + */ + @Deprecated @Method(selector = "exportPresetsCompatibleWithAsset:") public static native @org.robovm.rt.bro.annotation.Marshaler(AVAssetExportPreset.AsListMarshaler.class) List getCompatibleExportPresets(AVAsset asset); @Method(selector = "determineCompatibilityOfExportPreset:withAsset:outputFileType:completionHandler:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSessionStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSessionStatus.java index 8c220a034..166d4ef49 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSessionStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetExportSessionStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGenerator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGenerator.java index d93ba6e5a..409a57cd7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGenerator.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGenerator.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -92,6 +94,10 @@ protected AVAssetImageGenerator() {} /**/ @Method(selector = "initWithAsset:") protected native @Pointer long init(AVAsset asset); + /** + * @deprecated Use generateCGImageAsynchronouslyForTime:completionHandler: + */ + @Deprecated @WeaklyLinked public CGImage getCGImageAtTime(@ByVal CMTime requestedTime, CMTime actualTime) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); @@ -99,11 +105,20 @@ public CGImage getCGImageAtTime(@ByVal CMTime requestedTime, CMTime actualTime) if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } + /** + * @deprecated Use generateCGImageAsynchronouslyForTime:completionHandler: + */ + @Deprecated @WeaklyLinked @Method(selector = "copyCGImageAtTime:actualTime:error:") private native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGImage getCGImageAtTime(@ByVal CMTime requestedTime, CMTime actualTime, NSError.NSErrorPtr outError); @Method(selector = "generateCGImagesAsynchronouslyForTimes:completionHandler:") public native void generateCGImagesAsynchronously(@org.robovm.rt.bro.annotation.Marshaler(CMTime.AsValuedListMarshaler.class) List requestedTimes, @Block VoidBlock5 handler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "generateCGImageAsynchronouslyForTime:completionHandler:") + public native void generateCGImageAsynchronouslyForTime(@ByVal CMTime requestedTime, @Block("(,@ByVal,)") VoidBlock3 handler); @Method(selector = "cancelAllCGImageGeneration") public native void cancelAllCGImageGeneration(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorApertureMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorApertureMode.java index f5415ac6d..d488f8834 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorApertureMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorApertureMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorResult.java index 5d1ec4daa..4115293d9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorResult.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetImageGeneratorResult.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackAssistant.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackAssistant.java new file mode 100644 index 000000000..456bb6a00 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackAssistant.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVAssetPlaybackAssistant/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVAssetPlaybackAssistantPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVAssetPlaybackAssistant.class); }/**/ + /**//**/ + /**/ + protected AVAssetPlaybackAssistant() {} + protected AVAssetPlaybackAssistant(Handle h, long handle) { super(h, handle); } + protected AVAssetPlaybackAssistant(SkipInit skipInit) { super(skipInit); } + public AVAssetPlaybackAssistant(AVAsset asset) { super((Handle) null, create(asset)); retain(getHandle()); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "loadPlaybackConfigurationOptionsWithCompletionHandler:") + public native void loadPlaybackConfigurationOptions(@Block VoidBlock1> completionHandler); + @Method(selector = "assetPlaybackAssistantWithAsset:") + protected static native @Pointer long create(AVAsset asset); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackConfigurationOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackConfigurationOption.java new file mode 100644 index 000000000..afe67090f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetPlaybackConfigurationOption.java @@ -0,0 +1,147 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("AVFoundation") @StronglyLinked/**/ +@Marshaler(/**/AVAssetPlaybackConfigurationOption/**/.Marshaler.class) +/**/public/**/ class /**/AVAssetPlaybackConfigurationOption/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/AVAssetPlaybackConfigurationOption/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static AVAssetPlaybackConfigurationOption toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return AVAssetPlaybackConfigurationOption.valueOf(o); + } + @MarshalsPointer + public static long toNative(AVAssetPlaybackConfigurationOption o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(AVAssetPlaybackConfigurationOption.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (AVAssetPlaybackConfigurationOption o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAssetPlaybackConfigurationOption StereoVideo = new AVAssetPlaybackConfigurationOption("StereoVideo"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAssetPlaybackConfigurationOption StereoMultiviewVideo = new AVAssetPlaybackConfigurationOption("StereoMultiviewVideo"); + /**/ + + private static /**/AVAssetPlaybackConfigurationOption/**/[] values = new /**/AVAssetPlaybackConfigurationOption/**/[] {/**/StereoVideo, StereoMultiviewVideo/**/}; + + /**/AVAssetPlaybackConfigurationOption/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/AVAssetPlaybackConfigurationOption/**/ valueOf(/**/NSString/**/ value) { + for (/**/AVAssetPlaybackConfigurationOption/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/AVAssetPlaybackConfigurationOption/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AVFoundation") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAssetPlaybackConfigurationOptionStereoVideo", optional=true) + public static native NSString StereoVideo(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAssetPlaybackConfigurationOptionStereoMultiviewVideo", optional=true) + public static native NSString StereoMultiviewVideo(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReader.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReader.java index 3edfaf831..6a7f71580 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReader.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReader.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderAudioMixOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderAudioMixOutput.java index 9472b7622..50a4ea537 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderAudioMixOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderAudioMixOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutput.java index 497e3e762..d9eaaa78c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutputMetadataAdaptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutputMetadataAdaptor.java index 77c6f6bac..a115b872e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutputMetadataAdaptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderOutputMetadataAdaptor.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderSampleReferenceOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderSampleReferenceOutput.java index c19802ce4..3f32eca04 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderSampleReferenceOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderSampleReferenceOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderStatus.java index d8e295bdf..57e0a9f51 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderTrackOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderTrackOutput.java index 28fe3ab2d..b08209fc2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderTrackOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderTrackOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderVideoCompositionOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderVideoCompositionOutput.java index b9d46eb4e..d7337be57 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderVideoCompositionOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReaderVideoCompositionOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReferenceRestrictions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReferenceRestrictions.java index b179ba871..e5421dce9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReferenceRestrictions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetReferenceRestrictions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoader.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoader.java index 17bbe7c3b..3b35a1fea 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoader.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoader.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegate.java index e945ef87a..1b213eec1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegateAdapter.java index c06613f0f..1cc5680d7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoaderDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingContentInformationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingContentInformationRequest.java index 8483a4d36..291ff3023 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingContentInformationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingContentInformationRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -78,6 +80,16 @@ protected AVAssetResourceLoadingContentInformationRequest() {} public native NSDate getRenewalDate(); @Property(selector = "setRenewalDate:") public native void setRenewalDate(NSDate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isEntireLengthAvailableOnDemand") + public native boolean isEntireLengthAvailableOnDemand(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setEntireLengthAvailableOnDemand:") + public native void setEntireLengthAvailableOnDemand(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingDataRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingDataRequest.java index fd2f0de32..d7d3c294e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingDataRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingDataRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequest.java index 991775d1b..608c3044d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestOptions.java index 96bf30c29..c2a42887e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestor.java index 04706db7e..c95701e36 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceLoadingRequestor.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceRenewalRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceRenewalRequest.java index 03e3e4b38..bbc6caded 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceRenewalRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetResourceRenewalRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReport.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReport.java index a50fbeb1a..5f9b893d9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReport.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReport.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReportSampleInformation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReportSampleInformation.java index 53461d155..0cdd7378a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReportSampleInformation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentReportSampleInformation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentTrackReport.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentTrackReport.java index 141292f99..b5a7a825d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentTrackReport.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentTrackReport.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentType.java index 8ee53c38e..e415645bf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetSegmentType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrack.java index 4943a2a1f..7f1555c81 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -129,6 +131,11 @@ protected AVAssetTrack() {} public native @org.robovm.rt.bro.annotation.Marshaler(AVMetadataFormat.AsListMarshaler.class) List getAvailableMetadataFormats(); @Property(selector = "availableTrackAssociationTypes") public native @org.robovm.rt.bro.annotation.Marshaler(AVTrackAssociationType.AsListMarshaler.class) List getAvailableTrackAssociationTypes(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "canProvideSampleCursors") + public native boolean canProvideSampleCursors(); /**/ /**//**/ /** @@ -154,6 +161,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept @Method(selector = "hasMediaCharacteristic:") public native boolean hasMediaCharacteristic(AVMediaCharacteristic mediaCharacteristic); + /** + * @deprecated Use loadSegmentForTrackTime:completionHandler: + */ + @Deprecated @Method(selector = "segmentForTrackTime:") public native AVAssetTrackSegment getSegment(@ByVal CMTime trackTime); /** @@ -161,6 +172,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadSegmentForTrackTime:completionHandler:") public native void loadSegmentForTrackTime(@ByVal CMTime trackTime, @Block VoidBlock2 completionHandler); + /** + * @deprecated Use loadSamplePresentationTimeForTrackTime:completionHandler: + */ + @Deprecated @Method(selector = "samplePresentationTimeForTrackTime:") public native @ByVal CMTime getSamplePresentationTime(@ByVal CMTime trackTime); /** @@ -168,6 +183,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadSamplePresentationTimeForTrackTime:completionHandler:") public native void loadSamplePresentationTimeForTrackTime(@ByVal CMTime trackTime, @Block("(@ByVal,)") VoidBlock2 completionHandler); + /** + * @deprecated Use loadMetadataForFormat:completionHandler: + */ + @Deprecated @Method(selector = "metadataForFormat:") public native NSArray getMetadataForFormat(AVMetadataFormat format); /** @@ -175,6 +194,10 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadMetadataForFormat:completionHandler:") public native void loadMetadataForFormat(String format, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadAssociatedTracksOfType:completionHandler: + */ + @Deprecated @Method(selector = "associatedTracksOfType:") public native NSArray getAssociatedTracksOfType(AVTrackAssociationType trackAssociationType); /** @@ -182,6 +205,21 @@ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorExcept */ @Method(selector = "loadAssociatedTracksOfType:completionHandler:") public native void loadAssociatedTracksOfType(String trackAssociationType, @Block VoidBlock2, NSError> completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "makeSampleCursorWithPresentationTimeStamp:") + public native AVSampleCursor makeSampleCursor(@ByVal CMTime presentationTimeStamp); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "makeSampleCursorAtFirstSampleInDecodeOrder") + public native AVSampleCursor makeSampleCursorAtFirstSampleInDecodeOrder(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "makeSampleCursorAtLastSampleInDecodeOrder") + public native AVSampleCursor makeSampleCursorAtLastSampleInDecodeOrder(); @Method(selector = "statusOfValueForKey:error:") public native AVKeyValueStatus getStatusOfValue(AVMetadataKey key, NSError.NSErrorPtr outError); @Method(selector = "loadValuesAsynchronouslyForKeys:completionHandler:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroup.java index fb7ef320e..5b053e46e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroupOutputHandling.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroupOutputHandling.java new file mode 100644 index 000000000..5fc731a6f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackGroupOutputHandling.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/AVAssetTrackGroupOutputHandling/**/ extends Bits*/AVAssetTrackGroupOutputHandling/**/> { + /**/ + public static final AVAssetTrackGroupOutputHandling None = new AVAssetTrackGroupOutputHandling(0L); + public static final AVAssetTrackGroupOutputHandling PreserveAlternateTracks = new AVAssetTrackGroupOutputHandling(1L); + public static final AVAssetTrackGroupOutputHandling DefaultPolicy = new AVAssetTrackGroupOutputHandling(0L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/AVAssetTrackGroupOutputHandling/**/[] values = _values(/**/AVAssetTrackGroupOutputHandling/**/.class); + + public /**/AVAssetTrackGroupOutputHandling/**/(long value) { super(value); } + private /**/AVAssetTrackGroupOutputHandling/**/(long value, long mask) { super(value, mask); } + protected /**/AVAssetTrackGroupOutputHandling/**/ wrap(long value, long mask) { + return new /**/AVAssetTrackGroupOutputHandling/**/(value, mask); + } + protected /**/AVAssetTrackGroupOutputHandling/**/[] _values() { + return values; + } + public static /**/AVAssetTrackGroupOutputHandling/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackSegment.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackSegment.java index c6a7daca3..1e4ea1015 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackSegment.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetTrackSegment.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariant.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariant.java index f624d64c2..318a47326 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariant.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariant.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioAttributes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioAttributes.java index b2c9eb0dd..e042d06b3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioAttributes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioAttributes.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioRenditionSpecificAttributes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioRenditionSpecificAttributes.java index 4d10ae4c7..fa02bbee9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioRenditionSpecificAttributes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantAudioRenditionSpecificAttributes.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantQualifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantQualifier.java index 815b2b4f3..f421bf484 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantQualifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantQualifier.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantVideoAttributes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantVideoAttributes.java index bd40320fa..246cb75fd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantVideoAttributes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetVariantVideoAttributes.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -60,7 +62,7 @@ protected AVAssetVariantVideoAttributes() {} /**/ /**/ @Property(selector = "videoRange") - public native String getVideoRange(); + public native AVVideoRange getVideoRange(); @Property(selector = "codecTypes") public native NSArray getCodecTypes(); @Property(selector = "presentationSize") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriter.java index c67576886..0bb931903 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegate.java index 933ab351d..e7ceb6ea4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegateAdapter.java index cd4bfb115..9b91051bd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInput.java index d01fcaf34..4637d4f3b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputGroup.java index dc0a213c8..151ee8404 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMediaDataLocation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMediaDataLocation.java index 6a10f08d6..c9173e612 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMediaDataLocation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMediaDataLocation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMetadataAdaptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMetadataAdaptor.java index 94e88db9f..e8d65d920 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMetadataAdaptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputMetadataAdaptor.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPassDescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPassDescription.java index 8ef9071f5..b47f6c4d2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPassDescription.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPassDescription.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPixelBufferAdaptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPixelBufferAdaptor.java index f35e7182a..9ea0fa075 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPixelBufferAdaptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterInputPixelBufferAdaptor.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterStatus.java index 193f29360..2c33a5107 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAssetWriterStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousCIImageFilteringRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousCIImageFilteringRequest.java index ef83bc348..f2a0e4124 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousCIImageFilteringRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousCIImageFilteringRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoading.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoading.java index 934557530..0063d2075 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoading.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoading.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoadingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoadingAdapter.java index 1cfbe5c97..8e853d0cd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoadingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousKeyValueLoadingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousVideoCompositionRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousVideoCompositionRequest.java index 6ee44fd19..34049376a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousVideoCompositionRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAsynchronousVideoCompositionRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DAngularOrientation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DAngularOrientation.java index b1561ec3c..6e4d75ade 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DAngularOrientation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DAngularOrientation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixing.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixing.java index 06d7a032f..56a92606c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixing.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixing.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingAdapter.java index c55a9e69e..91ba1d581 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingPointSourceInHeadMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingPointSourceInHeadMode.java index fca3f414b..8b0c2fc24 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingPointSourceInHeadMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingPointSourceInHeadMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingRenderingAlgorithm.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingRenderingAlgorithm.java index 1c54b2653..2467626a0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingRenderingAlgorithm.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingRenderingAlgorithm.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingSourceMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingSourceMode.java index 4409899a9..48e136f02 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingSourceMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DMixingSourceMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DPoint.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DPoint.java index a9827982f..d9262357e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DPoint.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DPoint.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVector.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVector.java index 3dab32aa5..d16e4dbb3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVector.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVector.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVectorOrientation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVectorOrientation.java index 1148c6569..d800691a3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVectorOrientation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudio3DVectorOrientation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBitRateStrategy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBitRateStrategy.java index 7d7b1124e..e2675c409 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBitRateStrategy.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBitRateStrategy.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBuffer.java index 971880ed2..1fb2ed750 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioBuffer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioChannelLayout.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioChannelLayout.java index 65f239bb0..001d7c9c7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioChannelLayout.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioChannelLayout.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCommonFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCommonFormat.java index 58758f77b..6f269d4c9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCommonFormat.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCommonFormat.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCompressedBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCompressedBuffer.java index 248399f85..54ecc45fe 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCompressedBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioCompressedBuffer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConnectionPoint.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConnectionPoint.java index cf475da37..dfd0c868e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConnectionPoint.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConnectionPoint.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverter.java index 3bdd1e86c..614c55e08 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterInputStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterInputStatus.java index f5e851f89..d7d6142b3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterInputStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterInputStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterOutputStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterOutputStatus.java index 0795feacc..6f3046c82 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterOutputStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterOutputStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeInfo.java index d460ca035..c359c91a9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeInfo.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeInfo.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeMethod.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeMethod.java index c53b4651e..b1f0e83f6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeMethod.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioConverterPrimeMethod.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEncoderSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEncoderSettings.java index b43d533f4..2c57009bb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEncoderSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEncoderSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngine.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngine.java index 108e4a40a..9e33cf739 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngine.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngine.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -217,15 +219,29 @@ public AVAudioEngineManualRenderingStatus renderOffline(int numberOfFrames, AVAu @Method(selector = "renderOffline:toBuffer:error:") private native AVAudioEngineManualRenderingStatus renderOffline(int numberOfFrames, AVAudioPCMBuffer buffer, NSError.NSErrorPtr outError); /** - * @since Available in iOS 12.0 and later. + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use connectMIDI:to:format:eventListBlock: */ + @Deprecated @Method(selector = "connectMIDI:to:format:block:") public native void connectMIDI(AVAudioNode sourceNode, AVAudioNode destinationNode, AVAudioFormat format, @Block("(,,@MachineSizedSInt,)") Block4 tapBlock); /** - * @since Available in iOS 12.0 and later. + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "connectMIDI:to:format:eventListBlock:") + public native void connectMIDI(AVAudioNode sourceNode, AVAudioNode destinationNode, AVAudioFormat format, @Block Block3 tapBlock); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use connectMIDI:toNodes:format:eventListBlock: */ + @Deprecated @Method(selector = "connectMIDI:toNodes:format:block:") public native void connectMIDI(AVAudioNode sourceNode, NSArray destinationNodes, AVAudioFormat format, @Block("(,,@MachineSizedSInt,)") Block4 tapBlock); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "connectMIDI:toNodes:format:eventListBlock:") + public native void connectMIDI(AVAudioNode sourceNode, NSArray destinationNodes, AVAudioFormat format, @Block Block3 tapBlock); /** * @since Available in iOS 12.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingError.java index 765ba9367..9050b3b22 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingError.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingMode.java index bbaa61dbf..ec0cddb90 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingStatus.java index 8f066d86a..5fb7b17d6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEngineManualRenderingStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationModel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationModel.java index 4850090d2..4dc4ce43c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationModel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationModel.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationParameters.java index 4ebea5aa5..c205c5825 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentDistanceAttenuationParameters.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentNode.java index 8840dc5f1..1d6a874a2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentOutputType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentOutputType.java index 2f467b436..3743584c4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentOutputType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentOutputType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentReverbParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentReverbParameters.java index 75170353a..1d10285af 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentReverbParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioEnvironmentReverbParameters.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFile.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFile.java index 64c5cf284..b19ce8c9e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFile.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFile.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFormat.java index 547be5f1b..f721f54e6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFormat.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioFormat.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioIONode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioIONode.java index 6417e7d40..1a69cc51d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioIONode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioIONode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioInputNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioInputNode.java index 2c1fd860b..73b5d5c32 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioInputNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioInputNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMix.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMix.java index 50a1cec48..7b0ddf3d9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMix.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMix.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixInputParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixInputParameters.java index d4772eff9..7e4ff7cb4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixInputParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixInputParameters.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixerNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixerNode.java index 950682165..0103e530f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixerNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixerNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixing.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixing.java index c792186d7..a800d487f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixing.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixing.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingAdapter.java index c991896b8..7abc45ff1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingDestination.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingDestination.java index 479e5e40e..63f835439 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingDestination.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioMixingDestination.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioNode.java index 50c298d18..8e7c3b6bc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioOutputNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioOutputNode.java index a0c9d52a9..dca20f957 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioOutputNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioOutputNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPCMBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPCMBuffer.java index 648462e53..cc8790e23 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPCMBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPCMBuffer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayer.java index 28ec7fb38..040ac7fd5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java index 597489774..6e6691e15 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -52,27 +54,8 @@ /**/ /**/ /**//**/ - /**/ - - /**/ - /**/ - @Method(selector = "audioPlayerDidFinishPlaying:successfully:") - void didFinishPlaying(AVAudioPlayer player, boolean flag); - @Method(selector = "audioPlayerDecodeErrorDidOccur:error:") - void decodeErrorDidOccur(AVAudioPlayer player, NSError error); - /** - * @deprecated Deprecated in iOS 8.0. - */ - @Deprecated - @Method(selector = "audioPlayerBeginInterruption:") - void beginInterruption(AVAudioPlayer player); - /** - * @deprecated Deprecated in iOS 8.0. - */ - @Deprecated - @Method(selector = "audioPlayerEndInterruption:withOptions:") - void endInterruption(AVAudioPlayer player, @MachineSizedUInt long flags); - /**/ + /**//**/ + /**//**/ /**/ /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNode.java index 6b95313ba..870fb41a1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeBufferOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeBufferOptions.java index eaebe38ac..e9a4b09a2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeBufferOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeBufferOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeCompletionCallbackType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeCompletionCallbackType.java index ea6f8793d..74dcea1d1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeCompletionCallbackType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerNodeCompletionCallbackType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioQuality.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioQuality.java index 86a382121..78a920724 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioQuality.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioQuality.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorder.java index 094d227de..6a2953bda 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorder.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegate.java index 77d6a6c65..2cba3081c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegateAdapter.java index 53216f4cb..db0041234 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRecorderDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRoutingArbitrationCategory.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRoutingArbitrationCategory.java index 17511c2a7..a70032ff5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRoutingArbitrationCategory.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioRoutingArbitrationCategory.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencer.java index 0cf0e3df6..ae8a0cc83 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -122,6 +124,26 @@ public NSData getData(@MachineSizedSInt long SMPTEResolution) throws NSErrorExce public native double convertBeatsToSeconds(double beats); @Method(selector = "beatsForSeconds:") public native double convertSecondsToBeats(double seconds); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "reverseEvents") + public native void reverseEvents(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "createAndAppendTrack") + public native AVMusicTrack createAndAppendTrack(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "removeTrack:") + public native boolean removeTrack(AVMusicTrack track); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setUserCallback:") + public native void setUserCallback(@Block VoidBlock3 userCallback); public long convertBeatsToHostTime(double beats) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); long result = convertBeatsToHostTime(beats, ptr); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencerInfoDictionaryKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencerInfoDictionaryKey.java new file mode 100644 index 000000000..03e6601a3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSequencerInfoDictionaryKey.java @@ -0,0 +1,327 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("AVFoundation") @StronglyLinked/**/ +@Marshaler(/**/AVAudioSequencerInfoDictionaryKey/**/.Marshaler.class) +/**/public/**/ class /**/AVAudioSequencerInfoDictionaryKey/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/AVAudioSequencerInfoDictionaryKey/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static AVAudioSequencerInfoDictionaryKey toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return AVAudioSequencerInfoDictionaryKey.valueOf(o); + } + @MarshalsPointer + public static long toNative(AVAudioSequencerInfoDictionaryKey o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(AVAudioSequencerInfoDictionaryKey.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (AVAudioSequencerInfoDictionaryKey o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Album = new AVAudioSequencerInfoDictionaryKey("Album"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey ApproximateDurationInSeconds = new AVAudioSequencerInfoDictionaryKey("ApproximateDurationInSeconds"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Artist = new AVAudioSequencerInfoDictionaryKey("Artist"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey ChannelLayout = new AVAudioSequencerInfoDictionaryKey("ChannelLayout"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Comments = new AVAudioSequencerInfoDictionaryKey("Comments"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Composer = new AVAudioSequencerInfoDictionaryKey("Composer"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Copyright = new AVAudioSequencerInfoDictionaryKey("Copyright"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey EncodingApplication = new AVAudioSequencerInfoDictionaryKey("EncodingApplication"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Genre = new AVAudioSequencerInfoDictionaryKey("Genre"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey ISRC = new AVAudioSequencerInfoDictionaryKey("ISRC"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey KeySignature = new AVAudioSequencerInfoDictionaryKey("KeySignature"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Lyricist = new AVAudioSequencerInfoDictionaryKey("Lyricist"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey NominalBitRate = new AVAudioSequencerInfoDictionaryKey("NominalBitRate"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey RecordedDate = new AVAudioSequencerInfoDictionaryKey("RecordedDate"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey SourceBitDepth = new AVAudioSequencerInfoDictionaryKey("SourceBitDepth"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey SourceEncoder = new AVAudioSequencerInfoDictionaryKey("SourceEncoder"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey SubTitle = new AVAudioSequencerInfoDictionaryKey("SubTitle"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Tempo = new AVAudioSequencerInfoDictionaryKey("Tempo"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey TimeSignature = new AVAudioSequencerInfoDictionaryKey("TimeSignature"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Title = new AVAudioSequencerInfoDictionaryKey("Title"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey TrackNumber = new AVAudioSequencerInfoDictionaryKey("TrackNumber"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVAudioSequencerInfoDictionaryKey Year = new AVAudioSequencerInfoDictionaryKey("Year"); + /**/ + + private static /**/AVAudioSequencerInfoDictionaryKey/**/[] values = new /**/AVAudioSequencerInfoDictionaryKey/**/[] {/**/Album, ApproximateDurationInSeconds, Artist, ChannelLayout, Comments, Composer, Copyright, EncodingApplication, Genre, ISRC, KeySignature, Lyricist, NominalBitRate, RecordedDate, SourceBitDepth, SourceEncoder, SubTitle, Tempo, TimeSignature, Title, TrackNumber, Year/**/}; + + /**/AVAudioSequencerInfoDictionaryKey/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/AVAudioSequencerInfoDictionaryKey/**/ valueOf(/**/NSString/**/ value) { + for (/**/AVAudioSequencerInfoDictionaryKey/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/AVAudioSequencerInfoDictionaryKey/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AVFoundation") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyAlbum", optional=true) + public static native NSString Album(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyApproximateDurationInSeconds", optional=true) + public static native NSString ApproximateDurationInSeconds(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyArtist", optional=true) + public static native NSString Artist(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyChannelLayout", optional=true) + public static native NSString ChannelLayout(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyComments", optional=true) + public static native NSString Comments(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyComposer", optional=true) + public static native NSString Composer(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyCopyright", optional=true) + public static native NSString Copyright(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyEncodingApplication", optional=true) + public static native NSString EncodingApplication(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyGenre", optional=true) + public static native NSString Genre(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyISRC", optional=true) + public static native NSString ISRC(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyKeySignature", optional=true) + public static native NSString KeySignature(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyLyricist", optional=true) + public static native NSString Lyricist(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyNominalBitRate", optional=true) + public static native NSString NominalBitRate(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyRecordedDate", optional=true) + public static native NSString RecordedDate(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeySourceBitDepth", optional=true) + public static native NSString SourceBitDepth(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeySourceEncoder", optional=true) + public static native NSString SourceEncoder(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeySubTitle", optional=true) + public static native NSString SubTitle(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyTempo", optional=true) + public static native NSString Tempo(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyTimeSignature", optional=true) + public static native NSString TimeSignature(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyTitle", optional=true) + public static native NSString Title(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyTrackNumber", optional=true) + public static native NSString TrackNumber(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVAudioSequencerInfoDictionaryKeyYear", optional=true) + public static native NSString Year(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSession.java index d26c3cf05..d219f5992 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -255,6 +257,16 @@ public AVAudioSession() {} public static native NSString SpatialPlaybackCapabilitiesChangedNotification(); @GlobalValue(symbol="AVAudioSessionSilenceSecondaryAudioHintTypeKey", optional=true) protected static native NSString SilenceSecondaryAudioHintTypeKey(); + @Library("AVFoundation") + public static class Keys { + static { Bro.bind(Keys.class); } + + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVAudioSessionSpatialAudioEnabledKey", optional=true) + public static native NSString SpatialAudioEnabled(); + } public boolean setCategory(AVAudioSessionCategory category) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionActivationOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionActivationOptions.java index 61b7a876b..1d5128fdc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionActivationOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionActivationOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategory.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategory.java index bc558e56c..4e6f3f95d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategory.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategory.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategoryOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategoryOptions.java index 7eb46675d..bea78a356 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategoryOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionCategoryOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionChannelDescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionChannelDescription.java index f22e231a5..5c9c81d4d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionChannelDescription.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionChannelDescription.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionDataSourceDescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionDataSourceDescription.java index bb1ac0acd..f7bd2bffb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionDataSourceDescription.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionDataSourceDescription.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionErrorCode.java index c50ce670d..523e0b19a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionErrorCode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionIOType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionIOType.java index b44e5ca23..b41fd49b0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionIOType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionIOType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionNotification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionNotification.java index bf574b0c8..ac1da78f6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionNotification.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionNotification.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionOptions.java index 977942ba3..9fbf05a9d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionReason.java index e5812e280..379603aef 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionReason.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionReason.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -47,6 +49,11 @@ public enum /**/AVAudioSessionInterruptionReason/**/ implements ValuedEnum { /**/ Default(0L), + /** + * @since Available in iOS 14.5 and later. + * @deprecated Deprecated in iOS 16.0. wasSuspended reason no longer present + */ + @Deprecated AppWasSuspended(1L), BuiltInMicMuted(2L); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionType.java index e725ba4c9..a295f76c0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionInterruptionType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionLocation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionLocation.java index b86e3b654..6ed8d76ae 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionLocation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionLocation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionMode.java index 1c44b921c..01bb9f7ee 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionOrientation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionOrientation.java index b473b5b8b..c9692cd89 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionOrientation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionOrientation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPolarPattern.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPolarPattern.java index 1e52a82b3..e0f369dcb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPolarPattern.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPolarPattern.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPort.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPort.java index fd569c736..1d30d4528 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPort.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPort.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortDescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortDescription.java index c1a8cc194..5d1a92613 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortDescription.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortDescription.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortOverride.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortOverride.java index 7b999d493..3c70a87fd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortOverride.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPortOverride.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPromptStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPromptStyle.java index 6a6605346..382daea23 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPromptStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionPromptStyle.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRecordPermission.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRecordPermission.java index 32f0620ea..9a821dd23 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRecordPermission.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRecordPermission.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeNotification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeNotification.java index 9e55c8a8c..5682f51db 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeNotification.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeNotification.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeReason.java index c304445d9..befc40d48 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeReason.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteChangeReason.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteDescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteDescription.java index f197bee5a..7e257d8fa 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteDescription.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteDescription.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteSharingPolicy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteSharingPolicy.java index 41877e2b6..de7d76b67 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteSharingPolicy.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionRouteSharingPolicy.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSetActiveOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSetActiveOptions.java index d36effb51..2c2806e5f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSetActiveOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSetActiveOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSilenceSecondaryAudioHintType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSilenceSecondaryAudioHintType.java index d8c37b4e4..aad253387 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSilenceSecondaryAudioHintType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSessionSilenceSecondaryAudioHintType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSettings.java index 0d0fba3b4..ce5318b23 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSinkNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSinkNode.java index 5fd217e79..71275b810 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSinkNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSinkNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSourceNode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSourceNode.java index 2c9ac58e8..a13673698 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSourceNode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSourceNode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSpatializationFormats.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSpatializationFormats.java index f1a187d11..f24736556 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSpatializationFormats.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioSpatializationFormats.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixing.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixing.java index 7fac6eb3b..02edc2841 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixing.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixing.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixingAdapter.java index c2e6992c6..aa9210c5c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoMixingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoOrientation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoOrientation.java index 39e50aac7..60bafaa35 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoOrientation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioStereoOrientation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTime.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTime.java index 3caae98a7..f1e11b375 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTime.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTime.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTimePitchAlgorithm.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTimePitchAlgorithm.java index 33dbeb487..e443ae0ec 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTimePitchAlgorithm.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioTimePitchAlgorithm.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnit.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnit.java index 5fd514d37..fbc252085 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnit.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnit.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponent.java index 96627ff31..5cd406bc9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponent.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -97,6 +99,21 @@ public AVAudioUnitComponent() {} public native @org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List getAllTagNames(); @Property(selector = "audioComponentDescription") public native @ByVal AudioComponentDescription getAudioComponentDescription(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "icon") + public native UIImage getIcon(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "passesAUVal") + public native boolean isPassesAUVal(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "configurationDictionary") + public native NSDictionary getConfigurationDictionary(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponentManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponentManager.java index 56b20e0ad..bec39c259 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponentManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitComponentManager.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDelay.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDelay.java index 47be14bb6..af71e2417 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDelay.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDelay.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortion.java index 34e84155c..45f9aeca5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortion.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortion.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortionPreset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortionPreset.java index eb6d8079a..69982f684 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortionPreset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitDistortionPreset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQ.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQ.java index 4f2f3c1af..9ed510b83 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQ.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQ.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterParameters.java index bc9b0f119..ac8dcc13d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterParameters.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterType.java index 8aa039c04..245f6359e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEQFilterType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEffect.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEffect.java index 23f811240..95fe59bfa 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEffect.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitEffect.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitGenerator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitGenerator.java index 9eda386d2..721c1b0c5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitGenerator.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitGenerator.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitMIDIInstrument.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitMIDIInstrument.java index d4fb562b6..6b8c15d4e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitMIDIInstrument.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitMIDIInstrument.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -140,6 +142,11 @@ public AVAudioUnitMIDIInstrument() {} public native void sendMIDIEvent(byte midiStatus, byte data1); @Method(selector = "sendMIDISysExEvent:") public native void sendMIDISysExEvent(NSData midiData); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sendMIDIEventList:") + public native void sendMIDIEventList(MIDIEventList eventList); /** * @since Available in iOS 9.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitManufacturerName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitManufacturerName.java index c9256e12d..bc375eb91 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitManufacturerName.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitManufacturerName.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverb.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverb.java index f890ba43d..92ae3eee5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverb.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverb.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverbPreset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverbPreset.java index e049ed001..9db7ca1b8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverbPreset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitReverbPreset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitSampler.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitSampler.java index eb1fa4e75..fbbad8394 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitSampler.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitSampler.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimeEffect.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimeEffect.java index 5b7b5c29d..7bbb6dee1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimeEffect.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimeEffect.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimePitch.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimePitch.java index 6273eb9ae..e32088a36 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimePitch.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitTimePitch.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitType.java index ff30a21c2..253e2d6bf 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitVarispeed.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitVarispeed.java index e14b4fa16..065407a2b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitVarispeed.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioUnitVarispeed.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAuthorizationStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAuthorizationStatus.java index a8fbc1b6a..62c0817e8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAuthorizationStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAuthorizationStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVBeatRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVBeatRange.java index cd9f65db8..17f4896f6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVBeatRange.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVBeatRange.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCameraCalibrationData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCameraCalibrationData.java index 8ad58172e..a79442d0a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCameraCalibrationData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCameraCalibrationData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioChannel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioChannel.java index 8697936e0..91dd72dd2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioChannel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioChannel.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutput.java index 822b7a060..29db881b3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegate.java index 2b7fe6a82..f873f9c2d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegateAdapter.java index a2b35e7d4..52684214e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAudioDataOutputSampleBufferDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoExposureBracketedStillImageSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoExposureBracketedStillImageSettings.java index 8edfdc701..e1272de0e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoExposureBracketedStillImageSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoExposureBracketedStillImageSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusRangeRestriction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusRangeRestriction.java index c3f3c28ef..3cda534b0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusRangeRestriction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusRangeRestriction.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusSystem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusSystem.java index cf81b4aa0..934c3eddd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusSystem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureAutoFocusSystem.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureBracketedStillImageSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureBracketedStillImageSettings.java index 7dcc9539e..9ebb42cbb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureBracketedStillImageSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureBracketedStillImageSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureCenterStageControlMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureCenterStageControlMode.java index 63d5eacee..a6105e106 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureCenterStageControlMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureCenterStageControlMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureColorSpace.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureColorSpace.java index e3bedc89e..ff826c2d3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureColorSpace.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureColorSpace.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureConnection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureConnection.java index 6b55ce269..e0595af2c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureConnection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureConnection.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizer.java index d1c9a85ba..84f85935f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegate.java index a2baa4932..c1f62e6c6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegateAdapter.java index 4b3d33d3c..3262b07a4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDataOutputSynchronizerDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutput.java index 48b5c2555..5c72d92ac 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegate.java index a198a87a7..717bdce1f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegateAdapter.java index 3b01ccd72..915ada557 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDepthDataOutputDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevice.java index 3f45aab23..01f920d98 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevice.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -488,6 +490,16 @@ protected AVCaptureDevice() {} */ @Property(selector = "isPortraitEffectActive") public native boolean isPortraitEffectActive(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isContinuityCamera") + public native boolean isContinuityCamera(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "companionDeskViewCamera") + public native AVCaptureDevice getCompanionDeskViewCamera(); /** * @since Available in iOS 15.0 and later. */ @@ -498,6 +510,21 @@ protected AVCaptureDevice() {} */ @Property(selector = "activeMicrophoneMode") public static native AVCaptureMicrophoneMode getActiveMicrophoneMode(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isStudioLightEnabled") + public static native boolean isStudioLightEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setStudioLightEnabled:") + public static native void setStudioLightEnabled(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isStudioLightActive") + public native boolean isStudioLightActive(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceDiscoverySession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceDiscoverySession.java index 8f1af9b6d..3d425e1df 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceDiscoverySession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceDiscoverySession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceFormat.java index 71f17606e..00f8368e2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceFormat.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceFormat.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -92,6 +94,10 @@ protected AVCaptureDeviceFormat() {} public native boolean isGlobalToneMappingSupported(); @Property(selector = "isVideoHDRSupported") public native boolean isVideoHDRSupported(); + /** + * @deprecated Deprecated in iOS 16.0. Use supportedMaxPhotoDimensions instead. + */ + @Deprecated @Property(selector = "highResolutionStillImageDimensions") public native @ByVal CMVideoDimensions getHighResolutionStillImageDimensions(); /** @@ -113,14 +119,23 @@ protected AVCaptureDeviceFormat() {} public native NSArray getSupportedColorSpaces(); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use supportedVideoZoomFactorsForDepthDataDelivery */ + @Deprecated @Property(selector = "videoMinZoomFactorForDepthDataDelivery") public native @MachineSizedFloat double getVideoMinZoomFactorForDepthDataDelivery(); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use supportedVideoZoomFactorsForDepthDataDelivery */ + @Deprecated @Property(selector = "videoMaxZoomFactorForDepthDataDelivery") public native @MachineSizedFloat double getVideoMaxZoomFactorForDepthDataDelivery(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "supportedVideoZoomFactorsForDepthDataDelivery") + public native NSArray getSupportedVideoZoomFactorsForDepthDataDelivery(); /** * @since Available in iOS 11.0 and later. */ @@ -131,6 +146,16 @@ protected AVCaptureDeviceFormat() {} */ @Property(selector = "unsupportedCaptureOutputClasses") public native NSArray getUnsupportedCaptureOutputClasses(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "supportedMaxPhotoDimensions") + public native NSArray getSupportedMaxPhotoDimensions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "secondaryNativeResolutionZoomFactors") + public native NSArray getSecondaryNativeResolutionZoomFactors(); /** * @since Available in iOS 12.0 and later. */ @@ -176,6 +201,16 @@ protected AVCaptureDeviceFormat() {} */ @Property(selector = "videoFrameRateRangeForPortraitEffect") public native AVFrameRateRange getVideoFrameRateRangeForPortraitEffect(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isStudioLightSupported") + public native boolean isStudioLightSupported(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "videoFrameRateRangeForStudioLight") + public native AVFrameRateRange getVideoFrameRateRangeForStudioLight(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceInput.java index 3852b5420..f7a534806 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceInput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevicePosition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevicePosition.java index 117ad3977..f864f7fda 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevicePosition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDevicePosition.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceType.java index 1275bd561..0b6acfd78 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureDeviceType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureExposureMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureExposureMode.java index 5d2418d32..76dbbad06 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureExposureMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureExposureMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutput.java index b389c82af..34f6a0d82 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegate.java index 86fe69a03..abd2f8adc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegateAdapter.java index 22e0c6067..6b52beb3a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFileOutputRecordingDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFlashMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFlashMode.java index 2cad2c0ec..f15927eb2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFlashMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFlashMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFocusMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFocusMode.java index 748005759..2676aa7f8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFocusMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureFocusMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInput.java index 128831d8c..ffb6a09ea 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInputPort.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInputPort.java index 55902db01..2ee93be23 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInputPort.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureInputPort.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureLensStabilizationStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureLensStabilizationStatus.java index 2e54378de..ea007eeea 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureLensStabilizationStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureLensStabilizationStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureManualExposureBracketedStillImageSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureManualExposureBracketedStillImageSettings.java index d1b56645a..c7c88f593 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureManualExposureBracketedStillImageSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureManualExposureBracketedStillImageSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataInput.java index d8f23019a..25c54e712 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataInput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutput.java index 41d252902..46ec4e74b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegate.java index b9292b619..6aa7e1535 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegateAdapter.java index 6b4a59f3f..700210ab5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMetadataOutputObjectsDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMicrophoneMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMicrophoneMode.java index 669ecbc1f..f4d95e893 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMicrophoneMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMicrophoneMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMovieFileOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMovieFileOutput.java index d80f1eb03..cab9f2c96 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMovieFileOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMovieFileOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMultiCamSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMultiCamSession.java index b0bea4495..012637598 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMultiCamSession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureMultiCamSession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutput.java index db1c266f3..ca5841fcc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutputDataDroppedReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutputDataDroppedReason.java index f0c769bb4..4a4767872 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutputDataDroppedReason.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureOutputDataDroppedReason.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhoto.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhoto.java index bbe738fbf..64dc10c76 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhoto.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhoto.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoBracketSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoBracketSettings.java index 2b5f492f2..24b3c75e1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoBracketSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoBracketSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegate.java index cffc62d6b..188153c0a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegateAdapter.java index b7def3893..0a4e28a5f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoCaptureDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizer.java index 3f2871311..f7d014abf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizerAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizerAdapter.java index 63c7b4374..33b7bac79 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizerAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoFileDataRepresentationCustomizerAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java index fa4d142ae..c8c10efc0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -169,8 +171,6 @@ */ @Property(selector = "isCameraCalibrationDataDeliverySupported") public native boolean isCameraCalibrationDataDeliverySupported(); - @Property(selector = "supportedFlashModes") - public native NSArray getSupportedFlashModes(); /** * @since Available in iOS 12.0 and later. */ @@ -182,10 +182,30 @@ public native AVCapturePhotoSettings getPhotoSettingsForSceneMonitoring(); @Property(selector = "setPhotoSettingsForSceneMonitoring:") public native void setPhotoSettingsForSceneMonitoring(AVCapturePhotoSettings v); + /** + * @since Available in iOS 10.0 and later. + * @deprecated Deprecated in iOS 16.0. Use maxPhotoDimensions instead. + */ + @Deprecated @Property(selector = "isHighResolutionCaptureEnabled") public native boolean isHighResolutionCaptureEnabled(); + /** + * @since Available in iOS 10.0 and later. + * @deprecated Deprecated in iOS 16.0. Use maxPhotoDimensions instead. + */ + @Deprecated @Property(selector = "setHighResolutionCaptureEnabled:") public native void setHighResolutionCaptureEnabled(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "maxPhotoDimensions") + public native @ByVal CMVideoDimensions getMaxPhotoDimensions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMaxPhotoDimensions:") + public native void setMaxPhotoDimensions(@ByVal CMVideoDimensions v); @Property(selector = "maxBracketedCapturePhotoCount") public native @MachineSizedUInt long getMaxBracketedCapturePhotoCount(); @Property(selector = "isLensStabilizationDuringBracketedCaptureSupported") @@ -200,6 +220,16 @@ public native boolean isLivePhotoCaptureSuspended(); @Property(selector = "setLivePhotoCaptureSuspended:") public native void setLivePhotoCaptureSuspended(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preservesLivePhotoCaptureSuspendedOnSessionStop") + public native boolean preservesLivePhotoCaptureSuspendedOnSessionStop(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreservesLivePhotoCaptureSuspendedOnSessionStop:") + public native void setPreservesLivePhotoCaptureSuspendedOnSessionStop(boolean v); @Property(selector = "isLivePhotoAutoTrimmingEnabled") public native boolean isLivePhotoAutoTrimmingEnabled(); @Property(selector = "setLivePhotoAutoTrimmingEnabled:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoQualityPrioritization.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoQualityPrioritization.java index 85b2201da..adfa99a4d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoQualityPrioritization.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoQualityPrioritization.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java index 5598a6692..634ae940b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -83,10 +85,6 @@ public AVCapturePhotoSettings() {} */ @Property(selector = "rawFileType") public native String getRawFileType(); - @Property(selector = "flashMode") - public native AVCaptureFlashMode getFlashMode(); - @Property(selector = "setFlashMode:") - public native void setFlashMode(AVCaptureFlashMode v); /** * @since Available in iOS 12.0 and later. */ @@ -169,10 +167,30 @@ public AVCapturePhotoSettings() {} @Deprecated @Property(selector = "setDualCameraDualPhotoDeliveryEnabled:") public native void setDualCameraDualPhotoDeliveryEnabled(boolean v); + /** + * @since Available in iOS 10.0 and later. + * @deprecated Deprecated in iOS 16.0. Use maxPhotoDimensions instead. + */ + @Deprecated @Property(selector = "isHighResolutionPhotoEnabled") public native boolean isHighResolutionPhotoEnabled(); + /** + * @since Available in iOS 10.0 and later. + * @deprecated Deprecated in iOS 16.0. Use maxPhotoDimensions instead. + */ + @Deprecated @Property(selector = "setHighResolutionPhotoEnabled:") public native void setHighResolutionPhotoEnabled(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "maxPhotoDimensions") + public native @ByVal CMVideoDimensions getMaxPhotoDimensions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMaxPhotoDimensions:") + public native void setMaxPhotoDimensions(@ByVal CMVideoDimensions v); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions.java index b10608244..728c3d5c3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceSwitchingBehavior.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceSwitchingBehavior.java index 81cd9ccda..dcdb2792e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceSwitchingBehavior.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePrimaryConstituentDeviceSwitchingBehavior.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureResolvedPhotoSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureResolvedPhotoSettings.java index 17169f55e..426263473 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureResolvedPhotoSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureResolvedPhotoSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSession.java index cdba9d477..ab028f665 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -145,6 +147,21 @@ public AVCaptureSession() {} public native boolean isRunning(); @Property(selector = "isInterrupted") public native boolean isInterrupted(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isMultitaskingCameraAccessSupported") + public native boolean isMultitaskingCameraAccessSupported(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isMultitaskingCameraAccessEnabled") + public native boolean isMultitaskingCameraAccessEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMultitaskingCameraAccessEnabled:") + public native void setMultitaskingCameraAccessEnabled(boolean v); @Property(selector = "usesApplicationAudioSession") public native boolean usesApplicationAudioSession(); @Property(selector = "setUsesApplicationAudioSession:") @@ -174,6 +191,11 @@ public AVCaptureSession() {} @Deprecated @Property(selector = "masterClock") public native CMClock getMasterClock(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "hardwareCost") + public native float getHardwareCost(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionInterruptionReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionInterruptionReason.java index 5195ddfee..a9f31d9ba 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionInterruptionReason.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionInterruptionReason.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionPreset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionPreset.java index 1adc51f51..ed11ef8f5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionPreset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSessionPreset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureStillImageOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureStillImageOutput.java index 3f7b1f007..aef577e9f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureStillImageOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureStillImageOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedData.java index 0a84dc1c3..cde308800 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDataCollection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDataCollection.java index 65eb47aab..439c81fb3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDataCollection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDataCollection.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDepthData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDepthData.java index d176b5134..3b09ee96b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDepthData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedDepthData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedMetadataObjectData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedMetadataObjectData.java index aa3d0198d..f9d8ab2b7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedMetadataObjectData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedMetadataObjectData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedSampleBufferData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedSampleBufferData.java index 4527ccff8..8fb10fded 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedSampleBufferData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSynchronizedSampleBufferData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureFactors.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureFactors.java index 9c4449e1a..819ced0a7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureFactors.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureFactors.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureLevel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureLevel.java index bd5cbe993..14144d5e6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureLevel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureLevel.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureState.java index ac5d1a784..208810f4e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemPressureState.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemUserInterface.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemUserInterface.java index 624ffa217..aeb2734da 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemUserInterface.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureSystemUserInterface.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureTorchMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureTorchMode.java index 8bfb72e70..9d791c6f5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureTorchMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureTorchMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutput.java index dcf0b0147..567435e0d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegate.java index 9c982d175..65f9799c1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegateAdapter.java index 33c6efe11..bfe635057 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoDataOutputSampleBufferDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoOrientation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoOrientation.java index 66647c407..874512bff 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoOrientation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoOrientation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoPreviewLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoPreviewLayer.java index afdeae620..bf1b15259 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoPreviewLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoPreviewLayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoStabilizationMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoStabilizationMode.java index 77c7427d8..f597f3407 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoStabilizationMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureVideoStabilizationMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceChromaticityValues.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceChromaticityValues.java index 8086399f9..33a8484e6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceChromaticityValues.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceChromaticityValues.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceGains.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceGains.java index 424930f5c..8b5549d20 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceGains.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceGains.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceMode.java index 290106f5e..85d258dfb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceTemperatureAndTintValues.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceTemperatureAndTintValues.java index 0a4dbc111..7df48654e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceTemperatureAndTintValues.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCaptureWhiteBalanceTemperatureAndTintValues.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVComposition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVComposition.java index 06895b020..dde42a09d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVComposition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVComposition.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -91,5 +93,15 @@ public AVComposition() {} */ @Method(selector = "loadTracksWithMediaCharacteristic:completionHandler:") public native void loadTracksWithMediaCharacteristic(String mediaCharacteristic, @Block VoidBlock2, NSError> completionHandler); + @Method(selector = "metadataForFormat:") + public native NSArray getMetadata(AVMetadataFormat format); + @Method(selector = "chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:") + public native NSArray getChapterMetadataGroupsContainingItemsWithCommonKeys(NSLocale locale, @org.robovm.rt.bro.annotation.Marshaler(AVMetadataKey.AsListMarshaler.class) List commonKeys); + @Method(selector = "chapterMetadataGroupsBestMatchingPreferredLanguages:") + public native NSArray getChapterMetadataGroupsBestMatchingPreferredLanguages(@org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List preferredLanguages); + @Method(selector = "mediaSelectionGroupForMediaCharacteristic:") + public native AVMediaSelectionGroup getMediaSelectionGroup(AVMediaCharacteristic mediaCharacteristic); + @Method(selector = "unusedTrackID") + public native int getUnusedTrackID(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrack.java index 447a08bf2..006f79b29 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -69,5 +71,13 @@ protected AVCompositionTrack() {} /**/ @Method(selector = "segmentForTrackTime:") public native AVCompositionTrackSegment getSegment(@ByVal CMTime trackTime); + @Method(selector = "hasMediaCharacteristic:") + public native boolean hasMediaCharacteristic(AVMediaCharacteristic mediaCharacteristic); + @Method(selector = "samplePresentationTimeForTrackTime:") + public native @ByVal CMTime getSamplePresentationTime(@ByVal CMTime trackTime); + @Method(selector = "metadataForFormat:") + public native NSArray getMetadataForFormat(AVMetadataFormat format); + @Method(selector = "associatedTracksOfType:") + public native NSArray getAssociatedTracksOfType(AVTrackAssociationType trackAssociationType); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackFormatDescriptionReplacement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackFormatDescriptionReplacement.java index f39fbe730..e8a586746 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackFormatDescriptionReplacement.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackFormatDescriptionReplacement.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackSegment.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackSegment.java index a5ef77506..61ede7f5f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackSegment.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCompositionTrackSegment.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKey.java index 5c4752afc..a44d28e09 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKey.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKey.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRecipient.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRecipient.java index 8c90f49c1..b7ebd4617 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRecipient.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRecipient.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequest.java index 7915a768f..1e61ce4f0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequestStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequestStatus.java index 363c8ddff..9a01fc3d2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequestStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyRequestStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyResponse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyResponse.java index 82cf3d3c6..8ed6f564a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyResponse.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeyResponse.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySession.java index 7a341c773..585b21b80 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySession.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegate.java index 6dc3a4620..36cf7d029 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegateAdapter.java index 58d3cdf28..c2d42f24a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySessionDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySpecifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySpecifier.java index 62f4ec0bd..6558a9127 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySpecifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVContentKeySpecifier.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackParticipant.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackParticipant.java index 553190b3d..625f19739 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackParticipant.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackParticipant.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspension.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspension.java index 07509d3ef..157392022 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspension.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspension.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -60,7 +62,7 @@ protected AVCoordinatedPlaybackSuspension() {} /**/ /**/ @Property(selector = "reason") - public native String getReason(); + public native AVCoordinatedPlaybackSuspensionReason getReason(); @Property(selector = "beginDate") public native NSDate getBeginDate(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspensionReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspensionReason.java new file mode 100644 index 000000000..a5f547a2e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCoordinatedPlaybackSuspensionReason.java @@ -0,0 +1,183 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("AVFoundation") @StronglyLinked/**/ +@Marshaler(/**/AVCoordinatedPlaybackSuspensionReason/**/.Marshaler.class) +/**/public/**/ class /**/AVCoordinatedPlaybackSuspensionReason/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/AVCoordinatedPlaybackSuspensionReason/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static AVCoordinatedPlaybackSuspensionReason toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return AVCoordinatedPlaybackSuspensionReason.valueOf(o); + } + @MarshalsPointer + public static long toNative(AVCoordinatedPlaybackSuspensionReason o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(AVCoordinatedPlaybackSuspensionReason.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (AVCoordinatedPlaybackSuspensionReason o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVCoordinatedPlaybackSuspensionReason AudioSessionInterrupted = new AVCoordinatedPlaybackSuspensionReason("AudioSessionInterrupted"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVCoordinatedPlaybackSuspensionReason StallRecovery = new AVCoordinatedPlaybackSuspensionReason("StallRecovery"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVCoordinatedPlaybackSuspensionReason PlayingInterstitial = new AVCoordinatedPlaybackSuspensionReason("PlayingInterstitial"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVCoordinatedPlaybackSuspensionReason CoordinatedPlaybackNotPossible = new AVCoordinatedPlaybackSuspensionReason("CoordinatedPlaybackNotPossible"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVCoordinatedPlaybackSuspensionReason UserActionRequired = new AVCoordinatedPlaybackSuspensionReason("UserActionRequired"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVCoordinatedPlaybackSuspensionReason UserIsChangingCurrentTime = new AVCoordinatedPlaybackSuspensionReason("UserIsChangingCurrentTime"); + /**/ + + private static /**/AVCoordinatedPlaybackSuspensionReason/**/[] values = new /**/AVCoordinatedPlaybackSuspensionReason/**/[] {/**/AudioSessionInterrupted, StallRecovery, PlayingInterstitial, CoordinatedPlaybackNotPossible, UserActionRequired, UserIsChangingCurrentTime/**/}; + + /**/AVCoordinatedPlaybackSuspensionReason/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/AVCoordinatedPlaybackSuspensionReason/**/ valueOf(/**/NSString/**/ value) { + for (/**/AVCoordinatedPlaybackSuspensionReason/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/AVCoordinatedPlaybackSuspensionReason/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AVFoundation") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonAudioSessionInterrupted", optional=true) + public static native NSString AudioSessionInterrupted(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonStallRecovery", optional=true) + public static native NSString StallRecovery(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonPlayingInterstitial", optional=true) + public static native NSString PlayingInterstitial(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonCoordinatedPlaybackNotPossible", optional=true) + public static native NSString CoordinatedPlaybackNotPossible(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonUserActionRequired", optional=true) + public static native NSString UserActionRequired(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonUserIsChangingCurrentTime", optional=true) + public static native NSString UserIsChangingCurrentTime(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDateRangeMetadataGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDateRangeMetadataGroup.java index a46f3b5bc..ab242dc7e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDateRangeMetadataGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDateRangeMetadataGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinator.java index 3c3a7f036..642dce863 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinator.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinator.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorBufferingCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorBufferingCommand.java index be4ece21d..0ab1118a0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorBufferingCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorBufferingCommand.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPauseCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPauseCommand.java index c22e36c2d..9a96a3c19 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPauseCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPauseCommand.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlayCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlayCommand.java index baee880b1..aefcdc003 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlayCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlayCommand.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlaybackControlCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlaybackControlCommand.java index a8d5795ed..31b902a77 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlaybackControlCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorPlaybackControlCommand.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorRateChangeOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorRateChangeOptions.java index 0f1e4e8a9..2cb5a3343 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorRateChangeOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorRateChangeOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekCommand.java index f20227547..ca1b7a5ec 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekCommand.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekOptions.java index 1399dd05e..16335c5ea 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDelegatingPlaybackCoordinatorSeekOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthData.java index c4cecb768..b5fc085f5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataAccuracy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataAccuracy.java index 4ad054284..bcde5264f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataAccuracy.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataAccuracy.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataQuality.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataQuality.java index c2f1673b8..99b2688d7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataQuality.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVDepthDataQuality.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVEdgeWidths.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVEdgeWidths.java index d89caa963..e3cf01a91 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVEdgeWidths.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVEdgeWidths.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVError.java index 80a35da3d..1b0173ecc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVError.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorCode.java index 9d86fd6c9..db98ae05d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorCode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -191,7 +193,19 @@ public enum /**/AVErrorCode/**/ implements NSErrorCode { /** * @since Available in iOS 14.6 and later. */ - ContentKeyRequestCancelled(-11879L); + ContentKeyRequestCancelled(-11879L), + /** + * @since Available in iOS 16.0 and later. + */ + InvalidSampleCursor(-11880L), + /** + * @since Available in iOS 16.0 and later. + */ + FailedToLoadSampleData(-11881L), + /** + * @since Available in iOS 16.0 and later. + */ + AirPlayReceiverTemporarilyUnavailable(-11882L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorUserInfoKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorUserInfoKey.java index fddcb944b..6d1421560 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorUserInfoKey.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVErrorUserInfoKey.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedNoteOnEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedNoteOnEvent.java new file mode 100644 index 000000000..75e44afed --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedNoteOnEvent.java @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVExtendedNoteOnEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVExtendedNoteOnEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVExtendedNoteOnEvent.class); }/**/ + /**//**/ + /**/ + public AVExtendedNoteOnEvent() {} + protected AVExtendedNoteOnEvent(Handle h, long handle) { super(h, handle); } + protected AVExtendedNoteOnEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithMIDINote:velocity:groupID:duration:") + public AVExtendedNoteOnEvent(float midiNote, float velocity, int groupID, double duration) { super((SkipInit) null); initObject(init(midiNote, velocity, groupID, duration)); } + @Method(selector = "initWithMIDINote:velocity:instrumentID:groupID:duration:") + public AVExtendedNoteOnEvent(float midiNote, float velocity, int instrumentID, int groupID, double duration) { super((SkipInit) null); initObject(init(midiNote, velocity, instrumentID, groupID, duration)); } + /**/ + /**/ + @Property(selector = "midiNote") + public native float getMidiNote(); + @Property(selector = "setMidiNote:") + public native void setMidiNote(float v); + @Property(selector = "velocity") + public native float getVelocity(); + @Property(selector = "setVelocity:") + public native void setVelocity(float v); + @Property(selector = "instrumentID") + public native int getInstrumentID(); + @Property(selector = "setInstrumentID:") + public native void setInstrumentID(int v); + @Property(selector = "groupID") + public native int getGroupID(); + @Property(selector = "setGroupID:") + public native void setGroupID(int v); + @Property(selector = "duration") + public native double getDuration(); + @Property(selector = "setDuration:") + public native void setDuration(double v); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVExtendedNoteOnEventDefaultInstrument", optional=true) + public static native int DefaultInstrument(); + + @Method(selector = "initWithMIDINote:velocity:groupID:duration:") + protected native @Pointer long init(float midiNote, float velocity, int groupID, double duration); + @Method(selector = "initWithMIDINote:velocity:instrumentID:groupID:duration:") + protected native @Pointer long init(float midiNote, float velocity, int instrumentID, int groupID, double duration); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedTempoEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedTempoEvent.java new file mode 100644 index 000000000..512e68285 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVExtendedTempoEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVExtendedTempoEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVExtendedTempoEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVExtendedTempoEvent.class); }/**/ + /**//**/ + /**/ + public AVExtendedTempoEvent() {} + protected AVExtendedTempoEvent(Handle h, long handle) { super(h, handle); } + protected AVExtendedTempoEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithTempo:") + public AVExtendedTempoEvent(double tempo) { super((SkipInit) null); initObject(init(tempo)); } + /**/ + /**/ + @Property(selector = "tempo") + public native double getTempo(); + @Property(selector = "setTempo:") + public native void setTempo(double v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithTempo:") + protected native @Pointer long init(double tempo); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFileType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFileType.java index 98749570a..0e9b00e6e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFileType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFileType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFoundation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFoundation.java index 29431bf3b..8de194a33 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFoundation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFoundation.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -55,113 +57,8 @@ /**//**/ /**//**/ /**/ - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVAudioSessionSpatialAudioEnabledKey", optional=true) - public static native String Value__AVAudioSessionSpatialAudioEnabledKey(); @GlobalValue(symbol="AVCoreAnimationBeginTimeAtZero", optional=true) public static native double CoreAnimationBeginTimeAtZero(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVVideoRangeSDR", optional=true) - public static native String Value__AVVideoRangeSDR(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVVideoRangeHLG", optional=true) - public static native String Value__AVVideoRangeHLG(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVVideoRangePQ", optional=true) - public static native String Value__AVVideoRangePQ(); - /** - * @since Available in iOS 13.0 and later. - */ - @GlobalValue(symbol="AVMovieShouldSupportAliasDataReferencesKey", optional=true) - public static native String Value__AVMovieShouldSupportAliasDataReferencesKey(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerRateDidChangeReasonKey", optional=true) - public static native String Value__AVPlayerRateDidChangeReasonKey(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerRateDidChangeOriginatingParticipantKey", optional=true) - public static native String Value__AVPlayerRateDidChangeOriginatingParticipantKey(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerRateDidChangeReasonSetRateCalled", optional=true) - public static native String Value__AVPlayerRateDidChangeReasonSetRateCalled(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerRateDidChangeReasonSetRateFailed", optional=true) - public static native String Value__AVPlayerRateDidChangeReasonSetRateFailed(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerRateDidChangeReasonAudioSessionInterrupted", optional=true) - public static native String Value__AVPlayerRateDidChangeReasonAudioSessionInterrupted(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerRateDidChangeReasonAppBackgrounded", optional=true) - public static native String Value__AVPlayerRateDidChangeReasonAppBackgrounded(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonAudioSessionInterrupted", optional=true) - public static native String Value__AVCoordinatedPlaybackSuspensionReasonAudioSessionInterrupted(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonStallRecovery", optional=true) - public static native String Value__AVCoordinatedPlaybackSuspensionReasonStallRecovery(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonPlayingInterstitial", optional=true) - public static native String Value__AVCoordinatedPlaybackSuspensionReasonPlayingInterstitial(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonCoordinatedPlaybackNotPossible", optional=true) - public static native String Value__AVCoordinatedPlaybackSuspensionReasonCoordinatedPlaybackNotPossible(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonUserActionRequired", optional=true) - public static native String Value__AVCoordinatedPlaybackSuspensionReasonUserActionRequired(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVCoordinatedPlaybackSuspensionReasonUserIsChangingCurrentTime", optional=true) - public static native String Value__AVCoordinatedPlaybackSuspensionReasonUserIsChangingCurrentTime(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlaybackCoordinatorOtherParticipantsDidChangeNotification", optional=true) - public static native String Value__AVPlaybackCoordinatorOtherParticipantsDidChangeNotification(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlaybackCoordinatorSuspensionReasonsDidChangeNotification", optional=true) - public static native String Value__AVPlaybackCoordinatorSuspensionReasonsDidChangeNotification(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVPlayerItemTimeJumpedOriginatingParticipantKey", optional=true) - public static native String Value__AVPlayerItemTimeJumpedOriginatingParticipantKey(); - /** - * @since Available in iOS 15.0 and later. - */ - @GlobalValue(symbol="AVSampleBufferAudioRendererOutputConfigurationDidChangeNotification", optional=true) - public static native String Value__AVSampleBufferAudioRendererOutputConfigurationDidChangeNotification(); @Bridge(symbol="AVMakeRectWithAspectRatioInsideRect", optional=true) public static native @ByVal CGRect createRectWithAspectRatioInsideRect(@ByVal CGSize aspectRatio, @ByVal CGRect boundingRect); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentMinding.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentMinding.java index fd22b1db8..98f248268 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentMinding.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentMinding.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAsset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAsset.java index 14607162a..fd00037bd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAsset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAsset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -81,6 +83,10 @@ protected AVFragmentedAsset() {} public static native @org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List getAudiovisualMIMETypes(); @Method(selector = "isPlayableExtendedMIMEType:") public static native boolean isPlayableExtendedMIMEType(String extendedMIMEType); + /** + * @deprecated Use loadTrackWithTrackID:completionHandler: + */ + @Deprecated @Method(selector = "trackWithTrackID:") public native AVFragmentedAssetTrack getTrack(int trackID); /** @@ -88,6 +94,10 @@ protected AVFragmentedAsset() {} */ @Method(selector = "loadTrackWithTrackID:completionHandler:") public native void loadTrack(int trackID, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaType:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaType:") public native NSArray getTracksForMediaType(String mediaType); /** @@ -95,6 +105,10 @@ protected AVFragmentedAsset() {} */ @Method(selector = "loadTracksWithMediaType:completionHandler:") public native void loadTracksWithMediaType(String mediaType, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaCharacteristic:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaCharacteristic:") public native NSArray getTracksForMediaCharacteristic(String mediaCharacteristic); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetMinder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetMinder.java index bc0f1f027..705f55c8f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetMinder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetMinder.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetTrack.java index 45d22ec00..1276c5218 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedAssetTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovie.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovie.java index 3602c06e6..ca7f653cd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovie.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovie.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -99,6 +101,10 @@ public static class Notifications { @Method(selector = "movieTypes") public static native NSArray movieTypes(); + /** + * @deprecated Use loadTrackWithTrackID:completionHandler: + */ + @Deprecated @Method(selector = "trackWithTrackID:") public native AVFragmentedMovieTrack getTrack(int trackID); /** @@ -106,6 +112,10 @@ public static class Notifications { */ @Method(selector = "loadTrackWithTrackID:completionHandler:") public native void loadTrack(int trackID, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaType:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaType:") public native NSArray getTracksWithType(AVMediaType mediaType); /** @@ -113,6 +123,10 @@ public static class Notifications { */ @Method(selector = "loadTracksWithMediaType:completionHandler:") public native void loadTracksWithMediaType(String mediaType, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated loadTracksWithMediaCharacteristic:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaCharacteristic:") public native NSArray getTracksWithCharacteristic(AVMediaCharacteristic mediaCharacteristic); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieMinder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieMinder.java index 4548e27c6..95053caca 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieMinder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieMinder.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieTrack.java index 033eae740..9fe2adcf8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFragmentedMovieTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFrameRateRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFrameRateRange.java index b28e6dd03..f4c1a3bed 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFrameRateRange.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVFrameRateRange.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVKeyValueStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVKeyValueStatus.java index fb4d05620..3290e19cb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVKeyValueStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVKeyValueStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVLayerVideoGravity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVLayerVideoGravity.java index 52fc5c4b9..8c558d213 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVLayerVideoGravity.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVLayerVideoGravity.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelEvent.java new file mode 100644 index 000000000..521857a6f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelEvent.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIChannelEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVMIDIChannelEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIChannelEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIChannelEvent() {} + protected AVMIDIChannelEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIChannelEvent(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "channel") + public native int getChannel(); + @Property(selector = "setChannel:") + public native void setChannel(int v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelPressureEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelPressureEvent.java new file mode 100644 index 000000000..13d9fb3bb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIChannelPressureEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIChannelPressureEvent/**/ + extends /**/AVMIDIChannelEvent/**/ + /**//**/ { + + /**/public static class AVMIDIChannelPressureEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIChannelPressureEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIChannelPressureEvent() {} + protected AVMIDIChannelPressureEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIChannelPressureEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithChannel:pressure:") + public AVMIDIChannelPressureEvent(int channel, int pressure) { super((SkipInit) null); initObject(init(channel, pressure)); } + /**/ + /**/ + @Property(selector = "pressure") + public native int getPressure(); + @Property(selector = "setPressure:") + public native void setPressure(int v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithChannel:pressure:") + protected native @Pointer long init(int channel, int pressure); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeEvent.java new file mode 100644 index 000000000..921733c3a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIControlChangeEvent/**/ + extends /**/AVMIDIChannelEvent/**/ + /**//**/ { + + /**/public static class AVMIDIControlChangeEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIControlChangeEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIControlChangeEvent() {} + protected AVMIDIControlChangeEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIControlChangeEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithChannel:messageType:value:") + public AVMIDIControlChangeEvent(int channel, AVMIDIControlChangeMessageType messageType, int value) { super((SkipInit) null); initObject(init(channel, messageType, value)); } + /**/ + /**/ + @Property(selector = "messageType") + public native AVMIDIControlChangeMessageType getMessageType(); + @Property(selector = "value") + public native int getValue(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithChannel:messageType:value:") + protected native @Pointer long init(int channel, AVMIDIControlChangeMessageType messageType, int value); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeMessageType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeMessageType.java new file mode 100644 index 000000000..2db570a2a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIControlChangeMessageType.java @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/AVMIDIControlChangeMessageType/**/ implements ValuedEnum { + /**/ + BankSelect(0L), + ModWheel(1L), + Breath(2L), + Foot(4L), + PortamentoTime(5L), + DataEntry(6L), + Volume(7L), + Balance(8L), + Pan(10L), + Expression(11L), + Sustain(64L), + Portamento(65L), + Sostenuto(66L), + Soft(67L), + LegatoPedal(68L), + Hold2Pedal(69L), + FilterResonance(71L), + ReleaseTime(72L), + AttackTime(73L), + Brightness(74L), + DecayTime(75L), + VibratoRate(76L), + VibratoDepth(77L), + VibratoDelay(78L), + ReverbLevel(91L), + ChorusLevel(93L), + RPN_LSB(100L), + RPN_MSB(101L), + AllSoundOff(120L), + ResetAllControllers(121L), + AllNotesOff(123L), + OmniModeOff(124L), + OmniModeOn(125L), + MonoModeOn(126L), + MonoModeOff(127L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/AVMIDIControlChangeMessageType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/AVMIDIControlChangeMessageType/**/ valueOf(long n) { + for (/**/AVMIDIControlChangeMessageType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/AVMIDIControlChangeMessageType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEvent.java new file mode 100644 index 000000000..a7c29bd38 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEvent.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIMetaEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVMIDIMetaEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIMetaEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIMetaEvent() {} + protected AVMIDIMetaEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIMetaEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithType:data:") + public AVMIDIMetaEvent(AVMIDIMetaEventType type, NSData data) { super((SkipInit) null); initObject(init(type, data)); } + /**/ + /**/ + @Property(selector = "type") + public native AVMIDIMetaEventType getType(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithType:data:") + protected native @Pointer long init(AVMIDIMetaEventType type, NSData data); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEventType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEventType.java new file mode 100644 index 000000000..20df3a0b9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIMetaEventType.java @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/AVMIDIMetaEventType/**/ implements ValuedEnum { + /**/ + SequenceNumber(0L), + Text(1L), + Copyright(2L), + TrackName(3L), + Instrument(4L), + Lyric(5L), + Marker(6L), + CuePoint(7L), + MidiChannel(32L), + MidiPort(33L), + EndOfTrack(47L), + Tempo(81L), + SmpteOffset(84L), + TimeSignature(88L), + KeySignature(89L), + ProprietaryEvent(127L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/AVMIDIMetaEventType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/AVMIDIMetaEventType/**/ valueOf(long n) { + for (/**/AVMIDIMetaEventType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/AVMIDIMetaEventType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDINoteEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDINoteEvent.java new file mode 100644 index 000000000..c3e8e73bd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDINoteEvent.java @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDINoteEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVMIDINoteEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDINoteEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDINoteEvent() {} + protected AVMIDINoteEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDINoteEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithChannel:key:velocity:duration:") + public AVMIDINoteEvent(int channel, int keyNum, int velocity, double duration) { super((SkipInit) null); initObject(init(channel, keyNum, velocity, duration)); } + /**/ + /**/ + @Property(selector = "channel") + public native int getChannel(); + @Property(selector = "setChannel:") + public native void setChannel(int v); + @Property(selector = "key") + public native int getKey(); + @Property(selector = "setKey:") + public native void setKey(int v); + @Property(selector = "velocity") + public native int getVelocity(); + @Property(selector = "setVelocity:") + public native void setVelocity(int v); + @Property(selector = "duration") + public native double getDuration(); + @Property(selector = "setDuration:") + public native void setDuration(double v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithChannel:key:velocity:duration:") + protected native @Pointer long init(int channel, int keyNum, int velocity, double duration); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPitchBendEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPitchBendEvent.java new file mode 100644 index 000000000..bb56c23ff --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPitchBendEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIPitchBendEvent/**/ + extends /**/AVMIDIChannelEvent/**/ + /**//**/ { + + /**/public static class AVMIDIPitchBendEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIPitchBendEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIPitchBendEvent() {} + protected AVMIDIPitchBendEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIPitchBendEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithChannel:value:") + public AVMIDIPitchBendEvent(int channel, int value) { super((SkipInit) null); initObject(init(channel, value)); } + /**/ + /**/ + @Property(selector = "value") + public native int getValue(); + @Property(selector = "setValue:") + public native void setValue(int v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithChannel:value:") + protected native @Pointer long init(int channel, int value); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPlayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPlayer.java index 7e8009139..1baf4d553 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPlayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPlayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPolyPressureEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPolyPressureEvent.java new file mode 100644 index 000000000..c08886a71 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIPolyPressureEvent.java @@ -0,0 +1,80 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIPolyPressureEvent/**/ + extends /**/AVMIDIChannelEvent/**/ + /**//**/ { + + /**/public static class AVMIDIPolyPressureEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIPolyPressureEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIPolyPressureEvent() {} + protected AVMIDIPolyPressureEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIPolyPressureEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithChannel:key:pressure:") + public AVMIDIPolyPressureEvent(int channel, int key, int pressure) { super((SkipInit) null); initObject(init(channel, key, pressure)); } + /**/ + /**/ + @Property(selector = "key") + public native int getKey(); + @Property(selector = "setKey:") + public native void setKey(int v); + @Property(selector = "pressure") + public native int getPressure(); + @Property(selector = "setPressure:") + public native void setPressure(int v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithChannel:key:pressure:") + protected native @Pointer long init(int channel, int key, int pressure); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIProgramChangeEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIProgramChangeEvent.java new file mode 100644 index 000000000..9841212b0 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDIProgramChangeEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDIProgramChangeEvent/**/ + extends /**/AVMIDIChannelEvent/**/ + /**//**/ { + + /**/public static class AVMIDIProgramChangeEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDIProgramChangeEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDIProgramChangeEvent() {} + protected AVMIDIProgramChangeEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDIProgramChangeEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithChannel:programNumber:") + public AVMIDIProgramChangeEvent(int channel, int programNumber) { super((SkipInit) null); initObject(init(channel, programNumber)); } + /**/ + /**/ + @Property(selector = "programNumber") + public native int getProgramNumber(); + @Property(selector = "setProgramNumber:") + public native void setProgramNumber(int v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithChannel:programNumber:") + protected native @Pointer long init(int channel, int programNumber); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDISysexEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDISysexEvent.java new file mode 100644 index 000000000..8903a605d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMIDISysexEvent.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMIDISysexEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVMIDISysexEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMIDISysexEvent.class); }/**/ + /**//**/ + /**/ + public AVMIDISysexEvent() {} + protected AVMIDISysexEvent(Handle h, long handle) { super(h, handle); } + protected AVMIDISysexEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithData:") + public AVMIDISysexEvent(NSData data) { super((SkipInit) null); initObject(init(data)); } + /**/ + /**/ + @Property(selector = "sizeInBytes") + public native int getSizeInBytes(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithData:") + protected native @Pointer long init(NSData data); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaCharacteristic.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaCharacteristic.java index 371974ea6..1459924f1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaCharacteristic.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaCharacteristic.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaDataStorage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaDataStorage.java index a89b44b9b..11233652a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaDataStorage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaDataStorage.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelection.java index 43f4a4bb8..fdd3c09dd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelection.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionGroup.java index 325bf10cd..51ba7e42a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionOption.java index dc6548242..fe0424b14 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionOption.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaSelectionOption.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaType.java index 9654ee2b0..84632a15e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMediaType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataBodyObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataBodyObject.java index 629cea625..b919553bd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataBodyObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataBodyObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataCatBodyObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataCatBodyObject.java index 117040e0b..9aff69469 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataCatBodyObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataCatBodyObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataDogBodyObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataDogBodyObject.java index 21047ed4b..c32799f96 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataDogBodyObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataDogBodyObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataExtraAttributes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataExtraAttributes.java index 233287891..4a12ebdc7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataExtraAttributes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataExtraAttributes.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFaceObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFaceObject.java index f3a9115ce..60164baf8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFaceObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFaceObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFormat.java index 653890aeb..365da12d4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFormat.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataFormat.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataGroup.java index 05de7d984..c8ae27d5a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataHumanBodyObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataHumanBodyObject.java index 84318e629..99ec73eea 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataHumanBodyObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataHumanBodyObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifier3GPUserData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifier3GPUserData.java index be7554cf8..6e712ced1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifier3GPUserData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifier3GPUserData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierCommon.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierCommon.java index 589c0358e..2aa51a5a5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierCommon.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierCommon.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierID3Metadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierID3Metadata.java index 395838320..cb00e4406 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierID3Metadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierID3Metadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierISOUserData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierISOUserData.java index 746fb4d61..e15268f32 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierISOUserData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierISOUserData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierIcyMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierIcyMetadata.java index 47eb1a08c..d15036150 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierIcyMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierIcyMetadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeMetadata.java index bd0421c22..7aa9353fe 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeMetadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeUserData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeUserData.java index 58fe5a201..4dcff0922 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeUserData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifierQuickTimeUserData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifieriTunesMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifieriTunesMetadata.java index 6ea885a83..38d38cc2e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifieriTunesMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataIdentifieriTunesMetadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItem.java index 45670419f..da9f083dc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItem.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemFilter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemFilter.java index 254d21220..8bd3b34a5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemFilter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemFilter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemValueRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemValueRequest.java index ce71d19f8..9149af2dd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemValueRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataItemValueRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKey3GPUserData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKey3GPUserData.java index e7c3c8dce..2c4d4e254 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKey3GPUserData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKey3GPUserData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyCommon.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyCommon.java index fec5ba616..404fa0dd9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyCommon.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyCommon.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyID3Metadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyID3Metadata.java index b9a7ff726..df17cb63e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyID3Metadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyID3Metadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyISOUserData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyISOUserData.java index 9253b19be..a8b1526df 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyISOUserData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyISOUserData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyIcyMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyIcyMetadata.java index 49a416762..c1e1bc5f0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyIcyMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyIcyMetadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeMetadata.java index aa2e28881..17c350edb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeMetadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeUserData.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeUserData.java index 2772c9d9e..f22f55f95 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeUserData.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyQuickTimeUserData.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeySpace.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeySpace.java index 04bb500cc..e4139ec49 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeySpace.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeySpace.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyiTunesMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyiTunesMetadata.java index 50a149337..8d5d8b662 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyiTunesMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataKeyiTunesMetadata.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataMachineReadableCodeObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataMachineReadableCodeObject.java index 1ee27e789..73884c2a8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataMachineReadableCodeObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataMachineReadableCodeObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObject.java index cbffc31b0..a1730b32c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObjectType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObjectType.java index 8d5d7cacc..60531273a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObjectType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataObjectType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataSalientObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataSalientObject.java index d0e19774f..b1b8b9a78 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataSalientObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMetadataSalientObject.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovie.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovie.java index 8ac0c52c3..eb09bda36 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovie.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovie.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -95,6 +97,16 @@ public AVMovie() {} */ @GlobalValue(symbol="AVMovieReferenceRestrictionsKey", optional=true) public static native NSString referenceRestrictionsKey(); + @Library("AVFoundation") + public static class Keys { + static { Bro.bind(Keys.class); } + + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="AVMovieShouldSupportAliasDataReferencesKey", optional=true) + public static native NSString ShouldSupportAliasDataReferences(); + } @Method(selector = "initWithURL:options:") protected native @Pointer long init(NSURL URL, NSDictionary options); @@ -120,6 +132,10 @@ public AVMovie() {} */ @Method(selector = "isCompatibleWithFileType:") public native boolean isCompatibleWithFileType(String fileType); + /** + * @deprecated Use loadTrackWithTrackID:completionHandler: + */ + @Deprecated @Method(selector = "trackWithTrackID:") public native AVMovieTrack getTrack(int trackID); /** @@ -127,6 +143,10 @@ public AVMovie() {} */ @Method(selector = "loadTrackWithTrackID:completionHandler:") public native void loadTrack(int trackID, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaType:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaType:") public native NSArray getTracksWithType(AVMediaType mediaType); /** @@ -134,6 +154,10 @@ public AVMovie() {} */ @Method(selector = "loadTracksWithMediaType:completionHandler:") public native void loadTracksWithMediaType(String mediaType, @Block VoidBlock2, NSError> completionHandler); + /** + * @deprecated Use loadTracksWithMediaCharacteristic:completionHandler: + */ + @Deprecated @Method(selector = "tracksWithMediaCharacteristic:") public native NSArray getTracksWithCharacteristic(AVMediaCharacteristic mediaCharacteristic); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieTrack.java index 7d7c2923c..5e678ebfc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieWritingOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieWritingOptions.java index 20819e9ee..d4bd2d1c7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieWritingOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMovieWritingOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicEvent.java new file mode 100644 index 000000000..9c35bc8fb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicEvent.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMusicEvent/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVMusicEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMusicEvent.class); }/**/ + /**//**/ + /**/ + public AVMusicEvent() {} + protected AVMusicEvent(Handle h, long handle) { super(h, handle); } + protected AVMusicEvent(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicSequenceLoadOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicSequenceLoadOptions.java index 5d630bd5d..5ac2675af 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicSequenceLoadOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicSequenceLoadOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrack.java index 39791d3e8..bd441bc7c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -64,9 +66,9 @@ public AVMusicTrack() {} @Property(selector = "setDestinationAudioUnit:") public native void setDestinationAudioUnit(AVAudioUnit v); @Property(selector = "destinationMIDIEndpoint") - public native int getDestinationMIDIEndpoint(); + public native MIDIEndpoint getDestinationMIDIEndpoint(); @Property(selector = "setDestinationMIDIEndpoint:") - public native void setDestinationMIDIEndpoint(int v); + public native void setDestinationMIDIEndpoint(MIDIEndpoint v); @Property(selector = "loopRange") public native @ByVal AVBeatRange getLoopRange(); @Property(selector = "setLoopRange:") @@ -101,9 +103,26 @@ public AVMusicTrack() {} public native void setLengthInSeconds(double v); @Property(selector = "timeResolution") public native @MachineSizedUInt long getTimeResolution(); + @Property(selector = "usesAutomatedParameters") + public native boolean usesAutomatedParameters(); + @Property(selector = "setUsesAutomatedParameters:") + public native void setUsesAutomatedParameters(boolean v); /**/ /**//**/ /**/ - + @Method(selector = "addEvent:atBeat:") + public native void addEvent(AVMusicEvent event, double beat); + @Method(selector = "moveEventsInRange:byAmount:") + public native void moveEvents(@ByVal AVBeatRange range, double beatAmount); + @Method(selector = "clearEventsInRange:") + public native void clearEventsInRange(@ByVal AVBeatRange range); + @Method(selector = "cutEventsInRange:") + public native void cutEventsInRange(@ByVal AVBeatRange range); + @Method(selector = "copyEventsInRange:fromTrack:insertAtBeat:") + public native void copyEvents(@ByVal AVBeatRange range, AVMusicTrack sourceTrack, double insertStartBeat); + @Method(selector = "copyAndMergeEventsInRange:fromTrack:mergeAtBeat:") + public native void copyAndMergeEvents(@ByVal AVBeatRange range, AVMusicTrack sourceTrack, double mergeStartBeat); + @Method(selector = "enumerateEventsInRange:usingBlock:") + public native void enumerateEvents(@ByVal AVBeatRange range, @Block VoidBlock3 block); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrackLoopCount.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrackLoopCount.java index 426af1433..a8424b8e8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrackLoopCount.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicTrackLoopCount.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicUserEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicUserEvent.java new file mode 100644 index 000000000..0f0cfd9eb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMusicUserEvent.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVMusicUserEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVMusicUserEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVMusicUserEvent.class); }/**/ + /**//**/ + /**/ + public AVMusicUserEvent() {} + protected AVMusicUserEvent(Handle h, long handle) { super(h, handle); } + protected AVMusicUserEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithData:") + public AVMusicUserEvent(NSData data) { super((SkipInit) null); initObject(init(data)); } + /**/ + /**/ + @Property(selector = "sizeInBytes") + public native int getSizeInBytes(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithData:") + protected native @Pointer long init(NSData data); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAssetDownloadStorageManagementPolicy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAssetDownloadStorageManagementPolicy.java index 0439c9c07..612fdd5f7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAssetDownloadStorageManagementPolicy.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAssetDownloadStorageManagementPolicy.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMix.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMix.java index 1e87ab6e4..9958913b2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMix.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMix.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMixInputParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMixInputParameters.java index 4af155bc7..99eb92298 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMixInputParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableAudioMixInputParameters.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableComposition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableComposition.java index 64ae5f7de..fcc10cf82 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableComposition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableComposition.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -75,14 +77,27 @@ public AVMutableComposition() {} */ @Method(selector = "compositionWithURLAssetInitializationOptions:") protected static native @Pointer long create(AVURLAssetOptions urlAssetInitializationOptions); + /** + * @deprecated Use insertTimeRange:ofAsset:atTime:completionHandler: + */ + @Deprecated public boolean insertTimeRange(@ByVal CMTimeRange timeRange, AVAsset asset, @ByVal CMTime startTime) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = insertTimeRange(timeRange, asset, startTime, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } + /** + * @deprecated Use insertTimeRange:ofAsset:atTime:completionHandler: + */ + @Deprecated @Method(selector = "insertTimeRange:ofAsset:atTime:error:") private native boolean insertTimeRange(@ByVal CMTimeRange timeRange, AVAsset asset, @ByVal CMTime startTime, NSError.NSErrorPtr outError); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "insertTimeRange:ofAsset:atTime:completionHandler:") + public native void insertTimeRange(@ByVal CMTimeRange timeRange, AVAsset asset, @ByVal CMTime startTime, @Block VoidBlock1 completionHandler); @Method(selector = "insertEmptyTimeRange:") public native void insertEmptyTimeRange(@ByVal CMTimeRange timeRange); @Method(selector = "removeTimeRange:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableCompositionTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableCompositionTrack.java index 3f4ac30a8..0eb5026d7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableCompositionTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableCompositionTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableDateRangeMetadataGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableDateRangeMetadataGroup.java index 0538c8bf9..df63eed2a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableDateRangeMetadataGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableDateRangeMetadataGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMediaSelection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMediaSelection.java index bbe5c2bab..b64a1667a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMediaSelection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMediaSelection.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMetadataItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMetadataItem.java index e4d9cb99e..a93846a6a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMetadataItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMetadataItem.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovie.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovie.java index bf30fca95..166f71f86 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovie.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovie.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -160,5 +162,15 @@ public AVMutableMovie(AVMovie movie, NSDictionary options) throws N */ @Method(selector = "loadTracksWithMediaCharacteristic:completionHandler:") public native void loadTracksWithMediaCharacteristic(String mediaCharacteristic, @Block VoidBlock2, NSError> completionHandler); + @Method(selector = "metadataForFormat:") + public native NSArray getMetadata(AVMetadataFormat format); + @Method(selector = "chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:") + public native NSArray getChapterMetadataGroupsContainingItemsWithCommonKeys(NSLocale locale, @org.robovm.rt.bro.annotation.Marshaler(AVMetadataKey.AsListMarshaler.class) List commonKeys); + @Method(selector = "chapterMetadataGroupsBestMatchingPreferredLanguages:") + public native NSArray getChapterMetadataGroupsBestMatchingPreferredLanguages(@org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List preferredLanguages); + @Method(selector = "mediaSelectionGroupForMediaCharacteristic:") + public native AVMediaSelectionGroup getMediaSelectionGroup(AVMediaCharacteristic mediaCharacteristic); + @Method(selector = "unusedTrackID") + public native int getUnusedTrackID(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovieTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovieTrack.java index 0f823b4bc..5fe9f1a1b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovieTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableMovieTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -167,5 +169,15 @@ protected AVMutableMovieTrack() {} */ @Method(selector = "insertMediaTimeRange:intoTimeRange:") public native boolean insertMediaTimeRange(@ByVal CMTimeRange mediaTimeRange, @ByVal CMTimeRange trackTimeRange); + @Method(selector = "hasMediaCharacteristic:") + public native boolean hasMediaCharacteristic(AVMediaCharacteristic mediaCharacteristic); + @Method(selector = "segmentForTrackTime:") + public native AVAssetTrackSegment getSegment(@ByVal CMTime trackTime); + @Method(selector = "samplePresentationTimeForTrackTime:") + public native @ByVal CMTime getSamplePresentationTime(@ByVal CMTime trackTime); + @Method(selector = "metadataForFormat:") + public native NSArray getMetadataForFormat(AVMetadataFormat format); + @Method(selector = "associatedTracksOfType:") + public native NSArray getAssociatedTracksOfType(AVTrackAssociationType trackAssociationType); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableTimedMetadataGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableTimedMetadataGroup.java index d5285fe9e..a421700d6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableTimedMetadataGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableTimedMetadataGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoComposition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoComposition.java index a4f83aa8f..161130f10 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoComposition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoComposition.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -55,15 +57,35 @@ public AVMutableVideoComposition() {} protected AVMutableVideoComposition(Handle h, long handle) { super(h, handle); } protected AVMutableVideoComposition(SkipInit skipInit) { super(skipInit); } + /** + * @deprecated Use videoCompositionWithPropertiesOfAsset:completionHandler: + */ + @Deprecated public AVMutableVideoComposition(AVAsset asset) { super((Handle) null, create(asset)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVMutableVideoComposition(AVAsset asset, @Block VoidBlock2 completionHandler) { super((Handle) null, create0(asset, completionHandler)); retain(getHandle()); } /** * @since Available in iOS 13.0 and later. + * @deprecated Use videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler: */ + @Deprecated public AVMutableVideoComposition(AVAsset asset, AVVideoCompositionInstruction prototypeInstruction) { super((Handle) null, create(asset, prototypeInstruction)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVMutableVideoComposition(AVAsset asset, AVVideoCompositionInstruction prototypeInstruction, @Block VoidBlock2 completionHandler) { super((Handle) null, create(asset, prototypeInstruction, completionHandler)); retain(getHandle()); } /** * @since Available in iOS 9.0 and later. + * @deprecated Use videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: */ + @Deprecated public AVMutableVideoComposition(AVAsset asset, @Block VoidBlock1 ciFiltersApplier) { super((Handle) null, create(asset, ciFiltersApplier)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVMutableVideoComposition(AVAsset asset, @Block VoidBlock1 applier, @Block VoidBlock2 completionHandler) { super((Handle) null, create0(asset, applier, completionHandler)); retain(getHandle()); } /**/ /**/ @Property(selector = "customVideoCompositorClass") @@ -143,17 +165,40 @@ public AVMutableVideoComposition() {} /**/ /**//**/ /**/ + /** + * @deprecated Use videoCompositionWithPropertiesOfAsset:completionHandler: + */ + @Deprecated @Method(selector = "videoCompositionWithPropertiesOfAsset:") protected static native @Pointer long create(AVAsset asset); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "videoCompositionWithPropertiesOfAsset:completionHandler:") + protected static native @Pointer long create0(AVAsset asset, @Block VoidBlock2 completionHandler); /** * @since Available in iOS 13.0 and later. + * @deprecated Use videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler: */ + @Deprecated @Method(selector = "videoCompositionWithPropertiesOfAsset:prototypeInstruction:") protected static native @Pointer long create(AVAsset asset, AVVideoCompositionInstruction prototypeInstruction); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler:") + protected static native @Pointer long create(AVAsset asset, AVVideoCompositionInstruction prototypeInstruction, @Block VoidBlock2 completionHandler); /** * @since Available in iOS 9.0 and later. + * @deprecated Use videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: */ + @Deprecated @Method(selector = "videoCompositionWithAsset:applyingCIFiltersWithHandler:") protected static native @Pointer long create(AVAsset asset, @Block VoidBlock1 ciFiltersApplier); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler:") + protected static native @Pointer long create0(AVAsset asset, @Block VoidBlock1 applier, @Block VoidBlock2 completionHandler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionInstruction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionInstruction.java index 12b143811..7f4790de2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionInstruction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionInstruction.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionLayerInstruction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionLayerInstruction.java index fd52eb4fd..f5125c119 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionLayerInstruction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVMutableVideoCompositionLayerInstruction.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsAssistant.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsAssistant.java index 364cbc51f..c9f757296 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsAssistant.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsAssistant.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsPreset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsPreset.java index 4daf4cded..97f7ac2ba 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsPreset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVOutputSettingsPreset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVParameterEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVParameterEvent.java new file mode 100644 index 000000000..26d5a8fbb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVParameterEvent.java @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVParameterEvent/**/ + extends /**/AVMusicEvent/**/ + /**//**/ { + + /**/public static class AVParameterEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVParameterEvent.class); }/**/ + /**//**/ + /**/ + public AVParameterEvent() {} + protected AVParameterEvent(Handle h, long handle) { super(h, handle); } + protected AVParameterEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithParameterID:scope:element:value:") + public AVParameterEvent(int parameterID, int scope, int element, float value) { super((SkipInit) null); initObject(init(parameterID, scope, element, value)); } + /**/ + /**/ + @Property(selector = "parameterID") + public native int getParameterID(); + @Property(selector = "setParameterID:") + public native void setParameterID(int v); + @Property(selector = "scope") + public native int getScope(); + @Property(selector = "setScope:") + public native void setScope(int v); + @Property(selector = "element") + public native int getElement(); + @Property(selector = "setElement:") + public native void setElement(int v); + @Property(selector = "value") + public native float getValue(); + @Property(selector = "setValue:") + public native void setValue(float v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithParameterID:scope:element:value:") + protected native @Pointer long init(int parameterID, int scope, int element, float value); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPersistableContentKeyRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPersistableContentKeyRequest.java index d076c63c3..53582d38b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPersistableContentKeyRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPersistableContentKeyRequest.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPixelAspectRatio.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPixelAspectRatio.java index d710a52b0..54cac1ab5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPixelAspectRatio.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPixelAspectRatio.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinator.java index c53f9dc11..4396ea6f1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinator.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinator.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -74,13 +76,29 @@ protected AVPlaybackCoordinator() {} /**/ /**//**/ /**/ + @Library("AVFoundation") + public static class Notifications { + static { Bro.bind(Notifications.class); } + + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlaybackCoordinatorOtherParticipantsDidChangeNotification", optional=true) + public static native NSString OtherParticipantsDidChange(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlaybackCoordinatorSuspensionReasonsDidChangeNotification", optional=true) + public static native NSString SuspensionReasonsDidChange(); + } + @Method(selector = "beginSuspensionForReason:") - public native AVCoordinatedPlaybackSuspension beginSuspensionForReason(String suspensionReason); + public native AVCoordinatedPlaybackSuspension beginSuspensionForReason(AVCoordinatedPlaybackSuspensionReason suspensionReason); @Method(selector = "expectedItemTimeAtHostTime:") public native @ByVal CMTime expectedItemTimeAtHostTime(@ByVal CMTime hostClockTime); @Method(selector = "setParticipantLimit:forWaitingOutSuspensionsWithReason:") - public native void setParticipantLimitForWaitingOutSuspensions(@MachineSizedSInt long participantLimit, String reason); + public native void setParticipantLimitForWaitingOutSuspensions(@MachineSizedSInt long participantLimit, AVCoordinatedPlaybackSuspensionReason reason); @Method(selector = "participantLimitForWaitingOutSuspensionsWithReason:") - public native @MachineSizedSInt long getParticipantLimitForWaitingOutSuspensions(String reason); + public native @MachineSizedSInt long getParticipantLimitForWaitingOutSuspensions(AVCoordinatedPlaybackSuspensionReason reason); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegate.java index 3d882e7ca..a076b15ad 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegateAdapter.java index 2d59aba41..e2237244b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlaybackCoordinatorPlaybackControlDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayer.java index dea0f02ae..b11efda67 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -69,6 +71,16 @@ public AVPlayer() {} public native float getRate(); @Property(selector = "setRate:") public native void setRate(float v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "defaultRate") + public native float getDefaultRate(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDefaultRate:") + public native void setDefaultRate(float v); /** * @since Available in iOS 10.0 and later. */ @@ -225,6 +237,27 @@ public AVPlayer() {} */ @GlobalValue(symbol="AVPlayerWaitingDuringInterstitialEventReason", optional=true) public static native NSString WaitingDuringInterstitialEventReason(); + @Library("AVFoundation") + public static class Keys { + static { Bro.bind(Keys.class); } + + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerRateDidChangeReasonKey", optional=true) + public static native String RateDidChangeReason(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerRateDidChangeOriginatingParticipantKey", optional=true) + public static native String RateDidChangeOriginatingParticipant(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerItemTimeJumpedOriginatingParticipantKey", optional=true) + public static native String ItemTimeJumpedOriginatingParticipant(); + } + @Library("AVFoundation") public static class Notifications { static { Bro.bind(Notifications.class); } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerActionAtItemEnd.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerActionAtItemEnd.java index 18c8d4d1a..aff228ccb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerActionAtItemEnd.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerActionAtItemEnd.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerAudiovisualBackgroundPlaybackPolicy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerAudiovisualBackgroundPlaybackPolicy.java index b0a3e0c41..e83ac0964 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerAudiovisualBackgroundPlaybackPolicy.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerAudiovisualBackgroundPlaybackPolicy.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerHDRMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerHDRMode.java index 69b8a3045..9a7c2c312 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerHDRMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerHDRMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEvent.java index 62315f6d9..551fc1713 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEvent.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -57,8 +59,26 @@ protected AVPlayerInterstitialEvent() {} protected AVPlayerInterstitialEvent(Handle h, long handle) { super(h, handle); } protected AVPlayerInterstitialEvent(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 15.0 and later. + * @deprecated Use interstitialEventWithPrimaryItem:time: + */ + @Deprecated public AVPlayerInterstitialEvent(AVPlayerItem primaryItem, String identifier, @ByVal CMTime time, NSArray templateItems, AVPlayerInterstitialEventRestrictions restrictions, @ByVal CMTime resumptionOffset, @ByVal CMTime playoutLimit, NSDictionary userDefinedAttributes) { super((Handle) null, create(primaryItem, identifier, time, templateItems, restrictions, resumptionOffset, playoutLimit, userDefinedAttributes)); retain(getHandle()); } + /** + * @since Available in iOS 15.0 and later. + * @deprecated Use interstitialEventWithPrimaryItem:date: + */ + @Deprecated public AVPlayerInterstitialEvent(AVPlayerItem primaryItem, String identifier, NSDate date, NSArray templateItems, AVPlayerInterstitialEventRestrictions restrictions, @ByVal CMTime resumptionOffset, @ByVal CMTime playoutLimit, NSDictionary userDefinedAttributes) { super((Handle) null, create(primaryItem, identifier, date, templateItems, restrictions, resumptionOffset, playoutLimit, userDefinedAttributes)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVPlayerInterstitialEvent(AVPlayerItem primaryItem, @ByVal CMTime time) { super((Handle) null, create(primaryItem, time)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVPlayerInterstitialEvent(AVPlayerItem primaryItem, NSDate date) { super((Handle) null, create(primaryItem, date)); retain(getHandle()); } /**/ /**/ @Property(selector = "primaryItem") @@ -77,14 +97,119 @@ protected AVPlayerInterstitialEvent() {} public native @ByVal CMTime getResumptionOffset(); @Property(selector = "playoutLimit") public native @ByVal CMTime getPlayoutLimit(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "alignsStartWithPrimarySegmentBoundary") + public native boolean isAlignsStartWithPrimarySegmentBoundary(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "alignsResumptionWithPrimarySegmentBoundary") + public native boolean isAlignsResumptionWithPrimarySegmentBoundary(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "cue") + public native AVPlayerInterstitialEventCue getCue(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "willPlayOnce") + public native boolean isWillPlayOnce(); @Property(selector = "userDefinedAttributes") public native NSDictionary getUserDefinedAttributes(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPrimaryItem:", strongRef = true) + public native void setPrimaryItem(AVPlayerItem v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setIdentifier:") + public native void setIdentifier(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTime:") + public native void setTime(@ByVal CMTime v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDate:") + public native void setDate(NSDate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTemplateItems:") + public native void setTemplateItems(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRestrictions:") + public native void setRestrictions(AVPlayerInterstitialEventRestrictions v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setResumptionOffset:") + public native void setResumptionOffset(@ByVal CMTime v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPlayoutLimit:") + public native void setPlayoutLimit(@ByVal CMTime v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAlignsStartWithPrimarySegmentBoundary:") + public native void setAlignsStartWithPrimarySegmentBoundary(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAlignsResumptionWithPrimarySegmentBoundary:") + public native void setAlignsResumptionWithPrimarySegmentBoundary(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCue:") + public native void setCue(AVPlayerInterstitialEventCue v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setWillPlayOnce:") + public native void setWillPlayOnce(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setUserDefinedAttributes:") + public native void setUserDefinedAttributes(NSDictionary v); /**/ /**//**/ /**/ + /** + * @since Available in iOS 15.0 and later. + * @deprecated Use interstitialEventWithPrimaryItem:time: + */ + @Deprecated @Method(selector = "interstitialEventWithPrimaryItem:identifier:time:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:") protected static native @Pointer long create(AVPlayerItem primaryItem, String identifier, @ByVal CMTime time, NSArray templateItems, AVPlayerInterstitialEventRestrictions restrictions, @ByVal CMTime resumptionOffset, @ByVal CMTime playoutLimit, NSDictionary userDefinedAttributes); + /** + * @since Available in iOS 15.0 and later. + * @deprecated Use interstitialEventWithPrimaryItem:date: + */ + @Deprecated @Method(selector = "interstitialEventWithPrimaryItem:identifier:date:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:") protected static native @Pointer long create(AVPlayerItem primaryItem, String identifier, NSDate date, NSArray templateItems, AVPlayerInterstitialEventRestrictions restrictions, @ByVal CMTime resumptionOffset, @ByVal CMTime playoutLimit, NSDictionary userDefinedAttributes); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "interstitialEventWithPrimaryItem:time:") + protected static native @Pointer long create(AVPlayerItem primaryItem, @ByVal CMTime time); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "interstitialEventWithPrimaryItem:date:") + protected static native @Pointer long create(AVPlayerItem primaryItem, NSDate date); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventController.java index 12cab9dbb..b59d2cc71 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventController.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventCue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventCue.java new file mode 100644 index 000000000..a82f87836 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventCue.java @@ -0,0 +1,156 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("AVFoundation") @StronglyLinked/**/ +@Marshaler(/**/AVPlayerInterstitialEventCue/**/.Marshaler.class) +/**/public/**/ class /**/AVPlayerInterstitialEventCue/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/AVPlayerInterstitialEventCue/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static AVPlayerInterstitialEventCue toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return AVPlayerInterstitialEventCue.valueOf(o); + } + @MarshalsPointer + public static long toNative(AVPlayerInterstitialEventCue o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(AVPlayerInterstitialEventCue.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (AVPlayerInterstitialEventCue o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVPlayerInterstitialEventCue AVPlayerInterstitialEventNoCue = new AVPlayerInterstitialEventCue("AVPlayerInterstitialEventNoCue"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVPlayerInterstitialEventCue AVPlayerInterstitialEventJoinCue = new AVPlayerInterstitialEventCue("AVPlayerInterstitialEventJoinCue"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final AVPlayerInterstitialEventCue AVPlayerInterstitialEventLeaveCue = new AVPlayerInterstitialEventCue("AVPlayerInterstitialEventLeaveCue"); + /**/ + + private static /**/AVPlayerInterstitialEventCue/**/[] values = new /**/AVPlayerInterstitialEventCue/**/[] {/**/AVPlayerInterstitialEventNoCue, AVPlayerInterstitialEventJoinCue, AVPlayerInterstitialEventLeaveCue/**/}; + + /**/AVPlayerInterstitialEventCue/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/AVPlayerInterstitialEventCue/**/ valueOf(/**/NSString/**/ value) { + for (/**/AVPlayerInterstitialEventCue/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/AVPlayerInterstitialEventCue/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AVFoundation") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVPlayerInterstitialEventNoCue", optional=true) + public static native NSString AVPlayerInterstitialEventNoCue(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVPlayerInterstitialEventJoinCue", optional=true) + public static native NSString AVPlayerInterstitialEventJoinCue(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVPlayerInterstitialEventLeaveCue", optional=true) + public static native NSString AVPlayerInterstitialEventLeaveCue(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventMonitor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventMonitor.java index 557b48707..1551bf704 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventMonitor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventMonitor.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventRestrictions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventRestrictions.java index 48766611b..35a02fde2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventRestrictions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerInterstitialEventRestrictions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItem.java index f5767c9ec..b3193823e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItem.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLog.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLog.java index 9170cc14c..dd7bc77fa 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLog.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLog.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLogEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLogEvent.java index a410b318d..2a0c8f49a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLogEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemAccessLogEvent.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLog.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLog.java index e12aa36da..45b75f2ac 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLog.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLog.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLogEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLogEvent.java index 42c411954..e8bdcf851 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLogEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemErrorLogEvent.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutput.java index 279ff49a8..eb188842f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegate.java index cc4061cc2..d3fb54360 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegateAdapter.java index 29de05b28..76242534d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputPushDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputTextStylingResolution.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputTextStylingResolution.java index af07e7500..5e8aa8d43 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputTextStylingResolution.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemLegibleOutputTextStylingResolution.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMediaDataCollector.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMediaDataCollector.java index 55983dcf1..1b91cff0b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMediaDataCollector.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMediaDataCollector.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollector.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollector.java index a47548147..3231b4d90 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollector.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollector.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegate.java index e0d3287d3..d66e4c55b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegateAdapter.java index 432abb00f..a7a661f8d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataCollectorPushDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutput.java index 838ecb898..b7ab452a8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegate.java index 937fd3eb6..0da737bd5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegateAdapter.java index b673578de..2bffe9ce1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemMetadataOutputPushDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutput.java index 9cd2bfa8d..9fd62b386 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegate.java index 4bf56e550..30d2d71d8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegateAdapter.java index d7e0e47ca..3d75c95e0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPullDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegate.java index 8297a1a6b..6b6f6b562 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegateAdapter.java index 55e370826..021b59bda 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemOutputPushDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemStatus.java index d7278465f..fea4bbff8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemTrack.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemTrack.java index e1e2a1d38..b6b12ef79 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemTrack.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemTrack.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemVideoOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemVideoOutput.java index b3bb816cd..10de6a3da 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemVideoOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerItemVideoOutput.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLayer.java index 740cc28d9..97c3757dd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -87,6 +89,11 @@ public AVPlayerLayer() {} /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "copyDisplayedPixelBuffer") + public native CVPixelBuffer copyDisplayedPixelBuffer(); @Method(selector = "playerLayerWithPlayer:") protected static native @Pointer long create(AVPlayer player); @Method(selector = "defaultValueForKey:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooper.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooper.java index d4a0b9bab..5d43afcfb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooper.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooper.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooperStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooperStatus.java index 8ab537bcc..664bd11e2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooperStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerLooperStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerMediaSelectionCriteria.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerMediaSelectionCriteria.java index 0ce3620c2..192a06845 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerMediaSelectionCriteria.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerMediaSelectionCriteria.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinator.java index 2f13a8d3d..2fb205d2e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinator.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinator.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegate.java index 4f807f7eb..e51b972ed 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegateAdapter.java index 57061e2e6..c04ce8b0a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerPlaybackCoordinatorDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerRateDidChangeReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerRateDidChangeReason.java new file mode 100644 index 000000000..dd58ffca8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerRateDidChangeReason.java @@ -0,0 +1,165 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("AVFoundation") @StronglyLinked/**/ +@Marshaler(/**/AVPlayerRateDidChangeReason/**/.Marshaler.class) +/**/public/**/ class /**/AVPlayerRateDidChangeReason/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/AVPlayerRateDidChangeReason/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static AVPlayerRateDidChangeReason toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return AVPlayerRateDidChangeReason.valueOf(o); + } + @MarshalsPointer + public static long toNative(AVPlayerRateDidChangeReason o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(AVPlayerRateDidChangeReason.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (AVPlayerRateDidChangeReason o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVPlayerRateDidChangeReason SetRateCalled = new AVPlayerRateDidChangeReason("SetRateCalled"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVPlayerRateDidChangeReason SetRateFailed = new AVPlayerRateDidChangeReason("SetRateFailed"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVPlayerRateDidChangeReason AudioSessionInterrupted = new AVPlayerRateDidChangeReason("AudioSessionInterrupted"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVPlayerRateDidChangeReason AppBackgrounded = new AVPlayerRateDidChangeReason("AppBackgrounded"); + /**/ + + private static /**/AVPlayerRateDidChangeReason/**/[] values = new /**/AVPlayerRateDidChangeReason/**/[] {/**/SetRateCalled, SetRateFailed, AudioSessionInterrupted, AppBackgrounded/**/}; + + /**/AVPlayerRateDidChangeReason/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/AVPlayerRateDidChangeReason/**/ valueOf(/**/NSString/**/ value) { + for (/**/AVPlayerRateDidChangeReason/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/AVPlayerRateDidChangeReason/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AVFoundation") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerRateDidChangeReasonSetRateCalled", optional=true) + public static native NSString SetRateCalled(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerRateDidChangeReasonSetRateFailed", optional=true) + public static native NSString SetRateFailed(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerRateDidChangeReasonAudioSessionInterrupted", optional=true) + public static native NSString AudioSessionInterrupted(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVPlayerRateDidChangeReasonAppBackgrounded", optional=true) + public static native NSString AppBackgrounded(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerStatus.java index 94e2d6d61..9615c6cfc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerTimeControlStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerTimeControlStatus.java index cf5c60baa..73e7cf4d0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerTimeControlStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPlayerTimeControlStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPortraitEffectsMatte.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPortraitEffectsMatte.java index cd5308488..45934e266 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPortraitEffectsMatte.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVPortraitEffectsMatte.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuePlayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuePlayer.java index 96f999d08..677d2ed13 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuePlayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuePlayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRendering.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRendering.java index 6613d7972..3ad1625ec 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRendering.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRendering.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingAdapter.java index d99d438fc..f6bd73dcd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingStatus.java index 9b0e27f4c..e67999558 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVQueuedSampleBufferRenderingStatus.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVRouteDetector.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVRouteDetector.java index 9e9e41c55..654ab99f6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVRouteDetector.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVRouteDetector.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -65,6 +67,16 @@ public AVRouteDetector() {} public native void setRouteDetectionEnabled(boolean v); @Property(selector = "multipleRoutesDetected") public native boolean isMultipleRoutesDetected(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "detectsCustomRoutes") + public native boolean isDetectsCustomRoutes(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDetectsCustomRoutes:") + public native void setDetectsCustomRoutes(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferAudioRenderer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferAudioRenderer.java index c876a2a17..d44c05241 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferAudioRenderer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferAudioRenderer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -97,16 +99,26 @@ public AVSampleBufferAudioRenderer() {} /**/ /**//**/ /**/ - /** - * @since Available in iOS 11.0 and later. - */ - @GlobalValue(symbol="AVSampleBufferAudioRendererWasFlushedAutomaticallyNotification", optional=true) - public static native String WasFlushedAutomaticallyNotification(); /** * @since Available in iOS 11.0 and later. */ @GlobalValue(symbol="AVSampleBufferAudioRendererFlushTimeKey", optional=true) public static native String FlushTimeKey(); + @Library("AVFoundation") + public static class Notifications { + static { Bro.bind(Notifications.class); } + + /** + * @since Available in iOS 11.0 and later. + */ + @GlobalValue(symbol="AVSampleBufferAudioRendererWasFlushedAutomaticallyNotification", optional=true) + public static native String WasFlushedAutomatically(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVSampleBufferAudioRendererOutputConfigurationDidChangeNotification", optional=true) + public static native String OutputConfigurationDidChange(); + } @Method(selector = "flushFromSourceTime:completionHandler:") public native void flushFromSourceTime(@ByVal CMTime time, @Block VoidBooleanBlock completionHandler); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferDisplayLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferDisplayLayer.java index 4127e5907..97462ad97 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferDisplayLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferDisplayLayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGenerator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGenerator.java new file mode 100644 index 000000000..9368cb863 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGenerator.java @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSampleBufferGenerator/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVSampleBufferGeneratorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSampleBufferGenerator.class); }/**/ + /**//**/ + /**/ + protected AVSampleBufferGenerator() {} + protected AVSampleBufferGenerator(Handle h, long handle) { super(h, handle); } + protected AVSampleBufferGenerator(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithAsset:timebase:") + public AVSampleBufferGenerator(AVAsset asset, CMTimebase timebase) { super((SkipInit) null); initObject(init(asset, timebase)); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "initWithAsset:timebase:") + protected native @Pointer long init(AVAsset asset, CMTimebase timebase); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "createSampleBufferForRequest:error:") + public native CMSampleBuffer createSampleBuffer(AVSampleBufferRequest request, NSError.NSErrorPtr outError); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "makeBatch") + public native AVSampleBufferGeneratorBatch makeBatch(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "createSampleBufferForRequest:addingToBatch:error:") + public native CMSampleBuffer createSampleBuffer(AVSampleBufferRequest request, AVSampleBufferGeneratorBatch batch, NSError.NSErrorPtr outError); + @Method(selector = "notifyOfDataReadyForSampleBuffer:completionHandler:") + public static native void notifyOfDataReadyForSampleBuffer(CMSampleBuffer sbuf, @Block VoidBlock2 completionHandler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGeneratorBatch.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGeneratorBatch.java new file mode 100644 index 000000000..65661062c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferGeneratorBatch.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSampleBufferGeneratorBatch/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVSampleBufferGeneratorBatchPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSampleBufferGeneratorBatch.class); }/**/ + /**//**/ + /**/ + protected AVSampleBufferGeneratorBatch() {} + protected AVSampleBufferGeneratorBatch(Handle h, long handle) { super(h, handle); } + protected AVSampleBufferGeneratorBatch(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "makeDataReadyWithCompletionHandler:") + public native void makeDataReady(@Block VoidBlock1 completionHandler); + @Method(selector = "cancel") + public native void cancel(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRenderSynchronizer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRenderSynchronizer.java index bcd682323..94b4bc48c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRenderSynchronizer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRenderSynchronizer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequest.java new file mode 100644 index 000000000..b9e2bd817 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequest.java @@ -0,0 +1,98 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSampleBufferRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVSampleBufferRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSampleBufferRequest.class); }/**/ + /**//**/ + /**/ + protected AVSampleBufferRequest() {} + protected AVSampleBufferRequest(Handle h, long handle) { super(h, handle); } + protected AVSampleBufferRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithStartCursor:") + public AVSampleBufferRequest(AVSampleCursor startCursor) { super((SkipInit) null); initObject(init(startCursor)); } + /**/ + /**/ + @Property(selector = "startCursor") + public native AVSampleCursor getStartCursor(); + @Property(selector = "direction") + public native AVSampleBufferRequestDirection getDirection(); + @Property(selector = "setDirection:") + public native void setDirection(AVSampleBufferRequestDirection v); + @Property(selector = "limitCursor") + public native AVSampleCursor getLimitCursor(); + @Property(selector = "setLimitCursor:") + public native void setLimitCursor(AVSampleCursor v); + @Property(selector = "preferredMinSampleCount") + public native @MachineSizedSInt long getPreferredMinSampleCount(); + @Property(selector = "setPreferredMinSampleCount:") + public native void setPreferredMinSampleCount(@MachineSizedSInt long v); + @Property(selector = "maxSampleCount") + public native @MachineSizedSInt long getMaxSampleCount(); + @Property(selector = "setMaxSampleCount:") + public native void setMaxSampleCount(@MachineSizedSInt long v); + @Property(selector = "mode") + public native AVSampleBufferRequestMode getMode(); + @Property(selector = "setMode:") + public native void setMode(AVSampleBufferRequestMode v); + @Property(selector = "overrideTime") + public native @ByVal CMTime getOverrideTime(); + @Property(selector = "setOverrideTime:") + public native void setOverrideTime(@ByVal CMTime v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithStartCursor:") + protected native @Pointer long init(AVSampleCursor startCursor); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestDirection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestDirection.java index 6aa4c19da..db5de0f97 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestDirection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestDirection.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestMode.java index 1a7452d8b..b27c2cd81 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleBufferRequestMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursor.java new file mode 100644 index 000000000..8a40e6c00 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursor.java @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSampleCursor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVSampleCursorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSampleCursor.class); }/**/ + /**//**/ + /**/ + protected AVSampleCursor() {} + protected AVSampleCursor(Handle h, long handle) { super(h, handle); } + protected AVSampleCursor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "presentationTimeStamp") + public native @ByVal CMTime getPresentationTimeStamp(); + @Property(selector = "decodeTimeStamp") + public native @ByVal CMTime getDecodeTimeStamp(); + @Property(selector = "currentSampleDuration") + public native @ByVal CMTime getCurrentSampleDuration(); + @Property(selector = "currentSampleSyncInfo") + public native @ByVal AVSampleCursorSyncInfo getCurrentSampleSyncInfo(); + @Property(selector = "currentSampleDependencyInfo") + public native @ByVal AVSampleCursorDependencyInfo getCurrentSampleDependencyInfo(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "currentSampleDependencyAttachments") + public native NSDictionary getCurrentSampleDependencyAttachments(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "currentSampleAudioDependencyInfo") + public native @ByVal AVSampleCursorAudioDependencyInfo getCurrentSampleAudioDependencyInfo(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "samplesRequiredForDecoderRefresh") + public native @MachineSizedSInt long getSamplesRequiredForDecoderRefresh(); + @Property(selector = "currentChunkStorageURL") + public native NSURL getCurrentChunkStorageURL(); + @Property(selector = "currentChunkStorageRange") + public native @ByVal AVSampleCursorStorageRange getCurrentChunkStorageRange(); + @Property(selector = "currentChunkInfo") + public native @ByVal AVSampleCursorChunkInfo getCurrentChunkInfo(); + @Property(selector = "currentSampleIndexInChunk") + public native long getCurrentSampleIndexInChunk(); + @Property(selector = "currentSampleStorageRange") + public native @ByVal AVSampleCursorStorageRange getCurrentSampleStorageRange(); + /**/ + /**//**/ + /**/ + @Method(selector = "stepInDecodeOrderByCount:") + public native long stepInDecodeOrderByCount(long stepCount); + @Method(selector = "stepInPresentationOrderByCount:") + public native long stepInPresentationOrderByCount(long stepCount); + @Method(selector = "stepByDecodeTime:wasPinned:") + public native @ByVal CMTime stepByDecodeTime(@ByVal CMTime deltaDecodeTime, BooleanPtr outWasPinned); + @Method(selector = "stepByPresentationTime:wasPinned:") + public native @ByVal CMTime stepByPresentationTime(@ByVal CMTime deltaPresentationTime, BooleanPtr outWasPinned); + @Method(selector = "comparePositionInDecodeOrderWithPositionOfCursor:") + public native NSComparisonResult comparePositionInDecodeOrder(AVSampleCursor cursor); + @Method(selector = "samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor:") + public native boolean samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor(AVSampleCursor cursor); + @Method(selector = "samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:") + public native boolean samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor(AVSampleCursor cursor); + @Method(selector = "copyCurrentSampleFormatDescription") + public native CMFormatDescription copyCurrentSampleFormatDescription(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorAudioDependencyInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorAudioDependencyInfo.java new file mode 100644 index 000000000..f03825594 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorAudioDependencyInfo.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AVSampleCursorAudioDependencyInfo/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AVSampleCursorAudioDependencyInfoPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AVSampleCursorAudioDependencyInfo() {} + public AVSampleCursorAudioDependencyInfo(boolean audioSampleIsIndependentlyDecodable, @MachineSizedSInt long audioSamplePacketRefreshCount) { + this.setAudioSampleIsIndependentlyDecodable(audioSampleIsIndependentlyDecodable); + this.setAudioSamplePacketRefreshCount(audioSamplePacketRefreshCount); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native boolean isAudioSampleIsIndependentlyDecodable(); + @StructMember(0) public native AVSampleCursorAudioDependencyInfo setAudioSampleIsIndependentlyDecodable(boolean audioSampleIsIndependentlyDecodable); + @StructMember(1) public native @MachineSizedSInt long getAudioSamplePacketRefreshCount(); + @StructMember(1) public native AVSampleCursorAudioDependencyInfo setAudioSamplePacketRefreshCount(@MachineSizedSInt long audioSamplePacketRefreshCount); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorChunkInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorChunkInfo.java new file mode 100644 index 000000000..9345ed446 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorChunkInfo.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AVSampleCursorChunkInfo/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AVSampleCursorChunkInfoPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AVSampleCursorChunkInfo() {} + public AVSampleCursorChunkInfo(long chunkSampleCount, boolean chunkHasUniformSampleSizes, boolean chunkHasUniformSampleDurations, boolean chunkHasUniformFormatDescriptions) { + this.setChunkSampleCount(chunkSampleCount); + this.setChunkHasUniformSampleSizes(chunkHasUniformSampleSizes); + this.setChunkHasUniformSampleDurations(chunkHasUniformSampleDurations); + this.setChunkHasUniformFormatDescriptions(chunkHasUniformFormatDescriptions); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native long getChunkSampleCount(); + @StructMember(0) public native AVSampleCursorChunkInfo setChunkSampleCount(long chunkSampleCount); + @StructMember(1) public native boolean isChunkHasUniformSampleSizes(); + @StructMember(1) public native AVSampleCursorChunkInfo setChunkHasUniformSampleSizes(boolean chunkHasUniformSampleSizes); + @StructMember(2) public native boolean isChunkHasUniformSampleDurations(); + @StructMember(2) public native AVSampleCursorChunkInfo setChunkHasUniformSampleDurations(boolean chunkHasUniformSampleDurations); + @StructMember(3) public native boolean isChunkHasUniformFormatDescriptions(); + @StructMember(3) public native AVSampleCursorChunkInfo setChunkHasUniformFormatDescriptions(boolean chunkHasUniformFormatDescriptions); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorDependencyInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorDependencyInfo.java new file mode 100644 index 000000000..4998aacb3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorDependencyInfo.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AVSampleCursorDependencyInfo/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AVSampleCursorDependencyInfoPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AVSampleCursorDependencyInfo() {} + public AVSampleCursorDependencyInfo(boolean sampleIndicatesWhetherItHasDependentSamples, boolean sampleHasDependentSamples, boolean sampleIndicatesWhetherItDependsOnOthers, boolean sampleDependsOnOthers, boolean sampleIndicatesWhetherItHasRedundantCoding, boolean sampleHasRedundantCoding) { + this.setSampleIndicatesWhetherItHasDependentSamples(sampleIndicatesWhetherItHasDependentSamples); + this.setSampleHasDependentSamples(sampleHasDependentSamples); + this.setSampleIndicatesWhetherItDependsOnOthers(sampleIndicatesWhetherItDependsOnOthers); + this.setSampleDependsOnOthers(sampleDependsOnOthers); + this.setSampleIndicatesWhetherItHasRedundantCoding(sampleIndicatesWhetherItHasRedundantCoding); + this.setSampleHasRedundantCoding(sampleHasRedundantCoding); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native boolean isSampleIndicatesWhetherItHasDependentSamples(); + @StructMember(0) public native AVSampleCursorDependencyInfo setSampleIndicatesWhetherItHasDependentSamples(boolean sampleIndicatesWhetherItHasDependentSamples); + @StructMember(1) public native boolean isSampleHasDependentSamples(); + @StructMember(1) public native AVSampleCursorDependencyInfo setSampleHasDependentSamples(boolean sampleHasDependentSamples); + @StructMember(2) public native boolean isSampleIndicatesWhetherItDependsOnOthers(); + @StructMember(2) public native AVSampleCursorDependencyInfo setSampleIndicatesWhetherItDependsOnOthers(boolean sampleIndicatesWhetherItDependsOnOthers); + @StructMember(3) public native boolean isSampleDependsOnOthers(); + @StructMember(3) public native AVSampleCursorDependencyInfo setSampleDependsOnOthers(boolean sampleDependsOnOthers); + @StructMember(4) public native boolean isSampleIndicatesWhetherItHasRedundantCoding(); + @StructMember(4) public native AVSampleCursorDependencyInfo setSampleIndicatesWhetherItHasRedundantCoding(boolean sampleIndicatesWhetherItHasRedundantCoding); + @StructMember(5) public native boolean isSampleHasRedundantCoding(); + @StructMember(5) public native AVSampleCursorDependencyInfo setSampleHasRedundantCoding(boolean sampleHasRedundantCoding); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorStorageRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorStorageRange.java new file mode 100644 index 000000000..883338dff --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorStorageRange.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AVSampleCursorStorageRange/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AVSampleCursorStorageRangePtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AVSampleCursorStorageRange() {} + public AVSampleCursorStorageRange(long offset, long length) { + this.setOffset(offset); + this.setLength(length); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native long getOffset(); + @StructMember(0) public native AVSampleCursorStorageRange setOffset(long offset); + @StructMember(1) public native long getLength(); + @StructMember(1) public native AVSampleCursorStorageRange setLength(long length); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorSyncInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorSyncInfo.java new file mode 100644 index 000000000..41dd63256 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleCursorSyncInfo.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/AVSampleCursorSyncInfo/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class AVSampleCursorSyncInfoPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public AVSampleCursorSyncInfo() {} + public AVSampleCursorSyncInfo(boolean sampleIsFullSync, boolean sampleIsPartialSync, boolean sampleIsDroppable) { + this.setSampleIsFullSync(sampleIsFullSync); + this.setSampleIsPartialSync(sampleIsPartialSync); + this.setSampleIsDroppable(sampleIsDroppable); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native boolean isSampleIsFullSync(); + @StructMember(0) public native AVSampleCursorSyncInfo setSampleIsFullSync(boolean sampleIsFullSync); + @StructMember(1) public native boolean isSampleIsPartialSync(); + @StructMember(1) public native AVSampleCursorSyncInfo setSampleIsPartialSync(boolean sampleIsPartialSync); + @StructMember(2) public native boolean isSampleIsDroppable(); + @StructMember(2) public native AVSampleCursorSyncInfo setSampleIsDroppable(boolean sampleIsDroppable); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterAlgorithm.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterAlgorithm.java index 11f1f9030..15c3d3e1a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterAlgorithm.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterAlgorithm.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterSettings.java index 8915933cb..8011d04fc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSampleRateConverterSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatte.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatte.java index 7f076e601..68f6673b9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatte.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatte.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatteType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatteType.java index 1b54abfd8..124cf18f0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatteType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSemanticSegmentationMatteType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechBoundary.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechBoundary.java index 366255081..08f2f3538 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechBoundary.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechBoundary.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisAttributes.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisAttributes.java index e3de726a2..4e338b09c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisAttributes.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisAttributes.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarker.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarker.java new file mode 100644 index 000000000..aa792e74e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarker.java @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSpeechSynthesisMarker/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class AVSpeechSynthesisMarkerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSpeechSynthesisMarker.class); }/**/ + /**//**/ + /**/ + public AVSpeechSynthesisMarker() {} + protected AVSpeechSynthesisMarker(Handle h, long handle) { super(h, handle); } + protected AVSpeechSynthesisMarker(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithMarkerType:forTextRange:atByteSampleOffset:") + public AVSpeechSynthesisMarker(AVSpeechSynthesisMarkerMark type, @ByVal NSRange range, @MachineSizedUInt long byteSampleOffset) { super((SkipInit) null); initObject(init(type, range, byteSampleOffset)); } + @Method(selector = "initWithCoder:") + public AVSpeechSynthesisMarker(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "mark") + public native AVSpeechSynthesisMarkerMark getMark(); + @Property(selector = "setMark:") + public native void setMark(AVSpeechSynthesisMarkerMark v); + @Property(selector = "byteSampleOffset") + public native @MachineSizedUInt long getByteSampleOffset(); + @Property(selector = "setByteSampleOffset:") + public native void setByteSampleOffset(@MachineSizedUInt long v); + @Property(selector = "textRange") + public native @ByVal NSRange getTextRange(); + @Property(selector = "setTextRange:") + public native void setTextRange(@ByVal NSRange v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithMarkerType:forTextRange:atByteSampleOffset:") + protected native @Pointer long init(AVSpeechSynthesisMarkerMark type, @ByVal NSRange range, @MachineSizedUInt long byteSampleOffset); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarkerMark.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarkerMark.java new file mode 100644 index 000000000..278b31873 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisMarkerMark.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/AVSpeechSynthesisMarkerMark/**/ implements ValuedEnum { + /**/ + Phoneme(0L), + Word(1L), + Sentence(2L), + Paragraph(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/AVSpeechSynthesisMarkerMark/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/AVSpeechSynthesisMarkerMark/**/ valueOf(long n) { + for (/**/AVSpeechSynthesisMarkerMark/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/AVSpeechSynthesisMarkerMark/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderAudioUnit.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderAudioUnit.java new file mode 100644 index 000000000..d09ac09bf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderAudioUnit.java @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSpeechSynthesisProviderAudioUnit/**/ + extends /**/AUAudioUnit/**/ + /**//**/ { + + /**/public static class AVSpeechSynthesisProviderAudioUnitPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSpeechSynthesisProviderAudioUnit.class); }/**/ + /**//**/ + /**/ + protected AVSpeechSynthesisProviderAudioUnit() {} + protected AVSpeechSynthesisProviderAudioUnit(Handle h, long handle) { super(h, handle); } + protected AVSpeechSynthesisProviderAudioUnit(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithComponentDescription:options:error:") + public AVSpeechSynthesisProviderAudioUnit(@ByVal AudioComponentDescription componentDescription, AudioComponentInstantiationOptions options) throws NSErrorException { super(componentDescription, options); } + @Method(selector = "initWithComponentDescription:error:") + public AVSpeechSynthesisProviderAudioUnit(@ByVal AudioComponentDescription componentDescription) throws NSErrorException { super(componentDescription); } + /**/ + /**/ + @Property(selector = "speechVoices") + public native NSArray getSpeechVoices(); + @Property(selector = "setSpeechVoices:") + public native void setSpeechVoices(NSArray v); + @Property(selector = "speechSynthesisOutputMetadataBlock") + public native @Block VoidBlock2, AVSpeechSynthesisProviderRequest> getSpeechSynthesisOutputMetadataBlock(); + @Property(selector = "setSpeechSynthesisOutputMetadataBlock:") + public native void setSpeechSynthesisOutputMetadataBlock(@Block VoidBlock2, AVSpeechSynthesisProviderRequest> v); + /**/ + /**//**/ + /**/ + @Method(selector = "synthesizeSpeechRequest:") + public native void synthesizeSpeechRequest(AVSpeechSynthesisProviderRequest speechRequest); + @Method(selector = "cancelSpeechRequest") + public native void cancelSpeechRequest(); + @Method(selector = "instantiateWithComponentDescription:options:completionHandler:") + public static native void instantiate(@ByVal AudioComponentDescription componentDescription, AudioComponentInstantiationOptions options, @Block VoidBlock2 completionHandler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderRequest.java new file mode 100644 index 000000000..be2caf39b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderRequest.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSpeechSynthesisProviderRequest/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class AVSpeechSynthesisProviderRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSpeechSynthesisProviderRequest.class); }/**/ + /**//**/ + /**/ + protected AVSpeechSynthesisProviderRequest() {} + protected AVSpeechSynthesisProviderRequest(Handle h, long handle) { super(h, handle); } + protected AVSpeechSynthesisProviderRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSSMLRepresentation:voice:") + public AVSpeechSynthesisProviderRequest(String text, AVSpeechSynthesisProviderVoice voice) { super((SkipInit) null); initObject(init(text, voice)); } + @Method(selector = "initWithCoder:") + public AVSpeechSynthesisProviderRequest(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "ssmlRepresentation") + public native String getSsmlRepresentation(); + @Property(selector = "voice") + public native AVSpeechSynthesisProviderVoice getVoice(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSSMLRepresentation:voice:") + protected native @Pointer long init(String text, AVSpeechSynthesisProviderVoice voice); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderVoice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderVoice.java new file mode 100644 index 000000000..caa9e6183 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisProviderVoice.java @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVFoundation") @NativeClass/**/ +/**/public/**/ class /**/AVSpeechSynthesisProviderVoice/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class AVSpeechSynthesisProviderVoicePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVSpeechSynthesisProviderVoice.class); }/**/ + /**//**/ + /**/ + protected AVSpeechSynthesisProviderVoice() {} + protected AVSpeechSynthesisProviderVoice(Handle h, long handle) { super(h, handle); } + protected AVSpeechSynthesisProviderVoice(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithName:identifier:primaryLanguages:supportedLanguages:") + public AVSpeechSynthesisProviderVoice(String name, String identifier, NSArray primaryLanguages, NSArray supportedLanguages) { super((SkipInit) null); initObject(init(name, identifier, primaryLanguages, supportedLanguages)); } + @Method(selector = "initWithCoder:") + public AVSpeechSynthesisProviderVoice(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "name") + public native String getName(); + @Property(selector = "identifier") + public native String getIdentifier(); + @Property(selector = "primaryLanguages") + public native NSArray getPrimaryLanguages(); + @Property(selector = "supportedLanguages") + public native NSArray getSupportedLanguages(); + @Property(selector = "voiceSize") + public native long getVoiceSize(); + @Property(selector = "setVoiceSize:") + public native void setVoiceSize(long v); + @Property(selector = "version") + public native String getVersion(); + @Property(selector = "setVersion:") + public native void setVersion(String v); + @Property(selector = "gender") + public native AVSpeechSynthesisVoiceGender getGender(); + @Property(selector = "setGender:") + public native void setGender(AVSpeechSynthesisVoiceGender v); + @Property(selector = "age") + public native @MachineSizedSInt long getAge(); + @Property(selector = "setAge:") + public native void setAge(@MachineSizedSInt long v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithName:identifier:primaryLanguages:supportedLanguages:") + protected native @Pointer long init(String name, String identifier, NSArray primaryLanguages, NSArray supportedLanguages); + @Method(selector = "updateSpeechVoices") + public static native void updateSpeechVoices(); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoice.java index a066b4131..7aef0522f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoice.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceGender.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceGender.java index 95eff0893..8f17e7706 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceGender.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceGender.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceIdentifier.java index d2d973858..e9a9d91d5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceIdentifier.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceQuality.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceQuality.java index 3bb2f9560..fe115d8c2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceQuality.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesisVoiceQuality.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -49,7 +51,11 @@ public enum /**/AVSpeechSynthesisVoiceQuality/**/ implements ValuedEnum { /**/ Default(1L), - Enhanced(2L); + Enhanced(2L), + /** + * @since Available in iOS 16.0 and later. + */ + Premium(3L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizer.java index fdb68cb7f..87a0ff7d2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -105,6 +107,11 @@ public AVSpeechSynthesizer() {} */ @Method(selector = "writeUtterance:toBufferCallback:") public native void writeUtterance(AVSpeechUtterance utterance, @Block VoidBlock1 bufferCallback); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "writeUtterance:toBufferCallback:toMarkerCallback:") + public native void writeUtterance(AVSpeechUtterance utterance, @Block VoidBlock1 bufferCallback, @Block VoidBlock1> markerCallback); @Method(selector = "stopSpeakingAtBoundary:") public native boolean stopSpeaking(AVSpeechBoundary boundary); @Method(selector = "pauseSpeakingAtBoundary:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegate.java index ac873e76a..3827b1f25 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegate.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegateAdapter.java index a91480192..000c5ce93 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechSynthesizerDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechUtterance.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechUtterance.java index b6ca4c664..502c03a02 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechUtterance.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSpeechUtterance.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -62,6 +64,15 @@ public AVSpeechUtterance() {} */ @Method(selector = "initWithAttributedString:") public AVSpeechUtterance(NSAttributedString string) { super((SkipInit) null); initObject(init(string)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithSSMLRepresentation:") + public static AVSpeechUtterance createWithSSMLRepresentation(String string) { + AVSpeechUtterance res = new AVSpeechUtterance((SkipInit) null); + res.initObject(res.initWithSSMLRepresentation(string)); + return res; + } @Method(selector = "initWithCoder:") public AVSpeechUtterance(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ @@ -126,6 +137,11 @@ public AVSpeechUtterance() {} */ @Method(selector = "initWithAttributedString:") protected native @Pointer long init(NSAttributedString string); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithSSMLRepresentation:") + protected native @Pointer long initWithSSMLRepresentation(String string); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); @Method(selector = "initWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSynchronizedLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSynchronizedLayer.java index 46f255535..261640795 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSynchronizedLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVSynchronizedLayer.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTextStyleRule.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTextStyleRule.java index 1acb31279..eed740752 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTextStyleRule.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTextStyleRule.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTimedMetadataGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTimedMetadataGroup.java index bf037c914..d34c09421 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTimedMetadataGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTimedMetadataGroup.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTrackAssociationType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTrackAssociationType.java index 1feabb38e..20dd53b05 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTrackAssociationType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVTrackAssociationType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAsset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAsset.java index 418d5d3e1..0d36fa020 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAsset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAsset.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -62,6 +64,11 @@ protected AVURLAsset() {} /**/ @Property(selector = "URL") public native NSURL getURL(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "httpSessionIdentifier") + public native NSUUID getHttpSessionIdentifier(); @Property(selector = "resourceLoader") public native AVAssetResourceLoader getResourceLoader(); /** @@ -96,6 +103,10 @@ protected AVURLAsset() {} public static native @org.robovm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List getAudiovisualMIMETypes(); @Method(selector = "isPlayableExtendedMIMEType:") public static native boolean isPlayableExtendedMIMEType(String extendedMIMEType); + /** + * @deprecated Use findCompatibleTrackForCompositionTrack:completionHandler: + */ + @Deprecated @Method(selector = "compatibleTrackForCompositionTrack:") public native AVAssetTrack getCompatibleTrack(AVCompositionTrack compositionTrack); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAssetOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAssetOptions.java index 275991919..71a9f028d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAssetOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVURLAssetOptions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -181,6 +183,16 @@ public static class Keys { */ @GlobalValue(symbol="AVURLAssetURLRequestAttributionKey", optional=true) public static native NSString URLRequestAttribution(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVURLAssetHTTPUserAgentKey", optional=true) + public static native NSString HTTPUserAgent(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVURLAssetPrimarySessionIdentifierKey", optional=true) + public static native NSString PrimarySessionIdentifier(); } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVariantPreferences.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVariantPreferences.java index 7161aa0ab..b4e97438c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVariantPreferences.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVariantPreferences.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoApertureMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoApertureMode.java index 34d6b9439..c511a4bf4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoApertureMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoApertureMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCleanAperture.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCleanAperture.java index 792a1bd89..daca4cd95 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCleanAperture.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCleanAperture.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCodecType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCodecType.java index b3540fae5..fdbc850ca 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCodecType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCodecType.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoColorPrimaries.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoColorPrimaries.java index e30982ca7..2e125f635 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoColorPrimaries.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoColorPrimaries.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositing.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositing.java index 85524ee91..fb4d962a0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositing.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositing.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositingAdapter.java index 0bbd935c2..2b6440146 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoComposition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoComposition.java index ecfac790e..38c1d1e8e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoComposition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoComposition.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -56,11 +58,25 @@ public AVVideoComposition() {} @Deprecated protected AVVideoComposition(long handle) { super(handle); } protected AVVideoComposition(Handle h, long handle) { super(h, handle); } protected AVVideoComposition(SkipInit skipInit) { super(skipInit); } + /** + * @deprecated Use videoCompositionWithPropertiesOfAsset:completionHandler: + */ + @Deprecated public AVVideoComposition(AVAsset asset) { super((Handle) null, create(asset)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVVideoComposition(AVAsset asset, @Block VoidBlock2 completionHandler) { super((Handle) null, create(asset, completionHandler)); retain(getHandle()); } /** * @since Available in iOS 9.0 and later. + * @deprecated Use videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: */ + @Deprecated public AVVideoComposition(AVAsset asset, @Block VoidBlock1 ciFiltersApplier) { super((Handle) null, create(asset, ciFiltersApplier)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public AVVideoComposition(AVAsset asset, @Block VoidBlock1 applier, @Block VoidBlock2 completionHandler) { super((Handle) null, create(asset, applier, completionHandler)); retain(getHandle()); } /**/ /**/ @Property(selector = "customVideoCompositorClass") @@ -103,14 +119,39 @@ public AVVideoComposition() {} /**/ /**//**/ /**/ + /** + * @deprecated Use videoCompositionWithPropertiesOfAsset:completionHandler: + */ + @Deprecated @Method(selector = "videoCompositionWithPropertiesOfAsset:") protected static native @Pointer long create(AVAsset asset); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "videoCompositionWithPropertiesOfAsset:completionHandler:") + protected static native @Pointer long create(AVAsset asset, @Block VoidBlock2 completionHandler); /** * @since Available in iOS 9.0 and later. + * @deprecated Use videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: */ + @Deprecated @Method(selector = "videoCompositionWithAsset:applyingCIFiltersWithHandler:") protected static native @Pointer long create(AVAsset asset, @Block VoidBlock1 ciFiltersApplier); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler:") + protected static native @Pointer long create(AVAsset asset, @Block VoidBlock1 applier, @Block VoidBlock2 completionHandler); + /** + * @deprecated Use determineValidityForAsset:timeRange:validationDelegate:completionHandler: + */ + @Deprecated @Method(selector = "isValidForAsset:timeRange:validationDelegate:") public native boolean isValid(AVAsset asset, @ByVal CMTimeRange timeRange, AVVideoCompositionValidationHandling validationDelegate); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "determineValidityForAsset:timeRange:validationDelegate:completionHandler:") + public native void determineValidityForAsset(AVAsset asset, @ByVal CMTimeRange timeRange, AVVideoCompositionValidationHandling validationDelegate, @Block VoidBlock2 completionHandler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionCoreAnimationTool.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionCoreAnimationTool.java index 9d56c04de..625805e91 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionCoreAnimationTool.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionCoreAnimationTool.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstruction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstruction.java index acf787908..df9016b09 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstruction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstruction.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstructionProtocol.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstructionProtocol.java index 9fcf48026..73644c517 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstructionProtocol.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionInstructionProtocol.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionLayerInstruction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionLayerInstruction.java index cde7f17aa..c10df11b4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionLayerInstruction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionLayerInstruction.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderContext.java index 8f58dbcb5..f9d06f341 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderContext.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderContext.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderHint.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderHint.java index 76342fb49..6620036ec 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderHint.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionRenderHint.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandling.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandling.java index eab001382..129d9c80b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandling.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandling.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandlingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandlingAdapter.java index 32e77c838..b76e4ffab 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandlingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompositionValidationHandlingAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompressionSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompressionSettings.java index def788271..85ee8de3b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompressionSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoCompressionSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoH264EntropyMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoH264EntropyMode.java index 428abe803..8aed6998e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoH264EntropyMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoH264EntropyMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoProfileLevel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoProfileLevel.java index 3996d4741..f9d25ae4c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoProfileLevel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoProfileLevel.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoRange.java new file mode 100644 index 000000000..55e2bcf09 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoRange.java @@ -0,0 +1,156 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avfoundation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.corevideo.*; +import org.robovm.apple.mediatoolbox.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("AVFoundation") @StronglyLinked/**/ +@Marshaler(/**/AVVideoRange/**/.Marshaler.class) +/**/public/**/ class /**/AVVideoRange/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/AVVideoRange/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static AVVideoRange toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return AVVideoRange.valueOf(o); + } + @MarshalsPointer + public static long toNative(AVVideoRange o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(AVVideoRange.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (AVVideoRange o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVVideoRange SDR = new AVVideoRange("SDR"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVVideoRange HLG = new AVVideoRange("HLG"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final AVVideoRange PQ = new AVVideoRange("PQ"); + /**/ + + private static /**/AVVideoRange/**/[] values = new /**/AVVideoRange/**/[] {/**/SDR, HLG, PQ/**/}; + + /**/AVVideoRange/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/AVVideoRange/**/ valueOf(/**/NSString/**/ value) { + for (/**/AVVideoRange/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/AVVideoRange/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AVFoundation") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVVideoRangeSDR", optional=true) + public static native NSString SDR(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVVideoRangeHLG", optional=true) + public static native NSString HLG(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="AVVideoRangePQ", optional=true) + public static native NSString PQ(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoScalingMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoScalingMode.java index d3b2ade32..d0c2680e9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoScalingMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoScalingMode.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoSettings.java index fdaa22131..d74c89ddf 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoSettings.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoTransferFunction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoTransferFunction.java index e0067e38f..d851c0385 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoTransferFunction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoTransferFunction.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ @@ -70,5 +72,10 @@ */ @GlobalValue(symbol="AVVideoTransferFunction_ITU_R_2100_HLG", optional=true) public static native String ITU_R_2100_HLG(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVVideoTransferFunction_Linear", optional=true) + public static native String Linear(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoYCbCrMatrix.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoYCbCrMatrix.java index 5a691cb92..f10b1d388 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoYCbCrMatrix.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVVideoYCbCrMatrix.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSCoderExtensions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSCoderExtensions.java index 3fe384a9d..78cd42a60 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSCoderExtensions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSCoderExtensions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSValueExtensions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSValueExtensions.java index f5c1b14a5..e5fb740f0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSValueExtensions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/NSValueExtensions.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ From 3f7289e1e7c50601c80a78ab8472ac649e64f908 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:23:35 +0300 Subject: [PATCH 17/73] * ios16 bindings: CoreTelephony processed --- .../robovm/apple/coretelephony/CTCarrier.java | 26 +++++++++++++++++-- .../CTCellularPlanProvisioning.java | 6 ++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCarrier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCarrier.java index 0c114ecfd..2d8a7cd0f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCarrier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCarrier.java @@ -32,9 +32,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. Deprecated with no replacement + */ /**/ -/**/@Library("CoreTelephony") @NativeClass/**/ +/**/@Library("CoreTelephony") @NativeClass @Deprecated/**/ /**/public/**/ class /**/CTCarrier/**/ extends /**/NSObject/**/ /**//**/ { @@ -48,14 +50,34 @@ public CTCarrier() {} protected CTCarrier(SkipInit skipInit) { super(skipInit); } /**/ /**/ + /** + * @deprecated Deprecated in iOS 16.0. Deprecated; returns '--' at some point in the future + */ + @Deprecated @Property(selector = "carrierName") public native String getCarrierName(); + /** + * @deprecated Deprecated in iOS 16.0. Deprecated; returns '65535' at some point in the future + */ + @Deprecated @Property(selector = "mobileCountryCode") public native String getMobileCountryCode(); + /** + * @deprecated Deprecated in iOS 16.0. Deprecated; returns '65535' at some point in the future + */ + @Deprecated @Property(selector = "mobileNetworkCode") public native String getMobileNetworkCode(); + /** + * @deprecated Deprecated in iOS 16.0. Deprecated; returns '--' at some point in the future + */ + @Deprecated @Property(selector = "isoCountryCode") public native String getIsoCountryCode(); + /** + * @deprecated Deprecated in iOS 16.0. Deprecated; returns YES at some point in the future + */ + @Deprecated @Property(selector = "allowsVOIP") public native boolean allowsVOIP(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCellularPlanProvisioning.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCellularPlanProvisioning.java index b5b4dbcce..2b91052d5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCellularPlanProvisioning.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coretelephony/CTCellularPlanProvisioning.java @@ -50,7 +50,11 @@ public CTCellularPlanProvisioning() {} protected CTCellularPlanProvisioning(SkipInit skipInit) { super(skipInit); } /**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "supportsEmbeddedSIM") + public native boolean supportsEmbeddedSIM(); /**/ /**//**/ /**/ From 4dc092492f60300ef5106c84b74e7ec739d1566b Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:35:17 +0300 Subject: [PATCH 18/73] * ios16 bindings: new framework AVRouting --- .../src/main/bro-gen/avrouting.yaml | 54 ++++++++++ .../apple/avrouting/AVCustomDeviceRoute.java | 69 ++++++++++++ .../avrouting/AVCustomRoutingActionItem.java | 79 ++++++++++++++ .../avrouting/AVCustomRoutingController.java | 100 ++++++++++++++++++ .../AVCustomRoutingControllerDelegate.java | 62 +++++++++++ ...ustomRoutingControllerDelegateAdapter.java | 60 +++++++++++ .../apple/avrouting/AVCustomRoutingEvent.java | 69 ++++++++++++ .../avrouting/AVCustomRoutingEventReason.java | 64 +++++++++++ 8 files changed, 557 insertions(+) create mode 100755 compiler/cocoatouch/src/main/bro-gen/avrouting.yaml create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomDeviceRoute.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingActionItem.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingController.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEventReason.java diff --git a/compiler/cocoatouch/src/main/bro-gen/avrouting.yaml b/compiler/cocoatouch/src/main/bro-gen/avrouting.yaml new file mode 100755 index 000000000..b76565b1f --- /dev/null +++ b/compiler/cocoatouch/src/main/bro-gen/avrouting.yaml @@ -0,0 +1,54 @@ +package: org.robovm.apple.avrouting +include: [foundation, network, uniformtypeid] +library: AVRouting +framework: AVRouting +clang_args: ['-x', 'objective-c'] +headers: + - /System/Library/Frameworks/AVRouting.framework/Headers/AVRouting.h +typedefs: {} + +enums: + AVCustomRoutingEventReason: {} + +classes: + AVCustomDeviceRoute: {} #since 16.0 + AVCustomRoutingActionItem: {} #since 16.0 + AVCustomRoutingController: #since 16.0 + methods: + '-setActive:forRoute:': + name: setActive + AVCustomRoutingEvent: {} #since 16.0 + +protocols: + AVCustomRoutingControllerDelegate: #since 16.0 + methods: + '-customRoutingController:handleEvent:completionHandler:': + name: handleEvent + '-customRoutingController:eventDidTimeOut:': + name: eventDidTimeOut + '-customRoutingController:didSelectItem:': + name: didSelectItem + +functions: + # Make sure we don't miss any functions if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Function__#{g[0]}' + +values: + AVCustomRoutingController(.*)Notification: + class: AVCustomRoutingController + name: '#{g[0]}' + static_class: Notifications + type: NSString + + # Make sure we don't miss any values if new ones are introduced in a later version + (k?AV.*): + class: Fixme! + name: 'Value__#{g[0]}' + +constants: + # Make sure we don't miss any constants if new ones are introduced in a later version + (k?AV.*): + class: Fixme! + name: 'Constant__#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomDeviceRoute.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomDeviceRoute.java new file mode 100644 index 000000000..74a5247d9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomDeviceRoute.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVRouting") @NativeClass/**/ +/**/public/**/ class /**/AVCustomDeviceRoute/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVCustomDeviceRoutePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVCustomDeviceRoute.class); }/**/ + /**//**/ + /**/ + public AVCustomDeviceRoute() {} + protected AVCustomDeviceRoute(Handle h, long handle) { super(h, handle); } + protected AVCustomDeviceRoute(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "networkEndpoint") + public native NWEndpoint getNetworkEndpoint(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "bluetoothIdentifier") + public native NSUUID getBluetoothIdentifier(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingActionItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingActionItem.java new file mode 100644 index 000000000..ef0f3a7b8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingActionItem.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVRouting") @NativeClass/**/ +/**/public/**/ class /**/AVCustomRoutingActionItem/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVCustomRoutingActionItemPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVCustomRoutingActionItem.class); }/**/ + /**//**/ + /**/ + public AVCustomRoutingActionItem() {} + protected AVCustomRoutingActionItem(Handle h, long handle) { super(h, handle); } + protected AVCustomRoutingActionItem(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "type") + public native UTType getType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setType:") + public native void setType(UTType v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "overrideTitle") + public native String getOverrideTitle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setOverrideTitle:") + public native void setOverrideTitle(String v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingController.java new file mode 100644 index 000000000..87c596380 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingController.java @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVRouting") @NativeClass/**/ +/**/public/**/ class /**/AVCustomRoutingController/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVCustomRoutingControllerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVCustomRoutingController.class); }/**/ + /**//**/ + /**/ + public AVCustomRoutingController() {} + protected AVCustomRoutingController(Handle h, long handle) { super(h, handle); } + protected AVCustomRoutingController(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "delegate") + public native AVCustomRoutingControllerDelegate getDelegate(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(AVCustomRoutingControllerDelegate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "authorizedRoutes") + public native NSArray getAuthorizedRoutes(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "customActionItems") + public native NSArray getCustomActionItems(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCustomActionItems:") + public native void setCustomActionItems(NSArray v); + /**/ + /**//**/ + /**/ + @Library("AVRouting") + public static class Notifications { + static { Bro.bind(Notifications.class); } + + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="AVCustomRoutingControllerAuthorizedRoutesDidChangeNotification", optional=true) + public static native NSString AuthorizedRoutesDidChange(); + } + + @Method(selector = "invalidateAuthorizationForRoute:") + public native void invalidateAuthorizationForRoute(AVCustomDeviceRoute route); + @Method(selector = "setActive:forRoute:") + public native void setActive(boolean active, AVCustomDeviceRoute route); + @Method(selector = "isRouteActive:") + public native boolean isRouteActive(AVCustomDeviceRoute route); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegate.java new file mode 100644 index 000000000..e8365d124 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegate.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/AVCustomRoutingControllerDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "customRoutingController:handleEvent:completionHandler:") + void handleEvent(AVCustomRoutingController controller, AVCustomRoutingEvent event, @Block VoidBooleanBlock completionHandler); + @Method(selector = "customRoutingController:eventDidTimeOut:") + void eventDidTimeOut(AVCustomRoutingController controller, AVCustomRoutingEvent event); + @Method(selector = "customRoutingController:didSelectItem:") + void didSelectItem(AVCustomRoutingController controller, AVCustomRoutingActionItem customActionItem); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegateAdapter.java new file mode 100644 index 000000000..f196b68df --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingControllerDelegateAdapter.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/AVCustomRoutingControllerDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements AVCustomRoutingControllerDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("customRoutingController:handleEvent:completionHandler:") + public void handleEvent(AVCustomRoutingController controller, AVCustomRoutingEvent event, @Block VoidBooleanBlock completionHandler) {} + @NotImplemented("customRoutingController:eventDidTimeOut:") + public void eventDidTimeOut(AVCustomRoutingController controller, AVCustomRoutingEvent event) {} + @NotImplemented("customRoutingController:didSelectItem:") + public void didSelectItem(AVCustomRoutingController controller, AVCustomRoutingActionItem customActionItem) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEvent.java new file mode 100644 index 000000000..6371f25af --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEvent.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVRouting") @NativeClass/**/ +/**/public/**/ class /**/AVCustomRoutingEvent/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVCustomRoutingEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVCustomRoutingEvent.class); }/**/ + /**//**/ + /**/ + public AVCustomRoutingEvent() {} + protected AVCustomRoutingEvent(Handle h, long handle) { super(h, handle); } + protected AVCustomRoutingEvent(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "reason") + public native AVCustomRoutingEventReason getReason(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "route") + public native AVCustomDeviceRoute getRoute(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEventReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEventReason.java new file mode 100644 index 000000000..3e26f94c9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avrouting/AVCustomRoutingEventReason.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avrouting; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.network.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/AVCustomRoutingEventReason/**/ implements ValuedEnum { + /**/ + Activate(0L), + Deactivate(1L), + Reactivate(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/AVCustomRoutingEventReason/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/AVCustomRoutingEventReason/**/ valueOf(long n) { + for (/**/AVCustomRoutingEventReason/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/AVCustomRoutingEventReason/**/.class.getName()); + } +} From b610d3f66cb2fc897aa5fd3da70df26a7ffa397a Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:35:26 +0300 Subject: [PATCH 19/73] * ios16 bindings: AVKit processed --- .../cocoatouch/src/main/bro-gen/avkit.yaml | 12 ++- .../avkit/AVAudioSessionRouteSelection.java | 1 + .../apple/avkit/AVInterstitialTimeRange.java | 73 ++++++++++++++++++ .../org/robovm/apple/avkit/AVKitError.java | 1 + .../robovm/apple/avkit/AVKitErrorCode.java | 1 + .../avkit/AVPictureInPictureController.java | 1 + ...ctureInPictureControllerContentSource.java | 1 + .../AVPictureInPictureControllerDelegate.java | 1 + ...ureInPictureControllerDelegateAdapter.java | 1 + ...InPictureSampleBufferPlaybackDelegate.java | 1 + ...reSampleBufferPlaybackDelegateAdapter.java | 1 + ...ctureInPictureVideoCallViewController.java | 1 + .../robovm/apple/avkit/AVPlaybackSpeed.java | 75 +++++++++++++++++++ .../apple/avkit/AVPlayerViewController.java | 32 +++++++- .../avkit/AVPlayerViewControllerDelegate.java | 11 +++ ...AVPlayerViewControllerDelegateAdapter.java | 11 +++ .../robovm/apple/avkit/AVRoutePickerView.java | 11 +++ .../avkit/AVRoutePickerViewDelegate.java | 1 + .../AVRoutePickerViewDelegateAdapter.java | 1 + 19 files changed, 234 insertions(+), 3 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVInterstitialTimeRange.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlaybackSpeed.java diff --git a/compiler/cocoatouch/src/main/bro-gen/avkit.yaml b/compiler/cocoatouch/src/main/bro-gen/avkit.yaml index ac015838d..b6035ae2e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/avkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/avkit.yaml @@ -1,5 +1,5 @@ package: org.robovm.apple.avkit -include: [foundation, uikit, avfoundation, coremedia, coregraphics, iad, coreanimation] +include: [foundation, uikit, avfoundation, coremedia, coregraphics, iad, coreanimation, avrouting] library: AVKit framework: AVKit clang_args: ['-x', 'objective-c'] @@ -40,7 +40,11 @@ classes: '-initWithActiveVideoCallSourceView:contentViewController:': name: init AVPictureInPictureVideoCallViewController: {} #since 15.0 - + AVInterstitialTimeRange: {} #since 16.0 + AVPlaybackSpeed: #since 16.0 + methods: + '-initWithRate:localizedName:': + name: init protocols: AVPictureInPictureControllerDelegate: # DONE methods: @@ -78,6 +82,10 @@ protocols: name: willEndFullScreenPresentation '-playerViewController:restoreUserInterfaceForFullScreenExitWithCompletionHandler:': name: restoreUserInterfaceForFullScreenExit + '-playerViewController:willPresentInterstitialTimeRange:': + name: willPresentInterstitial + '-playerViewController:didPresentInterstitialTimeRange:': + name: didPresentInterstitial AVRoutePickerViewDelegate: methods: '-routePickerViewWillBeginPresentingRoutes:': diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVAudioSessionRouteSelection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVAudioSessionRouteSelection.java index fbf201a4c..3708f8689 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVAudioSessionRouteSelection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVAudioSessionRouteSelection.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVInterstitialTimeRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVInterstitialTimeRange.java new file mode 100644 index 000000000..b7b7c0c62 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVInterstitialTimeRange.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.iad.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVKit") @NativeClass/**/ +/**/public/**/ class /**/AVInterstitialTimeRange/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class AVInterstitialTimeRangePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVInterstitialTimeRange.class); }/**/ + /**//**/ + /**/ + public AVInterstitialTimeRange() {} + protected AVInterstitialTimeRange(Handle h, long handle) { super(h, handle); } + protected AVInterstitialTimeRange(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public AVInterstitialTimeRange(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "timeRange") + public native @ByVal CMTimeRange getTimeRange(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitError.java index 4935dbcac..17c737766 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitError.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitErrorCode.java index ccee742e6..573b57c1e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVKitErrorCode.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureController.java index 056b1d92f..ca27e7300 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureController.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerContentSource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerContentSource.java index 9c82f66e9..dcc8a515e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerContentSource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerContentSource.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegate.java index 2ab20a113..4726a09cc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegate.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegateAdapter.java index c9fa936cd..5d7b3baa3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureControllerDelegateAdapter.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegate.java index e5b56d868..d6b5fd567 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegate.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegateAdapter.java index 7d0991fce..7150e1cee 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureSampleBufferPlaybackDelegateAdapter.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureVideoCallViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureVideoCallViewController.java index 6dcc554f7..1e938bfcf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureVideoCallViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPictureInPictureVideoCallViewController.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlaybackSpeed.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlaybackSpeed.java new file mode 100644 index 000000000..fd36eeacf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlaybackSpeed.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.avkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.iad.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("AVKit") @NativeClass/**/ +/**/public/**/ class /**/AVPlaybackSpeed/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class AVPlaybackSpeedPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AVPlaybackSpeed.class); }/**/ + /**//**/ + /**/ + protected AVPlaybackSpeed() {} + protected AVPlaybackSpeed(Handle h, long handle) { super(h, handle); } + protected AVPlaybackSpeed(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithRate:localizedName:") + public AVPlaybackSpeed(float rate, String localizedName) { super((SkipInit) null); initObject(init(rate, localizedName)); } + /**/ + /**/ + @Property(selector = "systemDefaultSpeeds") + public static native NSArray getSystemDefaultSpeeds(); + @Property(selector = "rate") + public native float getRate(); + @Property(selector = "localizedName") + public native String getLocalizedName(); + @Property(selector = "localizedNumericName") + public native String getLocalizedNumericName(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithRate:localizedName:") + protected native @Pointer long init(float rate, String localizedName); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewController.java index af8ea7edb..b698f28c8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewController.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ @@ -95,6 +96,16 @@ public AVPlayerViewController() {} */ @Property(selector = "setAllowsPictureInPicturePlayback:") public native void setAllowsPictureInPicturePlayback(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "allowsVideoFrameAnalysis") + public native boolean allowsVideoFrameAnalysis(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAllowsVideoFrameAnalysis:") + public native void setAllowsVideoFrameAnalysis(boolean v); /** * @since Available in iOS 14.2 and later. */ @@ -165,6 +176,21 @@ public AVPlayerViewController() {} */ @Property(selector = "setDelegate:", strongRef = true) public native void setDelegate(AVPlayerViewControllerDelegate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "speeds") + public native NSArray getSpeeds(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSpeeds:") + public native void setSpeeds(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "selectedSpeed") + public native AVPlaybackSpeed getSelectedSpeed(); /**/ /**//**/ /** @@ -189,6 +215,10 @@ public static void preparePrerollAds() { AVPlayerViewControllerExtensions.preparePrerollAds(); } /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "selectSpeed:") + public native void selectSpeed(AVPlaybackSpeed speed); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegate.java index 55af84440..3feb60651 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegate.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ @@ -81,6 +82,16 @@ boolean shouldAutomaticallyDismissAtPictureInPictureStart(AVPlayerViewController playerViewController); @Method(selector = "playerViewController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:") void restoreUserInterfaceForPictureInPictureStop(AVPlayerViewController playerViewController, @Block VoidBooleanBlock completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "playerViewController:willPresentInterstitialTimeRange:") + void willPresentInterstitial(AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "playerViewController:didPresentInterstitialTimeRange:") + void didPresentInterstitial(AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegateAdapter.java index 8db85bd2c..3c75dfbf1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVPlayerViewControllerDelegateAdapter.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ @@ -83,5 +84,15 @@ public void didStopPictureInPicture(AVPlayerViewController playerViewController) public boolean shouldAutomaticallyDismissAtPictureInPictureStart(AVPlayerViewController playerViewController) { return false; } @NotImplemented("playerViewController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:") public void restoreUserInterfaceForPictureInPictureStop(AVPlayerViewController playerViewController, @Block VoidBooleanBlock completionHandler) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("playerViewController:willPresentInterstitialTimeRange:") + public void willPresentInterstitial(AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("playerViewController:didPresentInterstitialTimeRange:") + public void didPresentInterstitial(AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerView.java index af8360286..379a6bc15 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerView.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ @@ -77,6 +78,16 @@ public AVRoutePickerView() {} */ @Property(selector = "setPrioritizesVideoDevices:") public native void setPrioritizesVideoDevices(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "customRoutingController") + public native AVCustomRoutingController getCustomRoutingController(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCustomRoutingController:") + public native void setCustomRoutingController(AVCustomRoutingController v); @WeaklyLinked @Property(selector = "layerClass") public static native Class getLayerClass(); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegate.java index 749af2207..f58767eb6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegate.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegateAdapter.java index a280a0d90..4e1b2364f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avkit/AVRoutePickerViewDelegateAdapter.java @@ -34,6 +34,7 @@ import org.robovm.apple.coregraphics.*; import org.robovm.apple.iad.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.avrouting.*; /**/ /**/ From bf8e545b938d4c5db84099a53028764336a63bab Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:37:08 +0300 Subject: [PATCH 20/73] * ios16 bindings: CoreVideo processed --- .../org/robovm/apple/corevideo/CVPixelFormatDescription.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corevideo/CVPixelFormatDescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corevideo/CVPixelFormatDescription.java index dface8947..f4f5b2a27 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corevideo/CVPixelFormatDescription.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corevideo/CVPixelFormatDescription.java @@ -477,6 +477,11 @@ public static class Keys { */ @GlobalValue(symbol="kCVPixelFormatContainsGrayscale", optional=true) public static native CFString ContainsGrayscale(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCVPixelFormatContainsSenselArray", optional=true) + public static native CFString ContainsSenselArray(); /** * @since Available in iOS 9.0 and later. */ From 74536c9265e2579bbfa5b761a5f90d93a8f39c20 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:38:34 +0300 Subject: [PATCH 21/73] * ios16 bindings: CryptoTokenKit processed --- .../main/java/org/robovm/apple/cryptotokenkit/TKErrorCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/cryptotokenkit/TKErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/cryptotokenkit/TKErrorCode.java index 602cafed9..090c2e1d7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/cryptotokenkit/TKErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/cryptotokenkit/TKErrorCode.java @@ -106,7 +106,7 @@ public static class NSErrorWrap extends NSError { } public static String getClassDomain() { - /** must be incerted in value section */ + /** must be inserted in value section */ return /**/TKErrorCode/**/.getClassDomain(); } } From 656ac37c5ad1b0ac582c066382598da889cd0d2f Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:58:08 +0300 Subject: [PATCH 22/73] * ios16 bindings: CarPlay processed --- .../cocoatouch/src/main/bro-gen/carplay.yaml | 4 +++ .../robovm/apple/carplay/CPAlertAction.java | 15 ++++++++++ .../apple/carplay/CPPointOfInterest.java | 30 +++++++++++++++++++ .../carplay/CPPointOfInterestTemplate.java | 14 ++++++++- 4 files changed, 62 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/carplay.yaml b/compiler/cocoatouch/src/main/bro-gen/carplay.yaml index b9ed4b295..080c0d506 100755 --- a/compiler/cocoatouch/src/main/bro-gen/carplay.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/carplay.yaml @@ -38,6 +38,8 @@ classes: methods: '-initWithTitle:style:handler:': name: init + '-initWithTitle:color:handler:': + name: init CPAlertTemplate: #since 12.0 methods: '-initWithTitleVariants:actions:': @@ -268,6 +270,8 @@ classes: methods: '-initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:': name: init + '-initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:': + name: init CPPointOfInterestTemplate: #since 14.0 methods: '-initWithTitle:pointsOfInterest:selectedIndex:': diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPAlertAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPAlertAction.java index 3ab4fd277..0474c8b77 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPAlertAction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPAlertAction.java @@ -53,6 +53,11 @@ protected CPAlertAction() {} protected CPAlertAction(SkipInit skipInit) { super(skipInit); } @Method(selector = "initWithTitle:style:handler:") public CPAlertAction(String title, CPAlertActionStyle style, @Block VoidBlock1 handler) { super((SkipInit) null); initObject(init(title, style, handler)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithTitle:color:handler:") + public CPAlertAction(String title, UIColor color, @Block VoidBlock1 handler) { super((SkipInit) null); initObject(init(title, color, handler)); } @Method(selector = "initWithCoder:") public CPAlertAction(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ @@ -63,6 +68,11 @@ protected CPAlertAction() {} public native CPAlertActionStyle getStyle(); @Property(selector = "handler") public native @Block VoidBlock1 getHandler(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "color") + public native UIColor getColor(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ @@ -70,6 +80,11 @@ protected CPAlertAction() {} /**/ @Method(selector = "initWithTitle:style:handler:") protected native @Pointer long init(String title, CPAlertActionStyle style, @Block VoidBlock1 handler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithTitle:color:handler:") + protected native @Pointer long init(String title, UIColor color, @Block VoidBlock1 handler); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); @Method(selector = "initWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterest.java index fac39e074..81bf499a9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterest.java @@ -51,12 +51,27 @@ protected CPPointOfInterest() {} protected CPPointOfInterest(Handle h, long handle) { super(h, handle); } protected CPPointOfInterest(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:") + public CPPointOfInterest(MKMapItem location, String title, String subtitle, String summary, String detailTitle, String detailSubtitle, String detailSummary, UIImage pinImage, UIImage selectedPinImage) { super((SkipInit) null); initObject(init(location, title, subtitle, summary, detailTitle, detailSubtitle, detailSummary, pinImage, selectedPinImage)); } @Method(selector = "initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:") public CPPointOfInterest(MKMapItem location, String title, String subtitle, String summary, String detailTitle, String detailSubtitle, String detailSummary, UIImage pinImage) { super((SkipInit) null); initObject(init(location, title, subtitle, summary, detailTitle, detailSubtitle, detailSummary, pinImage)); } @Method(selector = "initWithCoder:") public CPPointOfInterest(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pinImageSize") + public static native @ByVal CGSize getPinImageSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "selectedPinImageSize") + public static native @ByVal CGSize getSelectedPinImageSize(); @Property(selector = "location") public native MKMapItem getLocation(); @Property(selector = "setLocation:") @@ -89,6 +104,16 @@ protected CPPointOfInterest() {} public native UIImage getPinImage(); @Property(selector = "setPinImage:") public native void setPinImage(UIImage v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "selectedPinImage") + public native UIImage getSelectedPinImage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSelectedPinImage:") + public native void setSelectedPinImage(UIImage v); @Property(selector = "primaryButton") public native CPTextButton getPrimaryButton(); @Property(selector = "setPrimaryButton:") @@ -106,6 +131,11 @@ protected CPPointOfInterest() {} /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:") + protected native @Pointer long init(MKMapItem location, String title, String subtitle, String summary, String detailTitle, String detailSubtitle, String detailSummary, UIImage pinImage, UIImage selectedPinImage); @Method(selector = "initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:") protected native @Pointer long init(MKMapItem location, String title, String subtitle, String summary, String detailTitle, String detailSubtitle, String detailSummary, UIImage pinImage); @Method(selector = "encodeWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterestTemplate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterestTemplate.java index 0531c33e3..0300db3c9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterestTemplate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/carplay/CPPointOfInterestTemplate.java @@ -42,7 +42,7 @@ /**/@Library("CarPlay") @NativeClass/**/ /**/public/**/ class /**/CPPointOfInterestTemplate/**/ extends /**/CPTemplate/**/ - /**//**/ { + /**/implements CPBarButtonProviding/**/ { /**/public static class CPPointOfInterestTemplatePtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(CPPointOfInterestTemplate.class); }/**/ @@ -69,6 +69,18 @@ protected CPPointOfInterestTemplate() {} public native CPPointOfInterestTemplateDelegate getPointOfInterestDelegate(); @Property(selector = "setPointOfInterestDelegate:", strongRef = true) public native void setPointOfInterestDelegate(CPPointOfInterestTemplateDelegate v); + @Property(selector = "leadingNavigationBarButtons") + public native NSArray getLeadingNavigationBarButtons(); + @Property(selector = "setLeadingNavigationBarButtons:") + public native void setLeadingNavigationBarButtons(NSArray v); + @Property(selector = "trailingNavigationBarButtons") + public native NSArray getTrailingNavigationBarButtons(); + @Property(selector = "setTrailingNavigationBarButtons:") + public native void setTrailingNavigationBarButtons(NSArray v); + @Property(selector = "backButton") + public native CPBarButton getBackButton(); + @Property(selector = "setBackButton:") + public native void setBackButton(CPBarButton v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ From d758b715982d668c02b9f0bc69ac523083e86591 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 15:59:20 +0300 Subject: [PATCH 23/73] * ios16 bindings: EventKit processed --- .../java/org/robovm/apple/eventkit/EKEventStore.java | 10 ++++++++++ .../main/java/org/robovm/apple/eventkit/EKSource.java | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java index bf6ce1d98..b84bd3add 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java @@ -62,6 +62,11 @@ public void invoke(NSNotification a) { public EKEventStore() {} protected EKEventStore(Handle h, long handle) { super(h, handle); } protected EKEventStore(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithSources:") + public EKEventStore(NSArray sources) { super((SkipInit) null); initObject(initWithSources(sources)); } /**/ /**/ @Property(selector = "eventStoreIdentifier") @@ -81,6 +86,11 @@ public EKEventStore() {} @GlobalValue(symbol="EKEventStoreChangedNotification", optional=true) public static native NSString ChangedNotification(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithSources:") + protected native @Pointer long initWithSources(NSArray sources); @Method(selector = "requestAccessToEntityType:completion:") public native void requestAccess(EKEntityType entityType, @Block VoidBlock2 completion); @Method(selector = "sourceWithIdentifier:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKSource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKSource.java index 64b468ef9..ce7613b68 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKSource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKSource.java @@ -57,6 +57,11 @@ public EKSource() {} public native EKSourceType getSourceType(); @Property(selector = "title") public native String getTitle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isDelegate") + public native boolean isDelegate(); /**/ /**//**/ /**/ From 03379aab779fea45f2744c44bd7e6a7257da64e2 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 16:00:33 +0300 Subject: [PATCH 24/73] * ios16 bindings: EventKit processed --- compiler/cocoatouch/src/main/bro-gen/eventkit.yaml | 2 ++ .../src/main/java/org/robovm/apple/eventkit/EKEventStore.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/eventkit.yaml b/compiler/cocoatouch/src/main/bro-gen/eventkit.yaml index d3492515e..a81fd794f 100755 --- a/compiler/cocoatouch/src/main/bro-gen/eventkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/eventkit.yaml @@ -178,6 +178,8 @@ classes: throws: NSErrorException '+authorizationStatusForEntityType:': name: getAuthorizationStatusForEntityType + '-initWithSources:': + name: init EKObject: # DONE skip_handle_constructor: false EKParticipant: # DONE diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java index b84bd3add..139176bff 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/eventkit/EKEventStore.java @@ -66,7 +66,7 @@ public EKEventStore() {} * @since Available in iOS 16.0 and later. */ @Method(selector = "initWithSources:") - public EKEventStore(NSArray sources) { super((SkipInit) null); initObject(initWithSources(sources)); } + public EKEventStore(NSArray sources) { super((SkipInit) null); initObject(init(sources)); } /**/ /**/ @Property(selector = "eventStoreIdentifier") @@ -90,7 +90,7 @@ public EKEventStore() {} * @since Available in iOS 16.0 and later. */ @Method(selector = "initWithSources:") - protected native @Pointer long initWithSources(NSArray sources); + protected native @Pointer long init(NSArray sources); @Method(selector = "requestAccessToEntityType:completion:") public native void requestAccess(EKEntityType entityType, @Block VoidBlock2 completion); @Method(selector = "sourceWithIdentifier:") From 95f8eb51275ef32bbbac2297f5b7378767f8b1da Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 16:05:07 +0300 Subject: [PATCH 25/73] * ios16 bindings: CloudKit processed --- .../cocoatouch/src/main/bro-gen/cloudkit.yaml | 11 ++- .../cloudkit/CKAllowedSharingOptions.java | 81 +++++++++++++++++++ .../apple/cloudkit/CKShareMetadata.java | 2 +- .../CKSharingParticipantAccessOption.java | 68 ++++++++++++++++ .../CKSharingParticipantPermissionOption.java | 68 ++++++++++++++++ .../cloudkit/CKSystemSharingUIObserver.java | 71 ++++++++++++++++ 6 files changed, 299 insertions(+), 2 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKAllowedSharingOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantAccessOption.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantPermissionOption.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSystemSharingUIObserver.java diff --git a/compiler/cocoatouch/src/main/bro-gen/cloudkit.yaml b/compiler/cocoatouch/src/main/bro-gen/cloudkit.yaml index 0d8ce92b9..0a74153e9 100755 --- a/compiler/cocoatouch/src/main/bro-gen/cloudkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/cloudkit.yaml @@ -42,6 +42,8 @@ enums: CKQuerySubscriptionOptions: { prefix: CKQuerySubscriptionOptions} CKOperationGroupTransferSize: {} #since 11.0 CKShareParticipantRole: {} #since 12.0 + CKSharingParticipantAccessOption: {} #since 16.0 + CKSharingParticipantPermissionOption: {} #since 16.0 classes: CKError: extends: NSError @@ -466,7 +468,14 @@ classes: '-init.*': name: init CKFetchRecordZoneChangesConfiguration: {} #since 12.0 - + CKAllowedSharingOptions: #since 16.0 + methods: + '-initWithAllowedParticipantPermissionOptions:allowedParticipantAccessOptions:': + name: init + CKSystemSharingUIObserver: #since 16.0 + methods: + '-initWithContainer:': + name: init protocols: CKRecordValue: # DONE adapter: false diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKAllowedSharingOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKAllowedSharingOptions.java new file mode 100644 index 000000000..7f1e14ee5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKAllowedSharingOptions.java @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.cloudkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.fileprovider.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CloudKit") @NativeClass/**/ +/**/public/**/ class /**/CKAllowedSharingOptions/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class CKAllowedSharingOptionsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CKAllowedSharingOptions.class); }/**/ + /**//**/ + /**/ + public CKAllowedSharingOptions() {} + protected CKAllowedSharingOptions(Handle h, long handle) { super(h, handle); } + protected CKAllowedSharingOptions(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithAllowedParticipantPermissionOptions:allowedParticipantAccessOptions:") + public CKAllowedSharingOptions(CKSharingParticipantPermissionOption allowedParticipantPermissionOptions, CKSharingParticipantAccessOption allowedParticipantAccessOptions) { super((SkipInit) null); initObject(init(allowedParticipantPermissionOptions, allowedParticipantAccessOptions)); } + @Method(selector = "initWithCoder:") + public CKAllowedSharingOptions(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "allowedParticipantPermissionOptions") + public native CKSharingParticipantPermissionOption getAllowedParticipantPermissionOptions(); + @Property(selector = "setAllowedParticipantPermissionOptions:") + public native void setAllowedParticipantPermissionOptions(CKSharingParticipantPermissionOption v); + @Property(selector = "allowedParticipantAccessOptions") + public native CKSharingParticipantAccessOption getAllowedParticipantAccessOptions(); + @Property(selector = "setAllowedParticipantAccessOptions:") + public native void setAllowedParticipantAccessOptions(CKSharingParticipantAccessOption v); + @Property(selector = "standardOptions") + public static native CKAllowedSharingOptions getStandardOptions(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithAllowedParticipantPermissionOptions:allowedParticipantAccessOptions:") + protected native @Pointer long init(CKSharingParticipantPermissionOption allowedParticipantPermissionOptions, CKSharingParticipantAccessOption allowedParticipantAccessOptions); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKShareMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKShareMetadata.java index d4e4766a7..bd2c022c9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKShareMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKShareMetadata.java @@ -85,7 +85,7 @@ public CKShareMetadata() {} public native CKShareParticipantType getParticipantType(); /** * @since Available in iOS 10.0 and later. - * @deprecated Use hierarchicalRootRecordID + * @deprecated Deprecated in iOS 16.0. Use hierarchicalRootRecordID */ @Deprecated @Property(selector = "rootRecordID") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantAccessOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantAccessOption.java new file mode 100644 index 000000000..e1018983d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantAccessOption.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.cloudkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.fileprovider.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/CKSharingParticipantAccessOption/**/ extends Bits*/CKSharingParticipantAccessOption/**/> { + /**/ + public static final CKSharingParticipantAccessOption None = new CKSharingParticipantAccessOption(0L); + public static final CKSharingParticipantAccessOption AnyoneWithLink = new CKSharingParticipantAccessOption(1L); + public static final CKSharingParticipantAccessOption SpecifiedRecipientsOnly = new CKSharingParticipantAccessOption(2L); + public static final CKSharingParticipantAccessOption Any = new CKSharingParticipantAccessOption(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/CKSharingParticipantAccessOption/**/[] values = _values(/**/CKSharingParticipantAccessOption/**/.class); + + public /**/CKSharingParticipantAccessOption/**/(long value) { super(value); } + private /**/CKSharingParticipantAccessOption/**/(long value, long mask) { super(value, mask); } + protected /**/CKSharingParticipantAccessOption/**/ wrap(long value, long mask) { + return new /**/CKSharingParticipantAccessOption/**/(value, mask); + } + protected /**/CKSharingParticipantAccessOption/**/[] _values() { + return values; + } + public static /**/CKSharingParticipantAccessOption/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantPermissionOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantPermissionOption.java new file mode 100644 index 000000000..e9c90fa75 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSharingParticipantPermissionOption.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.cloudkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.fileprovider.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/CKSharingParticipantPermissionOption/**/ extends Bits*/CKSharingParticipantPermissionOption/**/> { + /**/ + public static final CKSharingParticipantPermissionOption None = new CKSharingParticipantPermissionOption(0L); + public static final CKSharingParticipantPermissionOption ReadOnly = new CKSharingParticipantPermissionOption(1L); + public static final CKSharingParticipantPermissionOption ReadWrite = new CKSharingParticipantPermissionOption(2L); + public static final CKSharingParticipantPermissionOption Any = new CKSharingParticipantPermissionOption(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/CKSharingParticipantPermissionOption/**/[] values = _values(/**/CKSharingParticipantPermissionOption/**/.class); + + public /**/CKSharingParticipantPermissionOption/**/(long value) { super(value); } + private /**/CKSharingParticipantPermissionOption/**/(long value, long mask) { super(value, mask); } + protected /**/CKSharingParticipantPermissionOption/**/ wrap(long value, long mask) { + return new /**/CKSharingParticipantPermissionOption/**/(value, mask); + } + protected /**/CKSharingParticipantPermissionOption/**/[] _values() { + return values; + } + public static /**/CKSharingParticipantPermissionOption/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSystemSharingUIObserver.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSystemSharingUIObserver.java new file mode 100644 index 000000000..39e07245b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/cloudkit/CKSystemSharingUIObserver.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.cloudkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.fileprovider.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CloudKit") @NativeClass/**/ +/**/public/**/ class /**/CKSystemSharingUIObserver/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class CKSystemSharingUIObserverPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CKSystemSharingUIObserver.class); }/**/ + /**//**/ + /**/ + protected CKSystemSharingUIObserver() {} + protected CKSystemSharingUIObserver(Handle h, long handle) { super(h, handle); } + protected CKSystemSharingUIObserver(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithContainer:") + public CKSystemSharingUIObserver(CKContainer container) { super((SkipInit) null); initObject(init(container)); } + /**/ + /**/ + @Property(selector = "systemSharingUIDidSaveShareBlock") + public native @Block VoidBlock3 getSystemSharingUIDidSaveShareBlock(); + @Property(selector = "setSystemSharingUIDidSaveShareBlock:") + public native void setSystemSharingUIDidSaveShareBlock(@Block VoidBlock3 v); + @Property(selector = "systemSharingUIDidStopSharingBlock") + public native @Block VoidBlock2 getSystemSharingUIDidStopSharingBlock(); + @Property(selector = "setSystemSharingUIDidStopSharingBlock:") + public native void setSystemSharingUIDidStopSharingBlock(@Block VoidBlock2 v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithContainer:") + protected native @Pointer long init(CKContainer container); + /**/ +} From 0e1c4809dd9458efbaa2d2311a49851eededd8e4 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 16:06:18 +0300 Subject: [PATCH 26/73] * ios16 bindings: Contacts processed --- .../src/main/java/org/robovm/apple/contacts/CNFetchRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/contacts/CNFetchRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/contacts/CNFetchRequest.java index e6a3761e1..846a684fb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/contacts/CNFetchRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/contacts/CNFetchRequest.java @@ -32,7 +32,7 @@ /**/ /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 9.0 and later. */ /**/ /**/@Library("Contacts") @NativeClass/**/ From b06ac404c93fbbc457bbb779ac336bb9df2fd2f2 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 16:12:50 +0300 Subject: [PATCH 27/73] * ios16 bindings: CoreAudio processed --- .../apple/coreaudio/AudioChannelLabel.java | 13 +++++++++++++ .../coreaudio/AudioChannelLayoutTag.java | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLabel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLabel.java index da051860e..322736e26 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLabel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLabel.java @@ -80,6 +80,18 @@ public enum /**/AudioChannelLabel/**/ implements ValuedEnum { LeftTopRear(52L), CenterTopRear(53L), RightTopRear(54L), + LeftSideSurround(55L), + RightSideSurround(56L), + LeftBottom(57L), + RightBottom(58L), + CenterBottom(59L), + LeftTopSurround(60L), + RightTopSurround(61L), + LFE3(62L), + LeftBackSurround(63L), + RightBackSurround(64L), + LeftEdgeOfScreen(65L), + RightEdgeOfScreen(66L), Ambisonic_W(200L), Ambisonic_X(201L), Ambisonic_Y(202L), @@ -132,6 +144,7 @@ public enum /**/AudioChannelLabel/**/ implements ValuedEnum { HOA_ACN_65024(196096L), HOA_SN3D(131072L), HOA_N3D(196608L), + Object(262144L), BeginReserved(4026531840L), EndReserved(4294967294L); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLayoutTag.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLayoutTag.java index 47046d476..e3a433c61 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLayoutTag.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudio/AudioChannelLayoutTag.java @@ -213,6 +213,25 @@ public final class /**/AudioChannelLayoutTag/**/ extends Bits Date: Wed, 21 Sep 2022 16:14:17 +0300 Subject: [PATCH 28/73] * ios16 bindings: CoreAnimation processed --- .../src/main/bro-gen/coreanimation.yaml | 23 ++++- .../robovm/apple/coreanimation/CAAction.java | 1 + .../apple/coreanimation/CAActionAdapter.java | 1 + .../coreanimation/CAActionIdentifier.java | 1 + .../apple/coreanimation/CAAnimation.java | 1 + .../CAAnimationCalculationMode.java | 1 + .../coreanimation/CAAnimationDelegate.java | 1 + .../CAAnimationDelegateAdapter.java | 1 + .../apple/coreanimation/CAAnimationGroup.java | 1 + .../CAAnimationRotationMode.java | 1 + .../apple/coreanimation/CABasicAnimation.java | 1 + .../apple/coreanimation/CACornerMask.java | 1 + .../apple/coreanimation/CADisplayLink.java | 1 + .../apple/coreanimation/CAEAGLLayer.java | 1 + .../apple/coreanimation/CAEDRMetadata.java | 73 ++++++++++++++ .../coreanimation/CAEdgeAntialiasingMask.java | 1 + .../apple/coreanimation/CAEmitterCell.java | 1 + .../apple/coreanimation/CAEmitterLayer.java | 1 + .../apple/coreanimation/CAEmitterMode.java | 1 + .../coreanimation/CAEmitterRenderMode.java | 1 + .../apple/coreanimation/CAEmitterShape.java | 1 + .../apple/coreanimation/CAFillMode.java | 1 + .../robovm/apple/coreanimation/CAFilter.java | 1 + .../apple/coreanimation/CAFrameRateRange.java | 1 + .../apple/coreanimation/CAGradientLayer.java | 1 + .../apple/coreanimation/CAGradientType.java | 1 + .../robovm/apple/coreanimation/CAGravity.java | 1 + .../coreanimation/CAKeyframeAnimation.java | 1 + .../robovm/apple/coreanimation/CALayer.java | 1 + .../coreanimation/CALayerContentsFormat.java | 1 + .../coreanimation/CALayerCornerCurve.java | 1 + .../apple/coreanimation/CALayerDelegate.java | 1 + .../coreanimation/CALayerDelegateAdapter.java | 1 + .../robovm/apple/coreanimation/CALineCap.java | 1 + .../apple/coreanimation/CALineJoin.java | 1 + .../apple/coreanimation/CAMediaTiming.java | 1 + .../coreanimation/CAMediaTimingAdapter.java | 1 + .../coreanimation/CAMediaTimingFunction.java | 1 + .../CAMediaTimingFunctionName.java | 1 + .../apple/coreanimation/CAMetalDrawable.java | 1 + .../coreanimation/CAMetalDrawableAdapter.java | 1 + .../apple/coreanimation/CAMetalLayer.java | 31 ++++++ .../coreanimation/CAPropertyAnimation.java | 1 + .../apple/coreanimation/CARenderer.java | 99 +++++++++++++++++++ .../coreanimation/CAReplicatorLayer.java | 1 + .../apple/coreanimation/CAScrollLayer.java | 1 + .../apple/coreanimation/CAScrollMode.java | 1 + .../apple/coreanimation/CAShapeFillRule.java | 1 + .../apple/coreanimation/CAShapeLayer.java | 1 + .../coreanimation/CASpringAnimation.java | 1 + .../coreanimation/CATextAlignmentMode.java | 1 + .../apple/coreanimation/CATextLayer.java | 1 + .../coreanimation/CATextTruncationMode.java | 1 + .../apple/coreanimation/CATiledLayer.java | 1 + .../apple/coreanimation/CATransaction.java | 1 + .../coreanimation/CATransactionProperty.java | 1 + .../apple/coreanimation/CATransform3D.java | 1 + .../apple/coreanimation/CATransformLayer.java | 1 + .../apple/coreanimation/CATransition.java | 1 + .../coreanimation/CATransitionSubType.java | 1 + .../apple/coreanimation/CATransitionType.java | 1 + .../apple/coreanimation/CAValueFunction.java | 1 + .../coreanimation/CAValueFunctionName.java | 1 + .../coreanimation/NSValueExtensions.java | 1 + 64 files changed, 284 insertions(+), 2 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEDRMetadata.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CARenderer.java diff --git a/compiler/cocoatouch/src/main/bro-gen/coreanimation.yaml b/compiler/cocoatouch/src/main/bro-gen/coreanimation.yaml index 1c6d3e27f..7e7f78e3d 100755 --- a/compiler/cocoatouch/src/main/bro-gen/coreanimation.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/coreanimation.yaml @@ -1,5 +1,5 @@ package: org.robovm.apple.coreanimation -include: [foundation, coregraphics, coreimage, coretext, opengles, metal] +include: [foundation, coregraphics, coreimage, coretext, opengles, metal, corevideo] library: QuartzCore framework: QuartzCore clang_args: ['-x', 'objective-c'] @@ -319,7 +319,19 @@ classes: parameters: name: type: CAValueFunctionName - + CAEDRMetadata: #since 16.0 + methods: + '+HDR10MetadataWithDisplayInfo:contentInfo:opticalOutputScale:': + name: createHDR10Metadata + '+HDR10MetadataWithMinLuminance:maxLuminance:opticalOutputScale:': + name: createHDR10Metadata + CARenderer: #since 2.0 + methods: + '-beginFrameAtTime:timeStamp:': + name: beginFrame + '+rendererWithMTLTexture:options:': + name: create + constructor: true protocols: CAAction: # DONE methods: @@ -500,6 +512,13 @@ values: class: CAFrameRateRange name: getDefault + kCARendererColorSpace: + class: CARenderer + name: getColorSpace + kCARendererMetalCommandQueue: + class: CARenderer + name: getMetalCommandQueue + k?CA(.*): class: CoreAnimation name: '#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAction.java index 16c9ed8c2..1974c9524 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAction.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionAdapter.java index 95bb43198..78bf0d6c2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionAdapter.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionIdentifier.java index 75e702dcf..de5aa8721 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAActionIdentifier.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimation.java index bc339686b..a4d335240 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimation.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ import org.robovm.rt.annotation.WeaklyLinked; diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationCalculationMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationCalculationMode.java index f6278c8ff..a8b0cf8b8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationCalculationMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationCalculationMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegate.java index 81afe569f..fba411d9d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegate.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegateAdapter.java index 5fb994ec4..4f7697ec5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationDelegateAdapter.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationGroup.java index 86a0d2591..8b592d556 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationGroup.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationRotationMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationRotationMode.java index b26b0a1cb..0afb31287 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationRotationMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAAnimationRotationMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CABasicAnimation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CABasicAnimation.java index 60143aa0a..6ae708efd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CABasicAnimation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CABasicAnimation.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CACornerMask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CACornerMask.java index b3a8539aa..34e623dc4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CACornerMask.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CACornerMask.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CADisplayLink.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CADisplayLink.java index 94edf607c..eaddaf92d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CADisplayLink.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CADisplayLink.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEAGLLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEAGLLayer.java index 37dd0724b..6c587ee2f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEAGLLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEAGLLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEDRMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEDRMetadata.java new file mode 100644 index 000000000..c90de921a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEDRMetadata.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coreanimation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.opengles.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("QuartzCore") @NativeClass/**/ +/**/public/**/ class /**/CAEDRMetadata/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class CAEDRMetadataPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CAEDRMetadata.class); }/**/ + /**//**/ + /**/ + protected CAEDRMetadata() {} + protected CAEDRMetadata(Handle h, long handle) { super(h, handle); } + protected CAEDRMetadata(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "HLGMetadata") + public static native CAEDRMetadata getHLGMetadata(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isAvailable") + public static native boolean isAvailable(); + /**/ + /**//**/ + /**/ + @Method(selector = "HDR10MetadataWithDisplayInfo:contentInfo:opticalOutputScale:") + public static native CAEDRMetadata createHDR10Metadata(NSData displayData, NSData contentData, float scale); + @Method(selector = "HDR10MetadataWithMinLuminance:maxLuminance:opticalOutputScale:") + public static native CAEDRMetadata createHDR10Metadata(float minNits, float maxNits, float scale); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEdgeAntialiasingMask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEdgeAntialiasingMask.java index 2394766e4..3eef2a8c6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEdgeAntialiasingMask.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEdgeAntialiasingMask.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterCell.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterCell.java index d86c76f21..8ad21f295 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterCell.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterCell.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterLayer.java index 859148dd1..9bd9980ca 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterMode.java index 42e35eb67..9ccfb38ff 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterRenderMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterRenderMode.java index 3d4e53b2f..6af5c6396 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterRenderMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterRenderMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterShape.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterShape.java index fc0ee5a84..922acfbef 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterShape.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAEmitterShape.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFillMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFillMode.java index 928f86625..ff6faae4a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFillMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFillMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFilter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFilter.java index 3ea688172..3b1a7b6c6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFilter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFilter.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFrameRateRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFrameRateRange.java index b9b241c42..7adb46b7a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFrameRateRange.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAFrameRateRange.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientLayer.java index fdfd0b896..afe2af81c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientType.java index a2e8baab3..005880326 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGradientType.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGravity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGravity.java index 3d813b376..6327366f0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGravity.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAGravity.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAKeyframeAnimation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAKeyframeAnimation.java index 551331f32..3a8679e52 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAKeyframeAnimation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAKeyframeAnimation.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayer.java index 4c7664e6f..cf1a8f0f6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerContentsFormat.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerContentsFormat.java index f83c469d5..652f280c5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerContentsFormat.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerContentsFormat.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerCornerCurve.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerCornerCurve.java index 2654f6b69..8c40d68a2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerCornerCurve.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerCornerCurve.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegate.java index 8deb1d02e..51eae45b4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegate.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegateAdapter.java index 2771d7b47..af5d41812 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALayerDelegateAdapter.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineCap.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineCap.java index 94e92c56f..55778bd66 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineCap.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineCap.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineJoin.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineJoin.java index 2734230ae..e5a96586f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineJoin.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CALineJoin.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTiming.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTiming.java index 44d137dc5..16093d333 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTiming.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTiming.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingAdapter.java index 8356cfd67..02eec2320 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingAdapter.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunction.java index 965823819..150cc8634 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunction.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunctionName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunctionName.java index 3e07921d8..b3a62777b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunctionName.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMediaTimingFunctionName.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawable.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawable.java index f8ed26458..9cb347f5c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawable.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawable.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawableAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawableAdapter.java index 60c65fd99..e5448207c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawableAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalDrawableAdapter.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalLayer.java index ed3432246..093863d7c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAMetalLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ @@ -97,6 +98,26 @@ public CAMetalLayer() {} public native CGColorSpace getColorspace(); @Property(selector = "setColorspace:") public native void setColorspace(CGColorSpace v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "wantsExtendedDynamicRangeContent") + public native boolean wantsExtendedDynamicRangeContent(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setWantsExtendedDynamicRangeContent:") + public native void setWantsExtendedDynamicRangeContent(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "EDRMetadata") + public native CAEDRMetadata getEDRMetadata(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setEDRMetadata:") + public native void setEDRMetadata(CAEDRMetadata v); /** * @since Available in iOS 11.0 and later. */ @@ -107,6 +128,16 @@ public CAMetalLayer() {} */ @Property(selector = "setAllowsNextDrawableTimeout:") public native void setAllowsNextDrawableTimeout(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "developerHUDProperties") + public native NSDictionary getDeveloperHUDProperties(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDeveloperHUDProperties:") + public native void setDeveloperHUDProperties(NSDictionary v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAPropertyAnimation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAPropertyAnimation.java index 76dc42b61..c8a10830d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAPropertyAnimation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAPropertyAnimation.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CARenderer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CARenderer.java new file mode 100644 index 000000000..e7fcd769b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CARenderer.java @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coreanimation; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.opengles.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; +/**/ + +/**/ + +/**/ +/**/@Library("QuartzCore") @NativeClass/**/ +/**/public/**/ class /**/CARenderer/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class CARendererPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CARenderer.class); }/**/ + /**//**/ + /**/ + public CARenderer() {} + protected CARenderer(Handle h, long handle) { super(h, handle); } + protected CARenderer(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 11.0 and later. + */ + public CARenderer(MTLTexture tex, NSDictionary dict) { super((Handle) null, create(tex, dict)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "layer") + public native CALayer getLayer(); + @Property(selector = "setLayer:") + public native void setLayer(CALayer v); + @Property(selector = "bounds") + public native @ByVal CGRect getBounds(); + @Property(selector = "setBounds:") + public native void setBounds(@ByVal CGRect v); + /**/ + /**//**/ + /**/ + @GlobalValue(symbol="kCARendererColorSpace", optional=true) + public static native String getColorSpace(); + /** + * @since Available in iOS 12.0 and later. + */ + @GlobalValue(symbol="kCARendererMetalCommandQueue", optional=true) + public static native String getMetalCommandQueue(); + + @Method(selector = "beginFrameAtTime:timeStamp:") + public native void beginFrame(double t, CVTimeStamp ts); + @Method(selector = "updateBounds") + public native @ByVal CGRect updateBounds(); + @Method(selector = "addUpdateRect:") + public native void addUpdateRect(@ByVal CGRect r); + @Method(selector = "render") + public native void render(); + @Method(selector = "nextFrameTime") + public native double nextFrameTime(); + @Method(selector = "endFrame") + public native void endFrame(); + @Method(selector = "setDestination:") + public native void setDestination(MTLTexture tex); + /** + * @since Available in iOS 11.0 and later. + */ + @Method(selector = "rendererWithMTLTexture:options:") + protected static native @Pointer long create(MTLTexture tex, NSDictionary dict); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAReplicatorLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAReplicatorLayer.java index 8fd893db0..dbdc2725e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAReplicatorLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAReplicatorLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollLayer.java index 6703db673..d773a4116 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollMode.java index 920c2ab66..ffec1e28f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAScrollMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeFillRule.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeFillRule.java index 6f23023f0..031452ca5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeFillRule.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeFillRule.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeLayer.java index 0a8643168..9de0267d3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAShapeLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CASpringAnimation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CASpringAnimation.java index 39bf451f3..507eea4dc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CASpringAnimation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CASpringAnimation.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextAlignmentMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextAlignmentMode.java index e7b819a3a..60806e06b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextAlignmentMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextAlignmentMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextLayer.java index c085fa997..753305c15 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextTruncationMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextTruncationMode.java index af0b3a88f..0b7c0e654 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextTruncationMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATextTruncationMode.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATiledLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATiledLayer.java index 8c0b0db8d..6d8753072 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATiledLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATiledLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransaction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransaction.java index dd987c406..0819bb7f7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransaction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransaction.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransactionProperty.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransactionProperty.java index 70916387a..c8a9e507a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransactionProperty.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransactionProperty.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransform3D.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransform3D.java index b4053504e..16462e875 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransform3D.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransform3D.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransformLayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransformLayer.java index 9ab6e96e5..4ed86de57 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransformLayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransformLayer.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransition.java index 57f126ce6..a390d8da6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransition.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionSubType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionSubType.java index 0629143d9..72c01b80d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionSubType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionSubType.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionType.java index 46f785a4e..7c58001ed 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CATransitionType.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunction.java index 587bd14ab..b3a548a0a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunction.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunctionName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunctionName.java index 4488f530d..65ab77da8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunctionName.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/CAValueFunctionName.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/NSValueExtensions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/NSValueExtensions.java index a8a7d89a3..3ee53b22e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/NSValueExtensions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreanimation/NSValueExtensions.java @@ -33,6 +33,7 @@ import org.robovm.apple.coretext.*; import org.robovm.apple.opengles.*; import org.robovm.apple.metal.*; +import org.robovm.apple.corevideo.*; /**/ /**/ From 2577ba8507a9882b7d5302fc33f36c34d7db48b0 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 16:29:37 +0300 Subject: [PATCH 29/73] * ios16 bindings: FileProvider processed --- .../src/main/bro-gen/fileprovider.yaml | 107 ++++++++++++++- .../NSFileProviderChangeObserver.java | 6 +- .../NSFileProviderChangeObserverAdapter.java | 6 +- .../NSFileProviderContentPolicy.java | 69 ++++++++++ .../NSFileProviderCreateItemOptions.java | 69 ++++++++++ .../NSFileProviderCustomAction.java | 58 ++++++++ .../NSFileProviderCustomActionAdapter.java | 56 ++++++++ .../NSFileProviderDeleteItemOptions.java | 65 +++++++++ .../fileprovider/NSFileProviderDomain.java | 35 +++++ .../NSFileProviderDomainRemovalMode.java | 67 +++++++++ .../NSFileProviderDomainState.java | 60 ++++++++ .../NSFileProviderDomainStateAdapter.java | 58 ++++++++ .../NSFileProviderDomainVersion.java | 70 ++++++++++ .../NSFileProviderEnumerating.java | 58 ++++++++ .../NSFileProviderEnumeratingAdapter.java | 56 ++++++++ .../NSFileProviderEnumerationObserver.java | 6 +- ...ileProviderEnumerationObserverAdapter.java | 6 +- .../fileprovider/NSFileProviderErrorCode.java | 38 +++++- ...ileProviderIncrementalContentFetching.java | 58 ++++++++ ...iderIncrementalContentFetchingAdapter.java | 56 ++++++++ .../fileprovider/NSFileProviderItem.java | 30 ++++ .../NSFileProviderItemAdapter.java | 30 ++++ .../NSFileProviderItemCapabilities.java | 1 + .../NSFileProviderItemDecorating.java | 58 ++++++++ .../NSFileProviderItemDecoratingAdapter.java | 56 ++++++++ .../NSFileProviderItemFields.java | 78 +++++++++++ .../NSFileProviderItemVersion.java | 71 ++++++++++ .../fileprovider/NSFileProviderManager.java | 129 ++++++++++++++++++ .../NSFileProviderModifyItemOptions.java | 65 +++++++++ .../NSFileProviderPendingSetEnumerator.java | 65 +++++++++ ...leProviderPendingSetEnumeratorAdapter.java | 63 +++++++++ .../NSFileProviderReplicatedExtension.java | 77 +++++++++++ ...ileProviderReplicatedExtensionAdapter.java | 75 ++++++++++ .../fileprovider/NSFileProviderRequest.java | 68 +++++++++ .../NSFileProviderServiceSource.java | 5 + .../NSFileProviderServiceSourceAdapter.java | 5 + .../fileprovider/NSFileProviderServicing.java | 58 ++++++++ .../NSFileProviderServicingAdapter.java | 56 ++++++++ ...ileProviderTestingChildrenEnumeration.java | 60 ++++++++ ...iderTestingChildrenEnumerationAdapter.java | 58 ++++++++ ...ileProviderTestingCollisionResolution.java | 60 ++++++++ ...iderTestingCollisionResolutionAdapter.java | 58 ++++++++ .../NSFileProviderTestingContentFetch.java | 60 ++++++++ ...ileProviderTestingContentFetchAdapter.java | 58 ++++++++ .../NSFileProviderTestingCreation.java | 62 +++++++++ .../NSFileProviderTestingCreationAdapter.java | 60 ++++++++ .../NSFileProviderTestingDeletion.java | 66 +++++++++ .../NSFileProviderTestingDeletionAdapter.java | 64 +++++++++ .../NSFileProviderTestingIngestion.java | 62 +++++++++ ...NSFileProviderTestingIngestionAdapter.java | 60 ++++++++ .../NSFileProviderTestingLookup.java | 60 ++++++++ .../NSFileProviderTestingLookupAdapter.java | 58 ++++++++ .../NSFileProviderTestingModification.java | 68 +++++++++ ...ileProviderTestingModificationAdapter.java | 66 +++++++++ .../NSFileProviderTestingOperation.java | 73 ++++++++++ ...NSFileProviderTestingOperationAdapter.java | 71 ++++++++++ .../NSFileProviderTestingOperationSide.java | 65 +++++++++ .../NSFileProviderTestingOperationType.java | 71 ++++++++++ .../NSFileProviderThumbnailing.java | 58 ++++++++ .../NSFileProviderThumbnailingAdapter.java | 56 ++++++++ .../NSFileProviderTypeAndCreator.java | 62 +++++++++ 61 files changed, 3423 insertions(+), 7 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderContentPolicy.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCreateItemOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomAction.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomActionAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDeleteItemOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainRemovalMode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainStateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainVersion.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerating.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumeratingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetching.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetchingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecorating.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecoratingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemFields.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemVersion.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderModifyItemOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumerator.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumeratorAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtension.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtensionAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicing.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumeration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumerationAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolution.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolutionAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetch.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetchAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreationAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletion.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletionAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestion.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestionAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookup.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookupAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModification.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModificationAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationSide.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailing.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTypeAndCreator.java diff --git a/compiler/cocoatouch/src/main/bro-gen/fileprovider.yaml b/compiler/cocoatouch/src/main/bro-gen/fileprovider.yaml index 6dda56974..f2dc83734 100755 --- a/compiler/cocoatouch/src/main/bro-gen/fileprovider.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/fileprovider.yaml @@ -13,11 +13,21 @@ enums: NSFileProviderErrorCode: {nserror: true, prefix: NSFileProviderError} #since 11.0 NSFileProviderFileSystemFlags: {prefix: NSFileProviderFileSystem} NSFileProviderDomainTestingModes: {prefix: NSFileProviderDomainTestingMode} + NSFileProviderItemFields: {prefix: NSFileProviderItem} #since 16.0 + NSFileProviderContentPolicy: {} + NSFileProviderModifyItemOptions: {prefix: NSFileProviderModifyItem} #since 16.0 + NSFileProviderDomainRemovalMode: {} #since 16.0 + NSFileProviderCreateItemOptions: {prefix: NSFileProviderCreateItem} #since 16.0 + NSFileProviderDeleteItemOptions: {prefix: NSFileProviderDeleteItem} #since 16.0 + NSFileProviderTestingOperationType: {} #since 16.0 + NSFileProviderTestingOperationSide: {} #since 16.0 classes: NSFileProviderDomain: #since 11.0 methods: '-initWithIdentifier:displayName:pathRelativeToDocumentStorage:': name: init + '-initWithIdentifier:displayName:': + name: init NSFileProviderExtension: #since 8.0 methods: '-itemForIdentifier:error:': @@ -73,6 +83,44 @@ classes: name: getDomains '+removeAllDomainsWithCompletionHandler:': name: removeAllDomains + '-getUserVisibleURLForItemIdentifier:completionHandler:': + name: getUserVisibleURLForItemIdentifier + '-temporaryDirectoryURLWithError:': + name: getTemporaryDirectoryURL + throws: NSErrorException + '-signalErrorResolved:completionHandler:': + name: signalErrorResolved + '+getIdentifierForUserVisibleFileAtURL:completionHandler:': + name: getIdentifierForUserVisibleFile + '+removeDomain:mode:completionHandler:': + name: removeDomain + '-reimportItemsBelowItemWithIdentifier:completionHandler:': + name: reimportItemsBelowItem + '-requestModificationOfFields:forItemWithIdentifier:options:completionHandler:': + name: requestModificationOfFields + '+importDomain:fromDirectoryAtURL:completionHandler:': + name: importDomain + '-evictItemWithIdentifier:completionHandler:': + name: evictItem + '-waitForChangesOnItemsBelowItemWithIdentifier:completionHandler:': + name: waitForChangesOnItemsBelowItem + '-waitForStabilizationWithCompletionHandler:': + name: waitForStabilization + '-getServiceWithName:itemIdentifier:completionHandler:': + name: getService + '-listAvailableTestingOperationsWithError:': + name: listAvailableTestingOperations + throws: NSErrorException + '-runTestingOperations:error:': + name: runTestingOperations + throws: NSErrorException + NSFileProviderTypeAndCreator: {} #since 16.0 + NSFileProviderDomainVersion: {} #since 16.0 + NSFileProviderItemVersion: #since 16.0 + methods: + '-initWithContentVersion:metadataVersion:': + name: init + NSFileProviderRequest: {} #since 16.0 protocols: NSFileProviderChangeObserver: methods: @@ -98,8 +146,58 @@ protocols: name: currentSyncAnchor NSFileProviderItem: {} NSFileProviderServiceSource: {} #since 11.0 - - + NSFileProviderCustomAction: #since 16.0 + methods: + '-performActionWithIdentifier:onItemsWithIdentifiers:completionHandler:': + name: performAction + NSFileProviderDomainState: {} #since 16.0 + NSFileProviderEnumerating: #since 16.0 + methods: + '-enumeratorForContainerItemIdentifier:request:error:': + name: getEnumeratorForContainerItemIdentifier + NSFileProviderIncrementalContentFetching: #since 16.0 + methods: + '-fetchContentsForItemWithIdentifier:version:usingExistingContentsAtURL:existingVersion:request:completionHandler:': + name: fetchContentsForItem + NSFileProviderItemDecorating: {} #since 16.0 + NSFileProviderPendingSetEnumerator: {} #since 16.0 + NSFileProviderReplicatedExtension: #since 16.0 + methods: + '-initWithDomain:': + name: init + '-itemForIdentifier:request:completionHandler:': + name: item + '-fetchContentsForItemWithIdentifier:version:request:completionHandler:': + name: fetchContentsForItem + '-createItemBasedOnTemplate:fields:contents:options:request:completionHandler:': + name: createItemBasedOnTemplate + '-modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:': + name: modifyItem + '-deleteItemWithIdentifier:baseVersion:options:request:completionHandler:': + name: deleteItem + '-importDidFinishWithCompletionHandler:': + name: importDidFinish + '-materializedItemsDidChangeWithCompletionHandler:': + name: materializedItemsDidChange + '-pendingItemsDidChangeWithCompletionHandler:': + name: pendingItemsDidChange + NSFileProviderServicing: #since 16.0 + methods: + '-supportedServiceSourcesForItemIdentifier:completionHandler:': + name: getSupportedServiceSources + NSFileProviderTestingChildrenEnumeration: {} #since 16.0 + NSFileProviderTestingCollisionResolution: {} #since 16.0 + NSFileProviderTestingContentFetch: {} #since 16.0 + NSFileProviderTestingCreation: {} #since 16.0 + NSFileProviderTestingDeletion: {} #since 16.0 + NSFileProviderTestingIngestion: {} #since 16.0 + NSFileProviderTestingLookup: {} #since 16.0 + NSFileProviderTestingModification: {} #since 16.0 + NSFileProviderTestingOperation: {} #since 16.0 + NSFileProviderThumbnailing: #since 16.0 + methods: + '-fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:': + name: fetchThumbnailsForItem functions: # Make sure we don't miss any functions if new ones are introduced in a later version (k?NSFile.*): @@ -125,6 +223,11 @@ values: name: 'getEnumeration#{g[0]}' type: NSString + NSFileProvider(PendingSetDidChange|MaterializedSetDidChange|DomainDidChange|TrashContainerItemIdentifier): + class: NSFileProviderManager + name: 'get#{g[0]}' + type: NSString + # Make sure we don't miss any values if new ones are introduced in a later version (k?NSFile.*): class: FileProvider diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserver.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserver.java index d1c82e210..3191d4332 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserver.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserver.java @@ -47,7 +47,11 @@ /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "suggestedBatchSize") + @MachineSizedSInt long getSuggestedBatchSize(); /**/ /**/ @Method(selector = "didUpdateItems:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserverAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserverAdapter.java index 1ff7fb0d5..e67b1bf78 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserverAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderChangeObserverAdapter.java @@ -46,7 +46,11 @@ /**//**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("suggestedBatchSize") + public @MachineSizedSInt long getSuggestedBatchSize() { return 0; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderContentPolicy.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderContentPolicy.java new file mode 100644 index 000000000..f6d61331a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderContentPolicy.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/NSFileProviderContentPolicy/**/ implements ValuedEnum { + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + Inherited(0L), + /** + * @since Available in iOS 16.0 and later. + */ + DownloadLazilyAndEvictOnRemoteUpdate(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/NSFileProviderContentPolicy/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NSFileProviderContentPolicy/**/ valueOf(long n) { + for (/**/NSFileProviderContentPolicy/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NSFileProviderContentPolicy/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCreateItemOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCreateItemOptions.java new file mode 100644 index 000000000..0ec6f7738 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCreateItemOptions.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/NSFileProviderCreateItemOptions/**/ extends Bits*/NSFileProviderCreateItemOptions/**/> { + /**/ + public static final NSFileProviderCreateItemOptions None = new NSFileProviderCreateItemOptions(0L); + public static final NSFileProviderCreateItemOptions MayAlreadyExist = new NSFileProviderCreateItemOptions(1L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NSFileProviderCreateItemOptions DeletionConflicted = new NSFileProviderCreateItemOptions(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/NSFileProviderCreateItemOptions/**/[] values = _values(/**/NSFileProviderCreateItemOptions/**/.class); + + public /**/NSFileProviderCreateItemOptions/**/(long value) { super(value); } + private /**/NSFileProviderCreateItemOptions/**/(long value, long mask) { super(value, mask); } + protected /**/NSFileProviderCreateItemOptions/**/ wrap(long value, long mask) { + return new /**/NSFileProviderCreateItemOptions/**/(value, mask); + } + protected /**/NSFileProviderCreateItemOptions/**/[] _values() { + return values; + } + public static /**/NSFileProviderCreateItemOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomAction.java new file mode 100644 index 000000000..43f15cf29 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomAction.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderCustomAction/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "performActionWithIdentifier:onItemsWithIdentifiers:completionHandler:") + NSProgress performAction(String actionIdentifier, NSArray itemIdentifiers, @Block VoidBlock1 completionHandler); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomActionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomActionAdapter.java new file mode 100644 index 000000000..3af8fd180 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderCustomActionAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderCustomActionAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderCustomAction/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("performActionWithIdentifier:onItemsWithIdentifiers:completionHandler:") + public NSProgress performAction(String actionIdentifier, NSArray itemIdentifiers, @Block VoidBlock1 completionHandler) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDeleteItemOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDeleteItemOptions.java new file mode 100644 index 000000000..ea22f351e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDeleteItemOptions.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/NSFileProviderDeleteItemOptions/**/ extends Bits*/NSFileProviderDeleteItemOptions/**/> { + /**/ + public static final NSFileProviderDeleteItemOptions None = new NSFileProviderDeleteItemOptions(0L); + public static final NSFileProviderDeleteItemOptions Recursive = new NSFileProviderDeleteItemOptions(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/NSFileProviderDeleteItemOptions/**/[] values = _values(/**/NSFileProviderDeleteItemOptions/**/.class); + + public /**/NSFileProviderDeleteItemOptions/**/(long value) { super(value); } + private /**/NSFileProviderDeleteItemOptions/**/(long value, long mask) { super(value, mask); } + protected /**/NSFileProviderDeleteItemOptions/**/ wrap(long value, long mask) { + return new /**/NSFileProviderDeleteItemOptions/**/(value, mask); + } + protected /**/NSFileProviderDeleteItemOptions/**/[] _values() { + return values; + } + public static /**/NSFileProviderDeleteItemOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomain.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomain.java index c71d93c21..53370941e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomain.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomain.java @@ -54,6 +54,11 @@ public NSFileProviderDomain() {} */ @Method(selector = "initWithIdentifier:displayName:pathRelativeToDocumentStorage:") public NSFileProviderDomain(String identifier, String displayName, String pathRelativeToDocumentStorage) { super((SkipInit) null); initObject(init(identifier, displayName, pathRelativeToDocumentStorage)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithIdentifier:displayName:") + public NSFileProviderDomain(String identifier, String displayName) { super((SkipInit) null); initObject(init(identifier, displayName)); } /**/ /**/ @Property(selector = "identifier") @@ -65,6 +70,31 @@ public NSFileProviderDomain() {} */ @Property(selector = "pathRelativeToDocumentStorage") public native String getPathRelativeToDocumentStorage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "userEnabled") + public native boolean isUserEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isReplicated") + public native boolean isReplicated(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "testingModes") + public native NSFileProviderDomainTestingModes getTestingModes(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTestingModes:") + public native void setTestingModes(NSFileProviderDomainTestingModes v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "backingStoreIdentity") + public native NSData getBackingStoreIdentity(); /**/ /**//**/ /**/ @@ -73,5 +103,10 @@ public NSFileProviderDomain() {} */ @Method(selector = "initWithIdentifier:displayName:pathRelativeToDocumentStorage:") protected native @Pointer long init(String identifier, String displayName, String pathRelativeToDocumentStorage); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithIdentifier:displayName:") + protected native @Pointer long init(String identifier, String displayName); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainRemovalMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainRemovalMode.java new file mode 100644 index 000000000..2272461ab --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainRemovalMode.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/NSFileProviderDomainRemovalMode/**/ implements ValuedEnum { + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + RemoveAll(0L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/NSFileProviderDomainRemovalMode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NSFileProviderDomainRemovalMode/**/ valueOf(long n) { + for (/**/NSFileProviderDomainRemovalMode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NSFileProviderDomainRemovalMode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainState.java new file mode 100644 index 000000000..7ef1e5c70 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainState.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderDomainState/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "domainVersion") + NSFileProviderDomainVersion getDomainVersion(); + @Property(selector = "userInfo") + NSDictionary getUserInfo(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainStateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainStateAdapter.java new file mode 100644 index 000000000..fa300c576 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainStateAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderDomainStateAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderDomainState/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("domainVersion") + public NSFileProviderDomainVersion getDomainVersion() { return null; } + @NotImplemented("userInfo") + public NSDictionary getUserInfo() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainVersion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainVersion.java new file mode 100644 index 000000000..2ed8e4604 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderDomainVersion.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("FileProvider") @NativeClass/**/ +/**/public/**/ class /**/NSFileProviderDomainVersion/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class NSFileProviderDomainVersionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NSFileProviderDomainVersion.class); }/**/ + /**//**/ + /**/ + public NSFileProviderDomainVersion() {} + protected NSFileProviderDomainVersion(Handle h, long handle) { super(h, handle); } + protected NSFileProviderDomainVersion(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public NSFileProviderDomainVersion(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "next") + public native NSFileProviderDomainVersion next(); + @Method(selector = "compare:") + public native NSComparisonResult compare(NSFileProviderDomainVersion otherVersion); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerating.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerating.java new file mode 100644 index 000000000..9142d0bec --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerating.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderEnumerating/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "enumeratorForContainerItemIdentifier:request:error:") + NSFileProviderEnumerator getEnumeratorForContainerItemIdentifier(NSString containerItemIdentifier, NSFileProviderRequest request, NSError.NSErrorPtr error); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumeratingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumeratingAdapter.java new file mode 100644 index 000000000..6306e78de --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumeratingAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderEnumeratingAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderEnumerating/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("enumeratorForContainerItemIdentifier:request:error:") + public NSFileProviderEnumerator getEnumeratorForContainerItemIdentifier(NSString containerItemIdentifier, NSFileProviderRequest request, NSError.NSErrorPtr error) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserver.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserver.java index 918182b2f..0d0ef897d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserver.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserver.java @@ -47,7 +47,11 @@ /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "suggestedPageSize") + @MachineSizedSInt long getSuggestedPageSize(); /**/ /**/ @Method(selector = "didEnumerateItems:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserverAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserverAdapter.java index fe26ef8f0..d61bb87ca 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserverAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderEnumerationObserverAdapter.java @@ -46,7 +46,11 @@ /**//**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("suggestedPageSize") + public @MachineSizedSInt long getSuggestedPageSize() { return 0; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderErrorCode.java index e7f715d6d..128da70e5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderErrorCode.java @@ -46,7 +46,43 @@ public enum /**/NSFileProviderErrorCode/**/ implements NSErrorCode PageExpired(-1002L), InsufficientQuota(-1003L), ServerUnreachable(-1004L), - NoSuchItem(-1005L); + NoSuchItem(-1005L), + /** + * @since Available in iOS 16.0 and later. + */ + DeletionRejected(-1006L), + /** + * @since Available in iOS 16.0 and later. + */ + DirectoryNotEmpty(-1007L), + /** + * @since Available in iOS 16.0 and later. + */ + ProviderNotFound(-2001L), + /** + * @since Available in iOS 16.0 and later. + */ + CannotSynchronize(-2005L), + /** + * @since Available in iOS 16.0 and later. + */ + NonEvictableChildren(-2006L), + /** + * @since Available in iOS 16.0 and later. + */ + UnsyncedEdits(-2007L), + /** + * @since Available in iOS 16.0 and later. + */ + NonEvictable(-2008L), + /** + * @since Available in iOS 16.0 and later. + */ + ExcludedFromSync(-2010L), + /** + * @since Available in iOS 16.0 and later. + */ + DomainDisabled(-2011L); /**/ /**/static { Bro.bind(NSFileProviderErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetching.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetching.java new file mode 100644 index 000000000..7b4cd17a3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetching.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderIncrementalContentFetching/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "fetchContentsForItemWithIdentifier:version:usingExistingContentsAtURL:existingVersion:request:completionHandler:") + NSProgress fetchContentsForItem(NSString itemIdentifier, NSFileProviderItemVersion requestedVersion, NSURL existingContents, NSFileProviderItemVersion existingVersion, NSFileProviderRequest request, @Block VoidBlock3 completionHandler); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetchingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetchingAdapter.java new file mode 100644 index 000000000..159e18477 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderIncrementalContentFetchingAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderIncrementalContentFetchingAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderIncrementalContentFetching/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("fetchContentsForItemWithIdentifier:version:usingExistingContentsAtURL:existingVersion:request:completionHandler:") + public NSProgress fetchContentsForItem(NSString itemIdentifier, NSFileProviderItemVersion requestedVersion, NSURL existingContents, NSFileProviderItemVersion existingVersion, NSFileProviderRequest request, @Block VoidBlock3 completionHandler) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItem.java index 6c149c70e..01984ded6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItem.java @@ -65,8 +65,18 @@ @Deprecated @Property(selector = "typeIdentifier") String getTypeIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "typeAndCreator") + @ByVal NSFileProviderTypeAndCreator getTypeAndCreator(); @Property(selector = "capabilities") NSFileProviderItemCapabilities getCapabilities(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "fileSystemFlags") + NSFileProviderFileSystemFlags getFileSystemFlags(); @Property(selector = "documentSize") NSNumber getDocumentSize(); @Property(selector = "childItemCount") @@ -75,6 +85,11 @@ NSDate getCreationDate(); @Property(selector = "contentModificationDate") NSDate getContentModificationDate(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "extendedAttributes") + NSDictionary getExtendedAttributes(); @Property(selector = "lastUsedDate") NSDate getLastUsedDate(); @Property(selector = "tagData") @@ -116,8 +131,23 @@ */ @Property(selector = "versionIdentifier") NSData getVersionIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "itemVersion") + NSFileProviderItemVersion getItemVersion(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "symlinkTargetPath") + String getSymlinkTargetPath(); @Property(selector = "userInfo") NSDictionary getUserInfo(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "contentPolicy") + NSFileProviderContentPolicy getContentPolicy(); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemAdapter.java index c1f0400f0..51288d99a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemAdapter.java @@ -64,8 +64,18 @@ @Deprecated @NotImplemented("typeIdentifier") public String getTypeIdentifier() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("typeAndCreator") + public @ByVal NSFileProviderTypeAndCreator getTypeAndCreator() { return null; } @NotImplemented("capabilities") public NSFileProviderItemCapabilities getCapabilities() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("fileSystemFlags") + public NSFileProviderFileSystemFlags getFileSystemFlags() { return null; } @NotImplemented("documentSize") public NSNumber getDocumentSize() { return null; } @NotImplemented("childItemCount") @@ -74,6 +84,11 @@ public NSDate getCreationDate() { return null; } @NotImplemented("contentModificationDate") public NSDate getContentModificationDate() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("extendedAttributes") + public NSDictionary getExtendedAttributes() { return null; } @NotImplemented("lastUsedDate") public NSDate getLastUsedDate() { return null; } @NotImplemented("tagData") @@ -115,8 +130,23 @@ */ @NotImplemented("versionIdentifier") public NSData getVersionIdentifier() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("itemVersion") + public NSFileProviderItemVersion getItemVersion() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("symlinkTargetPath") + public String getSymlinkTargetPath() { return null; } @NotImplemented("userInfo") public NSDictionary getUserInfo() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("contentPolicy") + public NSFileProviderContentPolicy getContentPolicy() { return null; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemCapabilities.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemCapabilities.java index 03a193f86..de14155f9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemCapabilities.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemCapabilities.java @@ -45,6 +45,7 @@ public final class /**/NSFileProviderItemCapabilities/**/ extends B public static final NSFileProviderItemCapabilities AllowsRenaming = new NSFileProviderItemCapabilities(8L); public static final NSFileProviderItemCapabilities AllowsTrashing = new NSFileProviderItemCapabilities(16L); public static final NSFileProviderItemCapabilities AllowsDeleting = new NSFileProviderItemCapabilities(32L); + public static final NSFileProviderItemCapabilities AllowsEvicting = new NSFileProviderItemCapabilities(64L); public static final NSFileProviderItemCapabilities AllowsAddingSubItems = new NSFileProviderItemCapabilities(2L); public static final NSFileProviderItemCapabilities AllowsContentEnumerating = new NSFileProviderItemCapabilities(1L); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecorating.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecorating.java new file mode 100644 index 000000000..a7e8eaba4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecorating.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderItemDecorating/**/ + /**/extends NSFileProviderItem/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "decorations") + NSArray getDecorations(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecoratingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecoratingAdapter.java new file mode 100644 index 000000000..61aedb7ba --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemDecoratingAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderItemDecoratingAdapter/**/ + extends /**/NSFileProviderItemAdapter/**/ + /**/implements NSFileProviderItemDecorating/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("decorations") + public NSArray getDecorations() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemFields.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemFields.java new file mode 100644 index 000000000..1548e071d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemFields.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/NSFileProviderItemFields/**/ extends Bits*/NSFileProviderItemFields/**/> { + /**/ + public static final NSFileProviderItemFields None = new NSFileProviderItemFields(0L); + public static final NSFileProviderItemFields Contents = new NSFileProviderItemFields(1L); + public static final NSFileProviderItemFields Filename = new NSFileProviderItemFields(2L); + public static final NSFileProviderItemFields ParentItemIdentifier = new NSFileProviderItemFields(4L); + public static final NSFileProviderItemFields LastUsedDate = new NSFileProviderItemFields(8L); + public static final NSFileProviderItemFields TagData = new NSFileProviderItemFields(16L); + public static final NSFileProviderItemFields FavoriteRank = new NSFileProviderItemFields(32L); + public static final NSFileProviderItemFields CreationDate = new NSFileProviderItemFields(64L); + public static final NSFileProviderItemFields ContentModificationDate = new NSFileProviderItemFields(128L); + public static final NSFileProviderItemFields FileSystemFlags = new NSFileProviderItemFields(256L); + public static final NSFileProviderItemFields ExtendedAttributes = new NSFileProviderItemFields(512L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NSFileProviderItemFields TypeAndCreator = new NSFileProviderItemFields(1024L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/NSFileProviderItemFields/**/[] values = _values(/**/NSFileProviderItemFields/**/.class); + + public /**/NSFileProviderItemFields/**/(long value) { super(value); } + private /**/NSFileProviderItemFields/**/(long value, long mask) { super(value, mask); } + protected /**/NSFileProviderItemFields/**/ wrap(long value, long mask) { + return new /**/NSFileProviderItemFields/**/(value, mask); + } + protected /**/NSFileProviderItemFields/**/[] _values() { + return values; + } + public static /**/NSFileProviderItemFields/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemVersion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemVersion.java new file mode 100644 index 000000000..f9d74b5a5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderItemVersion.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("FileProvider") @NativeClass/**/ +/**/public/**/ class /**/NSFileProviderItemVersion/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class NSFileProviderItemVersionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NSFileProviderItemVersion.class); }/**/ + /**//**/ + /**/ + public NSFileProviderItemVersion() {} + protected NSFileProviderItemVersion(Handle h, long handle) { super(h, handle); } + protected NSFileProviderItemVersion(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithContentVersion:metadataVersion:") + public NSFileProviderItemVersion(NSData contentVersion, NSData metadataVersion) { super((SkipInit) null); initObject(init(contentVersion, metadataVersion)); } + /**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "beforeFirstSyncComponent") + public static native NSData getBeforeFirstSyncComponent(); + @Property(selector = "contentVersion") + public native NSData getContentVersion(); + @Property(selector = "metadataVersion") + public native NSData getMetadataVersion(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithContentVersion:metadataVersion:") + protected native @Pointer long init(NSData contentVersion, NSData metadataVersion); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderManager.java index 1df55c192..6c6603834 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderManager.java @@ -76,11 +76,21 @@ protected NSFileProviderManager() {} */ @GlobalValue(symbol="NSFileProviderWorkingSetContainerItemIdentifier", optional=true) public static native NSString WorkingSetContainerItemIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NSFileProviderTrashContainerItemIdentifier", optional=true) + public static native NSString getTrashContainerItemIdentifier(); /** * @since Available in iOS 11.0 and later. */ @GlobalValue(symbol="NSFileProviderFavoriteRankUnranked", optional=true) public static native NSString FavoriteRankUnranked(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NSFileProviderDomainDidChange", optional=true) + public static native NSString getDomainDidChange(); /** * @since Available in iOS 11.0 and later. */ @@ -107,13 +117,57 @@ protected NSFileProviderManager() {} */ @GlobalValue(symbol="NSFileProviderErrorNonExistentItemIdentifierKey", optional=true) public static native NSString getErrorNonExistentItemIdentifierKey(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NSFileProviderMaterializedSetDidChange", optional=true) + public static native NSString getMaterializedSetDidChange(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NSFileProviderPendingSetDidChange", optional=true) + public static native NSString getPendingSetDidChange(); @Method(selector = "signalEnumeratorForContainerItemIdentifier:completionHandler:") public native void signalEnumerator(NSString containerItemIdentifier, @Block VoidBlock1 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "getUserVisibleURLForItemIdentifier:completionHandler:") + public native void getUserVisibleURLForItemIdentifier(NSString itemIdentifier, @Block VoidBlock2 completionHandler); @Method(selector = "registerURLSessionTask:forItemWithIdentifier:completionHandler:") public native void registerURLSessionTask(NSURLSessionTask task, NSString identifier, @Block VoidBlock1 completion); + /** + * @since Available in iOS 16.0 and later. + */ + public NSURL getTemporaryDirectoryURL() throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + NSURL result = getTemporaryDirectoryURL(ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "temporaryDirectoryURLWithError:") + private native NSURL getTemporaryDirectoryURL(NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "signalErrorResolved:completionHandler:") + public native void signalErrorResolved(NSError error, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "globalProgressForKind:") + public native NSProgress globalProgressForKind(String kind); @Method(selector = "managerForDomain:") public static native NSFileProviderManager managerForDomain(NSFileProviderDomain domain); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "getIdentifierForUserVisibleFileAtURL:completionHandler:") + public static native void getIdentifierForUserVisibleFile(NSURL url, @Block VoidBlock3 completionHandler); /** * @since Available in iOS 11.0 and later. */ @@ -128,9 +182,84 @@ protected NSFileProviderManager() {} public static native void addDomain(NSFileProviderDomain domain, @Block VoidBlock1 completionHandler); @Method(selector = "removeDomain:completionHandler:") public static native void removeDomain(NSFileProviderDomain domain, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "removeDomain:mode:completionHandler:") + public static native void removeDomain(NSFileProviderDomain domain, NSFileProviderDomainRemovalMode mode, @Block VoidBlock2 completionHandler); @Method(selector = "getDomainsWithCompletionHandler:") public static native void getDomains(@Block VoidBlock2, NSError> completionHandler); @Method(selector = "removeAllDomainsWithCompletionHandler:") public static native void removeAllDomains(@Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "enumeratorForMaterializedItems") + public native NSFileProviderEnumerator enumeratorForMaterializedItems(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "enumeratorForPendingItems") + public native NSFileProviderPendingSetEnumerator enumeratorForPendingItems(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "reimportItemsBelowItemWithIdentifier:completionHandler:") + public native void reimportItemsBelowItem(NSString itemIdentifier, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "requestModificationOfFields:forItemWithIdentifier:options:completionHandler:") + public native void requestModificationOfFields(NSFileProviderItemFields fields, NSString itemIdentifier, NSFileProviderModifyItemOptions options, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "importDomain:fromDirectoryAtURL:completionHandler:") + public static native void importDomain(NSFileProviderDomain domain, NSURL url, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "evictItemWithIdentifier:completionHandler:") + public native void evictItem(NSString itemIdentifier, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "waitForChangesOnItemsBelowItemWithIdentifier:completionHandler:") + public native void waitForChangesOnItemsBelowItem(NSString itemIdentifier, @Block VoidBlock1 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "waitForStabilizationWithCompletionHandler:") + public native void waitForStabilization(@Block VoidBlock1 completionHandler); + @Method(selector = "getServiceWithName:itemIdentifier:completionHandler:") + public native void getService(NSString serviceName, NSString itemIdentifier, @Block VoidBlock2 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + public NSArray listAvailableTestingOperations() throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + NSArray result = listAvailableTestingOperations(ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "listAvailableTestingOperationsWithError:") + private native NSArray listAvailableTestingOperations(NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + public NSDictionary runTestingOperations(NSArray operations) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + NSDictionary result = runTestingOperations(operations, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "runTestingOperations:error:") + private native NSDictionary runTestingOperations(NSArray operations, NSError.NSErrorPtr error); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderModifyItemOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderModifyItemOptions.java new file mode 100644 index 000000000..98fef1c3e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderModifyItemOptions.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/NSFileProviderModifyItemOptions/**/ extends Bits*/NSFileProviderModifyItemOptions/**/> { + /**/ + public static final NSFileProviderModifyItemOptions None = new NSFileProviderModifyItemOptions(0L); + public static final NSFileProviderModifyItemOptions MayAlreadyExist = new NSFileProviderModifyItemOptions(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/NSFileProviderModifyItemOptions/**/[] values = _values(/**/NSFileProviderModifyItemOptions/**/.class); + + public /**/NSFileProviderModifyItemOptions/**/(long value) { super(value); } + private /**/NSFileProviderModifyItemOptions/**/(long value, long mask) { super(value, mask); } + protected /**/NSFileProviderModifyItemOptions/**/ wrap(long value, long mask) { + return new /**/NSFileProviderModifyItemOptions/**/(value, mask); + } + protected /**/NSFileProviderModifyItemOptions/**/[] _values() { + return values; + } + public static /**/NSFileProviderModifyItemOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumerator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumerator.java new file mode 100644 index 000000000..f60d3d519 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumerator.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderPendingSetEnumerator/**/ + /**/extends NSFileProviderEnumerator/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "domainVersion") + NSFileProviderDomainVersion getDomainVersion(); + @Property(selector = "refreshInterval") + double getRefreshInterval(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isMaximumSizeReached") + boolean isMaximumSizeReached(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumeratorAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumeratorAdapter.java new file mode 100644 index 000000000..c7f9a2d76 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderPendingSetEnumeratorAdapter.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderPendingSetEnumeratorAdapter/**/ + extends /**/NSFileProviderEnumeratorAdapter/**/ + /**/implements NSFileProviderPendingSetEnumerator/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("domainVersion") + public NSFileProviderDomainVersion getDomainVersion() { return null; } + @NotImplemented("refreshInterval") + public double getRefreshInterval() { return 0; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("isMaximumSizeReached") + public boolean isMaximumSizeReached() { return false; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtension.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtension.java new file mode 100644 index 000000000..3a47e9a50 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtension.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderReplicatedExtension/**/ + /**/extends NSObjectProtocol, NSFileProviderEnumerating/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "invalidate") + void invalidate(); + @Method(selector = "itemForIdentifier:request:completionHandler:") + NSProgress item(NSString identifier, NSFileProviderRequest request, @Block VoidBlock2 completionHandler); + @Method(selector = "fetchContentsForItemWithIdentifier:version:request:completionHandler:") + NSProgress fetchContentsForItem(NSString itemIdentifier, NSFileProviderItemVersion requestedVersion, NSFileProviderRequest request, @Block VoidBlock3 completionHandler); + @Method(selector = "createItemBasedOnTemplate:fields:contents:options:request:completionHandler:") + NSProgress createItemBasedOnTemplate(NSFileProviderItem itemTemplate, NSFileProviderItemFields fields, NSURL url, NSFileProviderCreateItemOptions options, NSFileProviderRequest request, @Block VoidBlock4 completionHandler); + @Method(selector = "modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:") + NSProgress modifyItem(NSFileProviderItem item, NSFileProviderItemVersion version, NSFileProviderItemFields changedFields, NSURL newContents, NSFileProviderModifyItemOptions options, NSFileProviderRequest request, @Block VoidBlock4 completionHandler); + @Method(selector = "deleteItemWithIdentifier:baseVersion:options:request:completionHandler:") + NSProgress deleteItem(NSString identifier, NSFileProviderItemVersion version, NSFileProviderDeleteItemOptions options, NSFileProviderRequest request, @Block VoidBlock1 completionHandler); + @Method(selector = "importDidFinishWithCompletionHandler:") + void importDidFinish(@Block Runnable completionHandler); + @Method(selector = "materializedItemsDidChangeWithCompletionHandler:") + void materializedItemsDidChange(@Block Runnable completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "pendingItemsDidChangeWithCompletionHandler:") + void pendingItemsDidChange(@Block Runnable completionHandler); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtensionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtensionAdapter.java new file mode 100644 index 000000000..da104c5a6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderReplicatedExtensionAdapter.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderReplicatedExtensionAdapter/**/ + extends /**/NSFileProviderEnumeratingAdapter/**/ + /**/implements NSFileProviderReplicatedExtension/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("invalidate") + public void invalidate() {} + @NotImplemented("itemForIdentifier:request:completionHandler:") + public NSProgress item(NSString identifier, NSFileProviderRequest request, @Block VoidBlock2 completionHandler) { return null; } + @NotImplemented("fetchContentsForItemWithIdentifier:version:request:completionHandler:") + public NSProgress fetchContentsForItem(NSString itemIdentifier, NSFileProviderItemVersion requestedVersion, NSFileProviderRequest request, @Block VoidBlock3 completionHandler) { return null; } + @NotImplemented("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:") + public NSProgress createItemBasedOnTemplate(NSFileProviderItem itemTemplate, NSFileProviderItemFields fields, NSURL url, NSFileProviderCreateItemOptions options, NSFileProviderRequest request, @Block VoidBlock4 completionHandler) { return null; } + @NotImplemented("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:") + public NSProgress modifyItem(NSFileProviderItem item, NSFileProviderItemVersion version, NSFileProviderItemFields changedFields, NSURL newContents, NSFileProviderModifyItemOptions options, NSFileProviderRequest request, @Block VoidBlock4 completionHandler) { return null; } + @NotImplemented("deleteItemWithIdentifier:baseVersion:options:request:completionHandler:") + public NSProgress deleteItem(NSString identifier, NSFileProviderItemVersion version, NSFileProviderDeleteItemOptions options, NSFileProviderRequest request, @Block VoidBlock1 completionHandler) { return null; } + @NotImplemented("importDidFinishWithCompletionHandler:") + public void importDidFinish(@Block Runnable completionHandler) {} + @NotImplemented("materializedItemsDidChangeWithCompletionHandler:") + public void materializedItemsDidChange(@Block Runnable completionHandler) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("pendingItemsDidChangeWithCompletionHandler:") + public void pendingItemsDidChange(@Block Runnable completionHandler) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderRequest.java new file mode 100644 index 000000000..b7576df96 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderRequest.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("FileProvider") @NativeClass/**/ +/**/public/**/ class /**/NSFileProviderRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class NSFileProviderRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NSFileProviderRequest.class); }/**/ + /**//**/ + /**/ + public NSFileProviderRequest() {} + protected NSFileProviderRequest(Handle h, long handle) { super(h, handle); } + protected NSFileProviderRequest(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "isSystemRequest") + public native boolean isSystemRequest(); + @Property(selector = "isFileViewerRequest") + public native boolean isFileViewerRequest(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "domainVersion") + public native NSFileProviderDomainVersion getDomainVersion(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSource.java index 84fe143c3..e8bdc591e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSource.java @@ -49,6 +49,11 @@ /**/ @Property(selector = "serviceName") NSString getServiceName(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isRestricted") + boolean isRestricted(); /**/ /**/ @Method(selector = "makeListenerEndpointAndReturnError:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSourceAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSourceAdapter.java index e9d85ace1..1e194c80a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSourceAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServiceSourceAdapter.java @@ -48,6 +48,11 @@ /**/ @NotImplemented("serviceName") public NSString getServiceName() { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("isRestricted") + public boolean isRestricted() { return false; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicing.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicing.java new file mode 100644 index 000000000..702583cbb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicing.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderServicing/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "supportedServiceSourcesForItemIdentifier:completionHandler:") + NSProgress getSupportedServiceSources(NSString itemIdentifier, @Block VoidBlock2, NSError> completionHandler); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicingAdapter.java new file mode 100644 index 000000000..26875c06e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderServicingAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderServicingAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderServicing/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("supportedServiceSourcesForItemIdentifier:completionHandler:") + public NSProgress getSupportedServiceSources(NSString itemIdentifier, @Block VoidBlock2, NSError> completionHandler) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumeration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumeration.java new file mode 100644 index 000000000..e9b7293ea --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumeration.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingChildrenEnumeration/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "side") + NSFileProviderTestingOperationSide getSide(); + @Property(selector = "itemIdentifier") + NSString getItemIdentifier(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumerationAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumerationAdapter.java new file mode 100644 index 000000000..efeecd847 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingChildrenEnumerationAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingChildrenEnumerationAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingChildrenEnumeration/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("side") + public NSFileProviderTestingOperationSide getSide() { return null; } + @NotImplemented("itemIdentifier") + public NSString getItemIdentifier() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolution.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolution.java new file mode 100644 index 000000000..a465b02fa --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolution.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingCollisionResolution/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "side") + NSFileProviderTestingOperationSide getSide(); + @Property(selector = "renamedItem") + NSFileProviderItem getRenamedItem(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolutionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolutionAdapter.java new file mode 100644 index 000000000..78e68b372 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCollisionResolutionAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingCollisionResolutionAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingCollisionResolution/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("side") + public NSFileProviderTestingOperationSide getSide() { return null; } + @NotImplemented("renamedItem") + public NSFileProviderItem getRenamedItem() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetch.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetch.java new file mode 100644 index 000000000..be7a726b4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetch.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingContentFetch/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "side") + NSFileProviderTestingOperationSide getSide(); + @Property(selector = "itemIdentifier") + NSString getItemIdentifier(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetchAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetchAdapter.java new file mode 100644 index 000000000..a7cf1d3c4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingContentFetchAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingContentFetchAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingContentFetch/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("side") + public NSFileProviderTestingOperationSide getSide() { return null; } + @NotImplemented("itemIdentifier") + public NSString getItemIdentifier() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreation.java new file mode 100644 index 000000000..7573f87c7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreation.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingCreation/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "targetSide") + NSFileProviderTestingOperationSide getTargetSide(); + @Property(selector = "sourceItem") + NSFileProviderItem getSourceItem(); + @Property(selector = "domainVersion") + NSFileProviderDomainVersion getDomainVersion(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreationAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreationAdapter.java new file mode 100644 index 000000000..765d5575a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingCreationAdapter.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingCreationAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingCreation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("targetSide") + public NSFileProviderTestingOperationSide getTargetSide() { return null; } + @NotImplemented("sourceItem") + public NSFileProviderItem getSourceItem() { return null; } + @NotImplemented("domainVersion") + public NSFileProviderDomainVersion getDomainVersion() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletion.java new file mode 100644 index 000000000..0fbd94966 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletion.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingDeletion/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "targetSide") + NSFileProviderTestingOperationSide getTargetSide(); + @Property(selector = "sourceItemIdentifier") + NSString getSourceItemIdentifier(); + @Property(selector = "targetItemIdentifier") + NSString getTargetItemIdentifier(); + @Property(selector = "targetItemBaseVersion") + NSFileProviderItemVersion getTargetItemBaseVersion(); + @Property(selector = "domainVersion") + NSFileProviderDomainVersion getDomainVersion(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletionAdapter.java new file mode 100644 index 000000000..bca89fceb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingDeletionAdapter.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingDeletionAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingDeletion/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("targetSide") + public NSFileProviderTestingOperationSide getTargetSide() { return null; } + @NotImplemented("sourceItemIdentifier") + public NSString getSourceItemIdentifier() { return null; } + @NotImplemented("targetItemIdentifier") + public NSString getTargetItemIdentifier() { return null; } + @NotImplemented("targetItemBaseVersion") + public NSFileProviderItemVersion getTargetItemBaseVersion() { return null; } + @NotImplemented("domainVersion") + public NSFileProviderDomainVersion getDomainVersion() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestion.java new file mode 100644 index 000000000..0136ddebb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestion.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingIngestion/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "side") + NSFileProviderTestingOperationSide getSide(); + @Property(selector = "itemIdentifier") + NSString getItemIdentifier(); + @Property(selector = "item") + NSFileProviderItem getItem(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestionAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestionAdapter.java new file mode 100644 index 000000000..14f19b3ea --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingIngestionAdapter.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingIngestionAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingIngestion/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("side") + public NSFileProviderTestingOperationSide getSide() { return null; } + @NotImplemented("itemIdentifier") + public NSString getItemIdentifier() { return null; } + @NotImplemented("item") + public NSFileProviderItem getItem() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookup.java new file mode 100644 index 000000000..dc586d246 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookup.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingLookup/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "side") + NSFileProviderTestingOperationSide getSide(); + @Property(selector = "itemIdentifier") + NSString getItemIdentifier(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookupAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookupAdapter.java new file mode 100644 index 000000000..e63b2a957 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingLookupAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingLookupAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingLookup/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("side") + public NSFileProviderTestingOperationSide getSide() { return null; } + @NotImplemented("itemIdentifier") + public NSString getItemIdentifier() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModification.java new file mode 100644 index 000000000..b8d4257a5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModification.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingModification/**/ + /**/extends NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "targetSide") + NSFileProviderTestingOperationSide getTargetSide(); + @Property(selector = "sourceItem") + NSFileProviderItem getSourceItem(); + @Property(selector = "targetItemIdentifier") + NSString getTargetItemIdentifier(); + @Property(selector = "targetItemBaseVersion") + NSFileProviderItemVersion getTargetItemBaseVersion(); + @Property(selector = "changedFields") + NSFileProviderItemFields getChangedFields(); + @Property(selector = "domainVersion") + NSFileProviderDomainVersion getDomainVersion(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModificationAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModificationAdapter.java new file mode 100644 index 000000000..39041a0ab --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingModificationAdapter.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingModificationAdapter/**/ + extends /**/NSFileProviderTestingOperationAdapter/**/ + /**/implements NSFileProviderTestingModification/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("targetSide") + public NSFileProviderTestingOperationSide getTargetSide() { return null; } + @NotImplemented("sourceItem") + public NSFileProviderItem getSourceItem() { return null; } + @NotImplemented("targetItemIdentifier") + public NSString getTargetItemIdentifier() { return null; } + @NotImplemented("targetItemBaseVersion") + public NSFileProviderItemVersion getTargetItemBaseVersion() { return null; } + @NotImplemented("changedFields") + public NSFileProviderItemFields getChangedFields() { return null; } + @NotImplemented("domainVersion") + public NSFileProviderDomainVersion getDomainVersion() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperation.java new file mode 100644 index 000000000..9f7a1b776 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperation.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderTestingOperation/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "type") + NSFileProviderTestingOperationType getType(); + /**/ + /**/ + @Method(selector = "asIngestion") + NSFileProviderTestingIngestion asIngestion(); + @Method(selector = "asLookup") + NSFileProviderTestingLookup asLookup(); + @Method(selector = "asCreation") + NSFileProviderTestingCreation asCreation(); + @Method(selector = "asModification") + NSFileProviderTestingModification asModification(); + @Method(selector = "asDeletion") + NSFileProviderTestingDeletion asDeletion(); + @Method(selector = "asContentFetch") + NSFileProviderTestingContentFetch asContentFetch(); + @Method(selector = "asChildrenEnumeration") + NSFileProviderTestingChildrenEnumeration asChildrenEnumeration(); + @Method(selector = "asCollisionResolution") + NSFileProviderTestingCollisionResolution asCollisionResolution(); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationAdapter.java new file mode 100644 index 000000000..e93a24eae --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationAdapter.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTestingOperationAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderTestingOperation/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("type") + public NSFileProviderTestingOperationType getType() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("asIngestion") + public NSFileProviderTestingIngestion asIngestion() { return null; } + @NotImplemented("asLookup") + public NSFileProviderTestingLookup asLookup() { return null; } + @NotImplemented("asCreation") + public NSFileProviderTestingCreation asCreation() { return null; } + @NotImplemented("asModification") + public NSFileProviderTestingModification asModification() { return null; } + @NotImplemented("asDeletion") + public NSFileProviderTestingDeletion asDeletion() { return null; } + @NotImplemented("asContentFetch") + public NSFileProviderTestingContentFetch asContentFetch() { return null; } + @NotImplemented("asChildrenEnumeration") + public NSFileProviderTestingChildrenEnumeration asChildrenEnumeration() { return null; } + @NotImplemented("asCollisionResolution") + public NSFileProviderTestingCollisionResolution asCollisionResolution() { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationSide.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationSide.java new file mode 100644 index 000000000..1772f808d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationSide.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/NSFileProviderTestingOperationSide/**/ implements ValuedEnum { + /**/ + Disk(0L), + FileProvider(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/NSFileProviderTestingOperationSide/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NSFileProviderTestingOperationSide/**/ valueOf(long n) { + for (/**/NSFileProviderTestingOperationSide/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NSFileProviderTestingOperationSide/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationType.java new file mode 100644 index 000000000..eb8c50809 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTestingOperationType.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/NSFileProviderTestingOperationType/**/ implements ValuedEnum { + /**/ + Ingestion(0L), + Lookup(1L), + Creation(2L), + Modification(3L), + Deletion(4L), + ContentFetch(5L), + ChildrenEnumeration(6L), + CollisionResolution(7L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/NSFileProviderTestingOperationType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NSFileProviderTestingOperationType/**/ valueOf(long n) { + for (/**/NSFileProviderTestingOperationType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NSFileProviderTestingOperationType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailing.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailing.java new file mode 100644 index 000000000..51682ea69 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailing.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NSFileProviderThumbnailing/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:") + NSProgress fetchThumbnailsForItem(NSArray itemIdentifiers, @ByVal CGSize size, @Block VoidBlock3 perThumbnailCompletionHandler, @Block VoidBlock1 completionHandler); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailingAdapter.java new file mode 100644 index 000000000..4a04c809c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderThumbnailingAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderThumbnailingAdapter/**/ + extends /**/NSObject/**/ + /**/implements NSFileProviderThumbnailing/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:") + public NSProgress fetchThumbnailsForItem(NSArray itemIdentifiers, @ByVal CGSize size, @Block VoidBlock3 perThumbnailCompletionHandler, @Block VoidBlock1 completionHandler) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTypeAndCreator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTypeAndCreator.java new file mode 100644 index 000000000..051cf1f08 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/fileprovider/NSFileProviderTypeAndCreator.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.fileprovider; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/NSFileProviderTypeAndCreator/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class NSFileProviderTypeAndCreatorPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public NSFileProviderTypeAndCreator() {} + public NSFileProviderTypeAndCreator(int type, int creator) { + this.setType(type); + this.setCreator(creator); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native int getType(); + @StructMember(0) public native NSFileProviderTypeAndCreator setType(int type); + @StructMember(1) public native int getCreator(); + @StructMember(1) public native NSFileProviderTypeAndCreator setCreator(int creator); + /**/ + /**//**/ +} From de24ee2163e1eea6d9dd9bfcb7cfdcb69b0d59ee Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Wed, 21 Sep 2022 16:36:57 +0300 Subject: [PATCH 30/73] * ios16 bindings: CoreAudioKit processed --- .../src/main/bro-gen/coreaudiokit.yaml | 1 + .../coreaudiokit/AUGenericViewController.java | 69 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUGenericViewController.java diff --git a/compiler/cocoatouch/src/main/bro-gen/coreaudiokit.yaml b/compiler/cocoatouch/src/main/bro-gen/coreaudiokit.yaml index a602d1e4a..32fd4ece7 100755 --- a/compiler/cocoatouch/src/main/bro-gen/coreaudiokit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/coreaudiokit.yaml @@ -26,6 +26,7 @@ classes: '-initWithWidth:height:hostHasController:': name: init AUViewController: {} #since 9.0 + AUGenericViewController: {} #since 16.0 protocols: {} functions: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUGenericViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUGenericViewController.java new file mode 100644 index 000000000..7ae16dad8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUGenericViewController.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coreaudiokit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coreaudio.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("CoreAudioKit") @NativeClass/**/ +/**/public/**/ class /**/AUGenericViewController/**/ + extends /**/UIViewController/**/ + /**//**/ { + + /**/public static class AUGenericViewControllerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(AUGenericViewController.class); }/**/ + /**//**/ + /**/ + public AUGenericViewController() {} + protected AUGenericViewController(Handle h, long handle) { super(h, handle); } + protected AUGenericViewController(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithNibName:bundle:") + public AUGenericViewController(String nibNameOrNil, NSBundle nibBundleOrNil) { super(nibNameOrNil, nibBundleOrNil); } + @Method(selector = "initWithCoder:") + public AUGenericViewController(NSCoder coder) { super(coder); } + /**/ + /**/ + @Property(selector = "auAudioUnit") + public native AUAudioUnit getAuAudioUnit(); + @Property(selector = "setAuAudioUnit:") + public native void setAuAudioUnit(AUAudioUnit v); + /**/ + /**//**/ + /**/ + + /**/ +} From 8b0e21d7efaea75980f1236a8f9eb95ff78b0667 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Thu, 22 Sep 2022 09:16:26 +0300 Subject: [PATCH 31/73] * ios16 bindings: GameController processed --- .../src/main/bro-gen/gamecontroller.yaml | 35 ++++++ .../apple/gamecontroller/GCAxisElement.java | 61 ++++++++++ .../gamecontroller/GCAxisElementAdapter.java | 59 ++++++++++ .../gamecontroller/GCAxisElementName.java | 56 ++++++++++ .../GCAxisElementNameAdapter.java | 56 ++++++++++ .../apple/gamecontroller/GCAxisInput.java | 71 ++++++++++++ .../gamecontroller/GCAxisInputAdapter.java | 69 ++++++++++++ .../apple/gamecontroller/GCButtonElement.java | 61 ++++++++++ .../GCButtonElementAdapter.java | 59 ++++++++++ .../gamecontroller/GCButtonElementName.java | 56 ++++++++++ .../GCButtonElementNameAdapter.java | 56 ++++++++++ .../apple/gamecontroller/GCController.java | 15 ++- .../robovm/apple/gamecontroller/GCDevice.java | 2 + .../apple/gamecontroller/GCDeviceAdapter.java | 2 + .../gamecontroller/GCDevicePhysicalInput.java | 74 ++++++++++++ .../GCDevicePhysicalInputAdapter.java | 72 ++++++++++++ .../GCDevicePhysicalInputElementChange.java | 65 +++++++++++ .../GCDevicePhysicalInputState.java | 74 ++++++++++++ .../GCDevicePhysicalInputStateAdapter.java | 72 ++++++++++++ .../GCDevicePhysicalInputStateDiff.java | 61 ++++++++++ ...GCDevicePhysicalInputStateDiffAdapter.java | 59 ++++++++++ .../gamecontroller/GCDirectionPadElement.java | 69 ++++++++++++ .../GCDirectionPadElementAdapter.java | 67 +++++++++++ .../GCDirectionPadElementName.java | 56 ++++++++++ .../GCDirectionPadElementNameAdapter.java | 56 ++++++++++ .../gamecontroller/GCGearShifterElement.java | 68 ++++++++++++ .../apple/gamecontroller/GCKeyboard.java | 2 + .../apple/gamecontroller/GCLinearInput.java | 71 ++++++++++++ .../gamecontroller/GCLinearInputAdapter.java | 69 ++++++++++++ .../robovm/apple/gamecontroller/GCMouse.java | 2 + .../GCPhysicalInputElement.java | 63 +++++++++++ .../GCPhysicalInputElementAdapter.java | 61 ++++++++++ .../GCPhysicalInputElementCollection.java | 67 +++++++++++ .../GCPhysicalInputElementName.java | 56 ++++++++++ .../GCPhysicalInputElementNameAdapter.java | 56 ++++++++++ .../GCPhysicalInputProfile.java | 24 ++++ .../gamecontroller/GCPressedStateInput.java | 67 +++++++++++ .../GCPressedStateInputAdapter.java | 65 +++++++++++ .../gamecontroller/GCProductCategory.java | 5 + .../apple/gamecontroller/GCRacingWheel.java | 105 ++++++++++++++++++ .../gamecontroller/GCRacingWheelInput.java | 75 +++++++++++++ .../GCRacingWheelInputState.java | 85 ++++++++++++++ .../apple/gamecontroller/GCRelativeInput.java | 69 ++++++++++++ .../GCRelativeInputAdapter.java | 67 +++++++++++ .../GCSteeringWheelElement.java | 70 ++++++++++++ .../apple/gamecontroller/GCSwitchElement.java | 59 ++++++++++ .../GCSwitchElementAdapter.java | 57 ++++++++++ .../gamecontroller/GCSwitchElementName.java | 56 ++++++++++ .../GCSwitchElementNameAdapter.java | 56 ++++++++++ .../gamecontroller/GCSwitchPositionInput.java | 73 ++++++++++++ .../GCSwitchPositionInputAdapter.java | 71 ++++++++++++ .../gamecontroller/GCTouchedStateInput.java | 67 +++++++++++ .../GCTouchedStateInputAdapter.java | 65 +++++++++++ 53 files changed, 3029 insertions(+), 5 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementName.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementNameAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInputAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementName.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementNameAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputElementChange.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiff.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiffAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementName.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementNameAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCGearShifterElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInputAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementCollection.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementName.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementNameAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInputAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInputState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInputAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSteeringWheelElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementName.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementNameAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInputAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInputAdapter.java diff --git a/compiler/cocoatouch/src/main/bro-gen/gamecontroller.yaml b/compiler/cocoatouch/src/main/bro-gen/gamecontroller.yaml index feedd89af..aeeff9378 100755 --- a/compiler/cocoatouch/src/main/bro-gen/gamecontroller.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/gamecontroller.yaml @@ -17,6 +17,7 @@ enums: GCTouchState: {} GCDualSenseAdaptiveTriggerMode: {} GCDualSenseAdaptiveTriggerStatus: {} + GCDevicePhysicalInputElementChange: {prefix: GCDevicePhysicalInputElement} classes: # Structs GCAcceleration: {} @@ -138,8 +139,37 @@ classes: name: virtualControllerWithConfiguration$ GCVirtualControllerConfiguration: {} #since 15.0 GCVirtualControllerElementConfiguration: {} #since 15.0 + GCGearShifterElement: {} + GCPhysicalInputElementCollection: {} #since 16.0 + GCRacingWheel: + methods: + '-acquireDeviceWithError:': + name: acquireDevice + throws: NSErrorException + GCRacingWheelInput: {} + GCRacingWheelInputState: {} + GCSteeringWheelElement: {} protocols: GCDevice: {} #since 14.0 + GCAxisElement: {} #since 16.0 + GCAxisElementName: {} + GCAxisInput: {} #since 16.0 + GCButtonElement: {} #since 16.0 + GCButtonElementName: {} + GCDevicePhysicalInput: {} #since 16.0 + GCDevicePhysicalInputState: {} #since 16.0 + GCDevicePhysicalInputStateDiff: {} #since 16.0 + GCDirectionPadElement: {} #since 16.0 + GCDirectionPadElementName: {} + GCLinearInput: {} #since 16.0 + GCPhysicalInputElement: {} #since 16.0 + GCPhysicalInputElementName: {} + GCPressedStateInput: {} #since 16.0 + GCRelativeInput: {} #since 16.0 + GCSwitchElement: {} #since 16.0 + GCSwitchElementName: {} + GCSwitchPositionInput: {} #since 16.0 + GCTouchedStateInput: {} #since 16.0 functions: (GCExtendedGamepadSnapShotDataV100FromNSData): @@ -226,6 +256,11 @@ values: GCProductCategory(.*): class: GCProductCategory name: '#{g[0]}' + GCRacingWheel(.*)Notification: + class: GCRacingWheel + type: NSString + static_class: Notifications + name: '#{g[0]}' # Make sure we don't miss any values if new ones are introduced in a later version (k?GC.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElement.java new file mode 100644 index 000000000..821e288fa --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElement.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCAxisElement/**/ + /**/extends GCPhysicalInputElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "absoluteInput") + GCAxisInput getAbsoluteInput(); + @Property(selector = "relativeInput") + GCRelativeInput getRelativeInput(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementAdapter.java new file mode 100644 index 000000000..68343b34b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementAdapter.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCAxisElementAdapter/**/ + extends /**/GCPhysicalInputElementAdapter/**/ + /**/implements GCAxisElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("absoluteInput") + public GCAxisInput getAbsoluteInput() { return null; } + @NotImplemented("relativeInput") + public GCRelativeInput getRelativeInput() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementName.java new file mode 100644 index 000000000..176626005 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementName.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/GCAxisElementName/**/ + /**/extends GCPhysicalInputElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementNameAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementNameAdapter.java new file mode 100644 index 000000000..0a9e5bedb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisElementNameAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCAxisElementNameAdapter/**/ + extends /**/GCPhysicalInputElementNameAdapter/**/ + /**/implements GCAxisElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInput.java new file mode 100644 index 000000000..d17f4b8c9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInput.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCAxisInput/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "valueDidChangeHandler") + @Block VoidBlock3 getValueDidChangeHandler(); + @Property(selector = "setValueDidChangeHandler:") + void setValueDidChangeHandler(@Block VoidBlock3 v); + @Property(selector = "value") + float getValue(); + @Property(selector = "isAnalog") + boolean isAnalog(); + @Property(selector = "canWrap") + boolean canWrap(); + @Property(selector = "lastValueTimestamp") + double getLastValueTimestamp(); + @Property(selector = "lastValueLatency") + double getLastValueLatency(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInputAdapter.java new file mode 100644 index 000000000..ee96f8f15 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCAxisInputAdapter.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCAxisInputAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCAxisInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("valueDidChangeHandler") + public @Block VoidBlock3 getValueDidChangeHandler() { return null; } + @NotImplemented("setValueDidChangeHandler:") + public void setValueDidChangeHandler(@Block VoidBlock3 v) {} + @NotImplemented("value") + public float getValue() { return 0; } + @NotImplemented("isAnalog") + public boolean isAnalog() { return false; } + @NotImplemented("canWrap") + public boolean canWrap() { return false; } + @NotImplemented("lastValueTimestamp") + public double getLastValueTimestamp() { return 0; } + @NotImplemented("lastValueLatency") + public double getLastValueLatency() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElement.java new file mode 100644 index 000000000..2dd0bf48e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElement.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCButtonElement/**/ + /**/extends GCPhysicalInputElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "pressedInput") + T0 getPressedInput(); + @Property(selector = "touchedInput") + GCTouchedStateInput getTouchedInput(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementAdapter.java new file mode 100644 index 000000000..4476a5223 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementAdapter.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCButtonElementAdapter/**/ + extends /**/GCPhysicalInputElementAdapter/**/ + /**/implements GCButtonElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("pressedInput") + public T0 getPressedInput() { return null; } + @NotImplemented("touchedInput") + public GCTouchedStateInput getTouchedInput() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementName.java new file mode 100644 index 000000000..97418d25a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementName.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/GCButtonElementName/**/ + /**/extends GCPhysicalInputElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementNameAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementNameAdapter.java new file mode 100644 index 000000000..b9fd92135 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCButtonElementNameAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCButtonElementNameAdapter/**/ + extends /**/GCPhysicalInputElementNameAdapter/**/ + /**/implements GCButtonElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCController.java index a3c5c29e3..201c16acf 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCController.java @@ -111,6 +111,11 @@ public GCController() {} */ @Property(selector = "battery") public native GCDeviceBattery getBattery(); + /** + * @since Available in iOS 14.0 and later. + */ + @Property(selector = "physicalInputProfile") + public native GCPhysicalInputProfile getPhysicalInputProfile(); /** * @deprecated Deprecated in iOS 10.0. Use extendedGamepad */ @@ -144,11 +149,6 @@ public GCController() {} */ @Property(selector = "productCategory") public native String getProductCategory(); - /** - * @since Available in iOS 14.0 and later. - */ - @Property(selector = "physicalInputProfile") - public native GCPhysicalInputProfile getPhysicalInputProfile(); /**/ /**//**/ /**/ @@ -166,6 +166,11 @@ public GCController() {} */ @GlobalValue(symbol="GCControllerDidStopBeingCurrentNotification", optional=true) public static native NSString DidStopBeingCurrentNotification(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="GCControllerUserCustomizationsDidChangeNotification", optional=true) + public static native NSString UserCustomizationsDidChangeNotification(); /** * @since Available in iOS 13.0 and later. diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevice.java index 422878a89..66e7d74fc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevice.java @@ -61,7 +61,9 @@ String getProductCategory(); /** * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use the physicalInputProfile property on GCController instead. For GCKeyboard, use the keyboardInput property. For GCMouse, use the mouseInput property. */ + @Deprecated @Property(selector = "physicalInputProfile") GCPhysicalInputProfile getPhysicalInputProfile(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDeviceAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDeviceAdapter.java index cff91e9ee..73ada579e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDeviceAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDeviceAdapter.java @@ -60,7 +60,9 @@ public void setHandlerQueue(DispatchQueue v) {} public String getProductCategory() { return null; } /** * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use the physicalInputProfile property on GCController instead. For GCKeyboard, use the keyboardInput property. For GCMouse, use the mouseInput property. */ + @Deprecated @NotImplemented("physicalInputProfile") public GCPhysicalInputProfile getPhysicalInputProfile() { return null; } /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInput.java new file mode 100644 index 000000000..5e2afc495 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInput.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCDevicePhysicalInput/**/ + /**/extends GCDevicePhysicalInputState/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "device") + GCDevice getDevice(); + @Property(selector = "elementValueDidChangeHandler") + @Block VoidBlock1 getElementValueDidChangeHandler(); + @Property(selector = "setElementValueDidChangeHandler:") + void setElementValueDidChangeHandler(@Block VoidBlock1 v); + @Property(selector = "inputStateAvailableHandler") + @Block Runnable getInputStateAvailableHandler(); + @Property(selector = "setInputStateAvailableHandler:") + void setInputStateAvailableHandler(@Block Runnable v); + @Property(selector = "inputStateQueueDepth") + @MachineSizedSInt long getInputStateQueueDepth(); + @Property(selector = "setInputStateQueueDepth:") + void setInputStateQueueDepth(@MachineSizedSInt long v); + /**/ + /**/ + @Method(selector = "capture") + GCDevicePhysicalInputState capture(); + @Method(selector = "nextInputState") + T0 nextInputState(); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputAdapter.java new file mode 100644 index 000000000..8b34086cb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputAdapter.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCDevicePhysicalInputAdapter/**/ + extends /**/GCDevicePhysicalInputStateAdapter/**/ + /**/implements GCDevicePhysicalInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("device") + public GCDevice getDevice() { return null; } + @NotImplemented("elementValueDidChangeHandler") + public @Block VoidBlock1 getElementValueDidChangeHandler() { return null; } + @NotImplemented("setElementValueDidChangeHandler:") + public void setElementValueDidChangeHandler(@Block VoidBlock1 v) {} + @NotImplemented("inputStateAvailableHandler") + public @Block Runnable getInputStateAvailableHandler() { return null; } + @NotImplemented("setInputStateAvailableHandler:") + public void setInputStateAvailableHandler(@Block Runnable v) {} + @NotImplemented("inputStateQueueDepth") + public @MachineSizedSInt long getInputStateQueueDepth() { return 0; } + @NotImplemented("setInputStateQueueDepth:") + public void setInputStateQueueDepth(@MachineSizedSInt long v) {} + /**/ + /**//**/ + /**/ + @NotImplemented("capture") + public GCDevicePhysicalInputState capture() { return null; } + @NotImplemented("nextInputState") + public T0 nextInputState() { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputElementChange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputElementChange.java new file mode 100644 index 000000000..7b38b1fd6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputElementChange.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/GCDevicePhysicalInputElementChange/**/ implements ValuedEnum { + /**/ + UnknownChange(-1L), + NoChange(0L), + Changed(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/GCDevicePhysicalInputElementChange/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/GCDevicePhysicalInputElementChange/**/ valueOf(long n) { + for (/**/GCDevicePhysicalInputElementChange/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/GCDevicePhysicalInputElementChange/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputState.java new file mode 100644 index 000000000..a241cf9b7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputState.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCDevicePhysicalInputState/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "device") + GCDevice getDevice(); + @Property(selector = "lastEventTimestamp") + double getLastEventTimestamp(); + @Property(selector = "lastEventLatency") + double getLastEventLatency(); + @Property(selector = "elements") + GCPhysicalInputElementCollection getElements(); + @Property(selector = "buttons") + GCPhysicalInputElementCollection getButtons(); + @Property(selector = "axes") + GCPhysicalInputElementCollection getAxes(); + @Property(selector = "switches") + GCPhysicalInputElementCollection getSwitches(); + @Property(selector = "dpads") + GCPhysicalInputElementCollection getDpads(); + /**/ + /**/ + @Method(selector = "objectForKeyedSubscript:") + GCPhysicalInputElement objectForKeyedSubscript(String key); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateAdapter.java new file mode 100644 index 000000000..dc9ab9983 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateAdapter.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCDevicePhysicalInputStateAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCDevicePhysicalInputState/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("device") + public GCDevice getDevice() { return null; } + @NotImplemented("lastEventTimestamp") + public double getLastEventTimestamp() { return 0; } + @NotImplemented("lastEventLatency") + public double getLastEventLatency() { return 0; } + @NotImplemented("elements") + public GCPhysicalInputElementCollection getElements() { return null; } + @NotImplemented("buttons") + public GCPhysicalInputElementCollection getButtons() { return null; } + @NotImplemented("axes") + public GCPhysicalInputElementCollection getAxes() { return null; } + @NotImplemented("switches") + public GCPhysicalInputElementCollection getSwitches() { return null; } + @NotImplemented("dpads") + public GCPhysicalInputElementCollection getDpads() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("objectForKeyedSubscript:") + public GCPhysicalInputElement objectForKeyedSubscript(String key) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiff.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiff.java new file mode 100644 index 000000000..716c7c3c1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiff.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCDevicePhysicalInputStateDiff/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "changeForElement:") + GCDevicePhysicalInputElementChange changeForElement(GCPhysicalInputElement element); + @Method(selector = "changedElements") + NSEnumerator changedElements(); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiffAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiffAdapter.java new file mode 100644 index 000000000..e8abb3023 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputStateDiffAdapter.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCDevicePhysicalInputStateDiffAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCDevicePhysicalInputStateDiff/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("changeForElement:") + public GCDevicePhysicalInputElementChange changeForElement(GCPhysicalInputElement element) { return null; } + @NotImplemented("changedElements") + public NSEnumerator changedElements() { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElement.java new file mode 100644 index 000000000..60e42dc96 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElement.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCDirectionPadElement/**/ + /**/extends GCPhysicalInputElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "xAxis") + GCAxisInput getXAxis(); + @Property(selector = "yAxis") + GCAxisInput getYAxis(); + @Property(selector = "up") + T0 getUp(); + @Property(selector = "down") + T0 getDown(); + @Property(selector = "left") + T0 getLeft(); + @Property(selector = "right") + T0 getRight(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementAdapter.java new file mode 100644 index 000000000..729a9f2af --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementAdapter.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCDirectionPadElementAdapter/**/ + extends /**/GCPhysicalInputElementAdapter/**/ + /**/implements GCDirectionPadElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("xAxis") + public GCAxisInput getXAxis() { return null; } + @NotImplemented("yAxis") + public GCAxisInput getYAxis() { return null; } + @NotImplemented("up") + public T0 getUp() { return null; } + @NotImplemented("down") + public T0 getDown() { return null; } + @NotImplemented("left") + public T0 getLeft() { return null; } + @NotImplemented("right") + public T0 getRight() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementName.java new file mode 100644 index 000000000..e1aba88dc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementName.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/GCDirectionPadElementName/**/ + /**/extends GCPhysicalInputElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementNameAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementNameAdapter.java new file mode 100644 index 000000000..dd4a0f585 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDirectionPadElementNameAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCDirectionPadElementNameAdapter/**/ + extends /**/GCPhysicalInputElementNameAdapter/**/ + /**/implements GCDirectionPadElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCGearShifterElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCGearShifterElement.java new file mode 100644 index 000000000..3d1f09fb6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCGearShifterElement.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**/@Library("GameController") @NativeClass/**/ +/**/public/**/ class /**/GCGearShifterElement/**/ + extends /**/NSObject/**/ + /**/implements GCPhysicalInputElement/**/ { + + /**/public static class GCGearShifterElementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(GCGearShifterElement.class); }/**/ + /**//**/ + /**/ + public GCGearShifterElement() {} + protected GCGearShifterElement(Handle h, long handle) { super(h, handle); } + protected GCGearShifterElement(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "patternInput") + public native GCSwitchPositionInput getPatternInput(); + @Property(selector = "sequentialInput") + public native GCRelativeInput getSequentialInput(); + @Property(selector = "sfSymbolsName") + public native String getSfSymbolsName(); + @Property(selector = "localizedName") + public native String getLocalizedName(); + @Property(selector = "aliases") + public native NSSet getAliases(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCKeyboard.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCKeyboard.java index 4aa4605a3..38c60b7a7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCKeyboard.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCKeyboard.java @@ -75,7 +75,9 @@ public GCKeyboard() {} public native String getProductCategory(); /** * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use the physicalInputProfile property on GCController instead. For GCKeyboard, use the keyboardInput property. For GCMouse, use the mouseInput property. */ + @Deprecated @Property(selector = "physicalInputProfile") public native GCPhysicalInputProfile getPhysicalInputProfile(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInput.java new file mode 100644 index 000000000..e3c500314 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInput.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCLinearInput/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "valueDidChangeHandler") + @Block VoidBlock3 getValueDidChangeHandler(); + @Property(selector = "setValueDidChangeHandler:") + void setValueDidChangeHandler(@Block VoidBlock3 v); + @Property(selector = "value") + float getValue(); + @Property(selector = "isAnalog") + boolean isAnalog(); + @Property(selector = "canWrap") + boolean canWrap(); + @Property(selector = "lastValueTimestamp") + double getLastValueTimestamp(); + @Property(selector = "lastValueLatency") + double getLastValueLatency(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInputAdapter.java new file mode 100644 index 000000000..2b79050a4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCLinearInputAdapter.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCLinearInputAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCLinearInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("valueDidChangeHandler") + public @Block VoidBlock3 getValueDidChangeHandler() { return null; } + @NotImplemented("setValueDidChangeHandler:") + public void setValueDidChangeHandler(@Block VoidBlock3 v) {} + @NotImplemented("value") + public float getValue() { return 0; } + @NotImplemented("isAnalog") + public boolean isAnalog() { return false; } + @NotImplemented("canWrap") + public boolean canWrap() { return false; } + @NotImplemented("lastValueTimestamp") + public double getLastValueTimestamp() { return 0; } + @NotImplemented("lastValueLatency") + public double getLastValueLatency() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCMouse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCMouse.java index ce53ecb7b..309fdcf75 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCMouse.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCMouse.java @@ -69,7 +69,9 @@ public GCMouse() {} public native String getProductCategory(); /** * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use the physicalInputProfile property on GCController instead. For GCKeyboard, use the keyboardInput property. For GCMouse, use the mouseInput property. */ + @Deprecated @Property(selector = "physicalInputProfile") public native GCPhysicalInputProfile getPhysicalInputProfile(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElement.java new file mode 100644 index 000000000..689f5abfc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElement.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCPhysicalInputElement/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "sfSymbolsName") + String getSfSymbolsName(); + @Property(selector = "localizedName") + String getLocalizedName(); + @Property(selector = "aliases") + NSSet getAliases(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementAdapter.java new file mode 100644 index 000000000..415882af1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementAdapter.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCPhysicalInputElementAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCPhysicalInputElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("sfSymbolsName") + public String getSfSymbolsName() { return null; } + @NotImplemented("localizedName") + public String getLocalizedName() { return null; } + @NotImplemented("aliases") + public NSSet getAliases() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementCollection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementCollection.java new file mode 100644 index 000000000..51fb61ab1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementCollection.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("GameController") @NativeClass/**/ +/**/public/**/ class /**/GCPhysicalInputElementCollection/**/ + extends /**/NSObject/**/ + /**/implements NSFastEnumeration/**/ { + + /**/public static class GCPhysicalInputElementCollectionPtr extends Ptr, GCPhysicalInputElementCollectionPtr> {}/**/ + /**/static { ObjCRuntime.bind(GCPhysicalInputElementCollection.class); }/**/ + /**//**/ + /**/ + protected GCPhysicalInputElementCollection() {} + protected GCPhysicalInputElementCollection(Handle h, long handle) { super(h, handle); } + protected GCPhysicalInputElementCollection(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "count") + public native @MachineSizedUInt long getCount(); + /**/ + /**//**/ + /**/ + @Method(selector = "elementForAlias:") + public native Element elementForAlias(Key alias); + @Method(selector = "objectForKeyedSubscript:") + public native Element objectForKeyedSubscript(Key key); + @Method(selector = "elementEnumerator") + public native NSEnumerator elementEnumerator(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementName.java new file mode 100644 index 000000000..ea19cebba --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementName.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/GCPhysicalInputElementName/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementNameAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementNameAdapter.java new file mode 100644 index 000000000..2442b09c3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputElementNameAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCPhysicalInputElementNameAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCPhysicalInputElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputProfile.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputProfile.java index d3b78e30c..b91bf331b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputProfile.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPhysicalInputProfile.java @@ -67,6 +67,16 @@ public GCPhysicalInputProfile() {} */ @Property(selector = "hasRemappedElements") public native boolean hasRemappedElements(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "valueDidChangeHandler") + public native @Block VoidBlock2 getValueDidChangeHandler(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setValueDidChangeHandler:") + public native void setValueDidChangeHandler(@Block VoidBlock2 v); /** * @since Available in iOS 14.0 and later. */ @@ -209,6 +219,20 @@ public static class Common { */ @GlobalValue(symbol="GCInputButtonShare", optional=true) public static native String ButtonShare(); + @GlobalValue(symbol="GCInputSteeringWheel", optional=true) + public static native String SteeringWheel(); + @GlobalValue(symbol="GCInputShifter", optional=true) + public static native String Shifter(); + @GlobalValue(symbol="GCInputPedalAccelerator", optional=true) + public static native String PedalAccelerator(); + @GlobalValue(symbol="GCInputPedalBrake", optional=true) + public static native String PedalBrake(); + @GlobalValue(symbol="GCInputPedalClutch", optional=true) + public static native String PedalClutch(); + @GlobalValue(symbol="GCInputLeftPaddle", optional=true) + public static native String LeftPaddle(); + @GlobalValue(symbol="GCInputRightPaddle", optional=true) + public static native String RightPaddle(); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInput.java new file mode 100644 index 000000000..2c9af0f16 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInput.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCPressedStateInput/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "pressedDidChangeHandler") + @Block VoidBlock3 getPressedDidChangeHandler(); + @Property(selector = "setPressedDidChangeHandler:") + void setPressedDidChangeHandler(@Block VoidBlock3 v); + @Property(selector = "isPressed") + boolean isPressed(); + @Property(selector = "lastPressedStateTimestamp") + double getLastPressedStateTimestamp(); + @Property(selector = "lastPressedStateLatency") + double getLastPressedStateLatency(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInputAdapter.java new file mode 100644 index 000000000..d0757653b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCPressedStateInputAdapter.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCPressedStateInputAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCPressedStateInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("pressedDidChangeHandler") + public @Block VoidBlock3 getPressedDidChangeHandler() { return null; } + @NotImplemented("setPressedDidChangeHandler:") + public void setPressedDidChangeHandler(@Block VoidBlock3 v) {} + @NotImplemented("isPressed") + public boolean isPressed() { return false; } + @NotImplemented("lastPressedStateTimestamp") + public double getLastPressedStateTimestamp() { return 0; } + @NotImplemented("lastPressedStateLatency") + public double getLastPressedStateLatency() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCProductCategory.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCProductCategory.java index 1d70f6fbd..537b1d4df 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCProductCategory.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCProductCategory.java @@ -68,6 +68,11 @@ */ @GlobalValue(symbol="GCProductCategoryXboxOne", optional=true) public static native String XboxOne(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="GCProductCategoryHID", optional=true) + public static native String HID(); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java new file mode 100644 index 000000000..ee3010a07 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java @@ -0,0 +1,105 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**/@Library("GameController") @NativeClass/**/ +/**/public/**/ class /**/GCRacingWheel/**/ + extends /**/NSObject/**/ + /**/implements GCDevice/**/ { + + /**/public static class GCRacingWheelPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(GCRacingWheel.class); }/**/ + /**//**/ + /**/ + protected GCRacingWheel() {} + protected GCRacingWheel(Handle h, long handle) { super(h, handle); } + protected GCRacingWheel(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "connectedRacingWheels") + public static native NSSet getConnectedRacingWheels(); + @Property(selector = "isAcquired") + public native boolean isAcquired(); + @Property(selector = "wheelInput") + public native GCRacingWheelInput getWheelInput(); + @Property(selector = "isSnapshot") + public native boolean isSnapshot(); + @Property(selector = "handlerQueue") + public native DispatchQueue getHandlerQueue(); + @Property(selector = "setHandlerQueue:") + public native void setHandlerQueue(DispatchQueue v); + @Property(selector = "vendorName") + public native String getVendorName(); + /** + * @since Available in iOS 13.0 and later. + */ + @Property(selector = "productCategory") + public native String getProductCategory(); + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use the physicalInputProfile property on GCController instead. For GCKeyboard, use the keyboardInput property. For GCMouse, use the mouseInput property. + */ + @Deprecated + @Property(selector = "physicalInputProfile") + public native GCPhysicalInputProfile getPhysicalInputProfile(); + /**/ + /**//**/ + /**/ + @Library("GameController") + public static class Notifications { + static { Bro.bind(Notifications.class); } + + @GlobalValue(symbol="GCRacingWheelDidConnectNotification", optional=true) + public static native NSString DidConnect(); + @GlobalValue(symbol="GCRacingWheelDidDisconnectNotification", optional=true) + public static native NSString DidDisconnect(); + } + + public boolean acquireDevice() throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + boolean result = acquireDevice(ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + @Method(selector = "acquireDeviceWithError:") + private native boolean acquireDevice(NSError.NSErrorPtr error); + @Method(selector = "relinquishDevice") + public native void relinquishDevice(); + @Method(selector = "capture") + public native GCRacingWheel capture(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInput.java new file mode 100644 index 000000000..110387874 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInput.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**/@Library("GameController") @NativeClass/**/ +/**/public/**/ class /**/GCRacingWheelInput/**/ + extends /**/GCRacingWheelInputState/**/ + /**/implements GCDevicePhysicalInput/**/ { + + /**/public static class GCRacingWheelInputPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(GCRacingWheelInput.class); }/**/ + /**//**/ + /**/ + public GCRacingWheelInput() {} + protected GCRacingWheelInput(Handle h, long handle) { super(h, handle); } + protected GCRacingWheelInput(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "device") + public native GCDevice getDevice(); + @Property(selector = "elementValueDidChangeHandler") + public native @Block VoidBlock1 getElementValueDidChangeHandler(); + @Property(selector = "setElementValueDidChangeHandler:") + public native void setElementValueDidChangeHandler(@Block VoidBlock1 v); + @Property(selector = "inputStateAvailableHandler") + public native @Block Runnable getInputStateAvailableHandler(); + @Property(selector = "setInputStateAvailableHandler:") + public native void setInputStateAvailableHandler(@Block Runnable v); + @Property(selector = "inputStateQueueDepth") + public native @MachineSizedSInt long getInputStateQueueDepth(); + @Property(selector = "setInputStateQueueDepth:") + public native void setInputStateQueueDepth(@MachineSizedSInt long v); + /**/ + /**//**/ + /**/ + @Method(selector = "capture") + public native GCRacingWheelInputState capture(); + @Method(selector = "nextInputState") + public native GCRacingWheelInputState nextInputState(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInputState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInputState.java new file mode 100644 index 000000000..09b0b0476 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInputState.java @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**/@Library("GameController") @NativeClass/**/ +/**/public/**/ class /**/GCRacingWheelInputState/**/ + extends /**/NSObject/**/ + /**/implements GCDevicePhysicalInputState/**/ { + + /**/public static class GCRacingWheelInputStatePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(GCRacingWheelInputState.class); }/**/ + /**//**/ + /**/ + public GCRacingWheelInputState() {} + protected GCRacingWheelInputState(Handle h, long handle) { super(h, handle); } + protected GCRacingWheelInputState(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "wheel") + public native GCSteeringWheelElement getWheel(); + @Property(selector = "acceleratorPedal") + public native GCButtonElement getAcceleratorPedal(); + @Property(selector = "brakePedal") + public native GCButtonElement getBrakePedal(); + @Property(selector = "clutchPedal") + public native GCButtonElement getClutchPedal(); + @Property(selector = "shifter") + public native GCGearShifterElement getShifter(); + @Property(selector = "device") + public native GCDevice getDevice(); + @Property(selector = "lastEventTimestamp") + public native double getLastEventTimestamp(); + @Property(selector = "lastEventLatency") + public native double getLastEventLatency(); + @Property(selector = "elements") + public native GCPhysicalInputElementCollection getElements(); + @Property(selector = "buttons") + public native GCPhysicalInputElementCollection getButtons(); + @Property(selector = "axes") + public native GCPhysicalInputElementCollection getAxes(); + @Property(selector = "switches") + public native GCPhysicalInputElementCollection getSwitches(); + @Property(selector = "dpads") + public native GCPhysicalInputElementCollection getDpads(); + /**/ + /**//**/ + /**/ + @Method(selector = "objectForKeyedSubscript:") + public native GCPhysicalInputElement objectForKeyedSubscript(String key); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInput.java new file mode 100644 index 000000000..93b7e9f48 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInput.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCRelativeInput/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "deltaDidChangeHandler") + @Block VoidBlock3 getDeltaDidChangeHandler(); + @Property(selector = "setDeltaDidChangeHandler:") + void setDeltaDidChangeHandler(@Block VoidBlock3 v); + @Property(selector = "delta") + float getDelta(); + @Property(selector = "isAnalog") + boolean isAnalog(); + @Property(selector = "lastDeltaTimestamp") + double getLastDeltaTimestamp(); + @Property(selector = "lastDeltaLatency") + double getLastDeltaLatency(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInputAdapter.java new file mode 100644 index 000000000..33b0dcaf3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRelativeInputAdapter.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCRelativeInputAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCRelativeInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("deltaDidChangeHandler") + public @Block VoidBlock3 getDeltaDidChangeHandler() { return null; } + @NotImplemented("setDeltaDidChangeHandler:") + public void setDeltaDidChangeHandler(@Block VoidBlock3 v) {} + @NotImplemented("delta") + public float getDelta() { return 0; } + @NotImplemented("isAnalog") + public boolean isAnalog() { return false; } + @NotImplemented("lastDeltaTimestamp") + public double getLastDeltaTimestamp() { return 0; } + @NotImplemented("lastDeltaLatency") + public double getLastDeltaLatency() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSteeringWheelElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSteeringWheelElement.java new file mode 100644 index 000000000..5e0bca004 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSteeringWheelElement.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**/@Library("GameController") @NativeClass/**/ +/**/public/**/ class /**/GCSteeringWheelElement/**/ + extends /**/NSObject/**/ + /**/implements GCAxisElement/**/ { + + /**/public static class GCSteeringWheelElementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(GCSteeringWheelElement.class); }/**/ + /**//**/ + /**/ + protected GCSteeringWheelElement() {} + protected GCSteeringWheelElement(Handle h, long handle) { super(h, handle); } + protected GCSteeringWheelElement(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "maximumDegreesOfRotation") + public native float getMaximumDegreesOfRotation(); + @Property(selector = "absoluteInput") + public native GCAxisInput getAbsoluteInput(); + @Property(selector = "relativeInput") + public native GCRelativeInput getRelativeInput(); + @Property(selector = "sfSymbolsName") + public native String getSfSymbolsName(); + @Property(selector = "localizedName") + public native String getLocalizedName(); + @Property(selector = "aliases") + public native NSSet getAliases(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElement.java new file mode 100644 index 000000000..115d16990 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElement.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCSwitchElement/**/ + /**/extends GCPhysicalInputElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "positionInput") + GCSwitchPositionInput getPositionInput(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementAdapter.java new file mode 100644 index 000000000..0062d8f76 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementAdapter.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCSwitchElementAdapter/**/ + extends /**/GCPhysicalInputElementAdapter/**/ + /**/implements GCSwitchElement/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("positionInput") + public GCSwitchPositionInput getPositionInput() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementName.java new file mode 100644 index 000000000..f3b53c4fb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementName.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/GCSwitchElementName/**/ + /**/extends GCPhysicalInputElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementNameAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementNameAdapter.java new file mode 100644 index 000000000..faa8bef54 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchElementNameAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCSwitchElementNameAdapter/**/ + extends /**/GCPhysicalInputElementNameAdapter/**/ + /**/implements GCSwitchElementName/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInput.java new file mode 100644 index 000000000..b61d243df --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInput.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCSwitchPositionInput/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "positionDidChangeHandler") + @Block("(,,@MachineSizedSInt)") VoidBlock3 getPositionDidChangeHandler(); + @Property(selector = "setPositionDidChangeHandler:") + void setPositionDidChangeHandler(@Block("(,,@MachineSizedSInt)") VoidBlock3 v); + @Property(selector = "position") + @MachineSizedSInt long getPosition(); + @Property(selector = "positionRange") + @ByVal NSRange getPositionRange(); + @Property(selector = "isSequential") + boolean isSequential(); + @Property(selector = "canWrap") + boolean canWrap(); + @Property(selector = "lastPositionTimestamp") + double getLastPositionTimestamp(); + @Property(selector = "lastPositionLatency") + double getLastPositionLatency(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInputAdapter.java new file mode 100644 index 000000000..aa1c13d08 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCSwitchPositionInputAdapter.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCSwitchPositionInputAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCSwitchPositionInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("positionDidChangeHandler") + public @Block("(,,@MachineSizedSInt)") VoidBlock3 getPositionDidChangeHandler() { return null; } + @NotImplemented("setPositionDidChangeHandler:") + public void setPositionDidChangeHandler(@Block("(,,@MachineSizedSInt)") VoidBlock3 v) {} + @NotImplemented("position") + public @MachineSizedSInt long getPosition() { return 0; } + @NotImplemented("positionRange") + public @ByVal NSRange getPositionRange() { return null; } + @NotImplemented("isSequential") + public boolean isSequential() { return false; } + @NotImplemented("canWrap") + public boolean canWrap() { return false; } + @NotImplemented("lastPositionTimestamp") + public double getLastPositionTimestamp() { return 0; } + @NotImplemented("lastPositionLatency") + public double getLastPositionLatency() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInput.java new file mode 100644 index 000000000..738ea9252 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInput.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/GCTouchedStateInput/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "touchedDidChangeHandler") + @Block VoidBlock3 getTouchedDidChangeHandler(); + @Property(selector = "setTouchedDidChangeHandler:") + void setTouchedDidChangeHandler(@Block VoidBlock3 v); + @Property(selector = "isTouched") + boolean isTouched(); + @Property(selector = "lastTouchedStateTimestamp") + double getLastTouchedStateTimestamp(); + @Property(selector = "lastTouchedStateLatency") + double getLastTouchedStateLatency(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInputAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInputAdapter.java new file mode 100644 index 000000000..899d066db --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCTouchedStateInputAdapter.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.gamecontroller; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corehaptic.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/GCTouchedStateInputAdapter/**/ + extends /**/NSObject/**/ + /**/implements GCTouchedStateInput/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("touchedDidChangeHandler") + public @Block VoidBlock3 getTouchedDidChangeHandler() { return null; } + @NotImplemented("setTouchedDidChangeHandler:") + public void setTouchedDidChangeHandler(@Block VoidBlock3 v) {} + @NotImplemented("isTouched") + public boolean isTouched() { return false; } + @NotImplemented("lastTouchedStateTimestamp") + public double getLastTouchedStateTimestamp() { return 0; } + @NotImplemented("lastTouchedStateLatency") + public double getLastTouchedStateLatency() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} From cd5a1c8ea49d6a5d01c57890f8a030bb546bdd03 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Thu, 22 Sep 2022 09:25:10 +0300 Subject: [PATCH 32/73] * ios16 bindings: CoreBluetooth processed --- .../src/main/bro-gen/corebluetooth.yaml | 5 +++-- .../CBCentralManagerOptions.java | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/corebluetooth.yaml b/compiler/cocoatouch/src/main/bro-gen/corebluetooth.yaml index 1abcd13c1..c91da7041 100755 --- a/compiler/cocoatouch/src/main/bro-gen/corebluetooth.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/corebluetooth.yaml @@ -387,7 +387,7 @@ values: RequiresANCS: name: requiresANCS type: boolean - CBCentralManagerOption(.*)Key: + CBCentralManagerOption(.*?)(?:Key)?: dictionary: CBCentralManagerOptions name: '#{g[0]}' type: NSString @@ -397,7 +397,8 @@ values: type: boolean RestoreIdentifier: type: String - + DeviceAccessForMedia: + type: boolean # CBCentralManagerDelegate CBAdvertisementData(IsConnectable): dictionary: CBAdvertisementData diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corebluetooth/CBCentralManagerOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corebluetooth/CBCentralManagerOptions.java index 818cc1fce..d44823d03 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corebluetooth/CBCentralManagerOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corebluetooth/CBCentralManagerOptions.java @@ -130,6 +130,23 @@ public CBCentralManagerOptions setRestoreIdentifier(String restoreIdentifier) { set(Keys.RestoreIdentifier(), new NSString(restoreIdentifier)); return this; } + /** + * @since Available in iOS 16.0 and later. + */ + public boolean isDeviceAccessForMedia() { + if (has(Keys.DeviceAccessForMedia())) { + NSNumber val = (NSNumber) get(Keys.DeviceAccessForMedia()); + return val.booleanValue(); + } + return false; + } + /** + * @since Available in iOS 16.0 and later. + */ + public CBCentralManagerOptions setDeviceAccessForMedia(boolean deviceAccessForMedia) { + set(Keys.DeviceAccessForMedia(), NSNumber.valueOf(deviceAccessForMedia)); + return this; + } /**/ /**/ @@ -140,6 +157,11 @@ public static class Keys { public static native NSString ShowPowerAlert(); @GlobalValue(symbol="CBCentralManagerOptionRestoreIdentifierKey", optional=true) public static native NSString RestoreIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="CBCentralManagerOptionDeviceAccessForMedia", optional=true) + public static native NSString DeviceAccessForMedia(); } /**/ } From 9ea4697e48f4cf78a69beabe63ac74d8247bd0a8 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Thu, 22 Sep 2022 12:16:19 +0300 Subject: [PATCH 33/73] * ios16 bindings: GameKit processed --- .../src/main/java/org/robovm/apple/gamekit/GKBasePlayer.java | 4 ++++ .../src/main/java/org/robovm/apple/gamekit/GKScore.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKBasePlayer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKBasePlayer.java index 7f5d18238..1efd16c57 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKBasePlayer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKBasePlayer.java @@ -51,6 +51,10 @@ public GKBasePlayer() {} protected GKBasePlayer(SkipInit skipInit) { super(skipInit); } /**/ /**/ + /** + * @deprecated Deprecated in iOS 13.0. use the teamPlayerID property to identify a player + */ + @Deprecated @Property(selector = "playerID") public native String getPlayerID(); @Property(selector = "displayName") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKScore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKScore.java index 79afec2d3..e0d002381 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKScore.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKScore.java @@ -34,7 +34,7 @@ /**/ /** - * @deprecated Deprecated in iOS 14.0. Replaced by GKLeaderboardEntry + * @deprecated Deprecated in iOS 14.0. Replaced by GKLeaderboardScore */ /**/ /**/@Library("GameKit") @NativeClass @Deprecated/**/ From 5bcfe00472c3c6128b847e116fbb23f1c511ca5c Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Thu, 22 Sep 2022 13:26:02 +0300 Subject: [PATCH 34/73] * ios16 bindings: CoreFoundation processed --- compiler/cocoatouch/src/main/bro-gen/corefoundation.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/cocoatouch/src/main/bro-gen/corefoundation.yaml b/compiler/cocoatouch/src/main/bro-gen/corefoundation.yaml index b7f68a031..db50935cf 100755 --- a/compiler/cocoatouch/src/main/bro-gen/corefoundation.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/corefoundation.yaml @@ -1523,6 +1523,8 @@ functions: parameters: theString: type: CFString + CFStringCreateStringWithValidatedFormatAndArguments: + exclude: true # variable list argument is not suppoered CFString(Create.*): class: CFString name: '#{g[0]}' From e87f0d167bdf744d4599cfc9eead7022823a2722 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 16:18:54 +0300 Subject: [PATCH 35/73] * ios16 bindings: HealthKit processed --- .../src/main/bro-gen/healthkit.yaml | 120 +++++++++++++++- .../apple/healthkit/HKActivityMoveMode.java | 1 + .../healthkit/HKActivityMoveModeObject.java | 1 + .../apple/healthkit/HKActivitySummary.java | 41 ++++++ .../healthkit/HKActivitySummaryQuery.java | 1 + .../healthkit/HKActivitySummaryType.java | 6 + .../healthkit/HKAnchoredObjectQuery.java | 1 + .../healthkit/HKAppleECGAlgorithmVersion.java | 1 + ...KAppleWalkingSteadinessClassification.java | 1 + .../robovm/apple/healthkit/HKAttachment.java | 77 ++++++++++ .../apple/healthkit/HKAttachmentStore.java | 72 ++++++++++ .../apple/healthkit/HKAudiogramSample.java | 1 + .../healthkit/HKAudiogramSampleType.java | 6 + .../HKAudiogramSensitivityPoint.java | 1 + .../HKAuthorizationRequestStatus.java | 1 + .../healthkit/HKAuthorizationStatus.java | 1 + .../apple/healthkit/HKBiologicalSex.java | 1 + .../healthkit/HKBiologicalSexObject.java | 1 + .../healthkit/HKBloodGlucoseMealTime.java | 1 + .../robovm/apple/healthkit/HKBloodType.java | 1 + .../apple/healthkit/HKBloodTypeObject.java | 1 + .../HKBodyQuantityTypeIdentifier.java | 12 +- .../HKBodyTemperatureSensorLocation.java | 1 + .../robovm/apple/healthkit/HKCDADocument.java | 1 + .../apple/healthkit/HKCDADocumentSample.java | 1 + .../apple/healthkit/HKCategorySample.java | 1 + .../apple/healthkit/HKCategoryType.java | 6 + .../healthkit/HKCategoryTypeIdentifier.java | 39 ++++- .../apple/healthkit/HKCategoryValue.java | 1 + .../HKCategoryValueAppetiteChanges.java | 1 + .../HKCategoryValueAppleStandHour.java | 1 + ...egoryValueAppleWalkingSteadinessEvent.java | 1 + .../HKCategoryValueAudioExposureEvent.java | 1 + .../HKCategoryValueCervicalMucusQuality.java | 1 + .../HKCategoryValueContraceptive.java | 1 + ...yValueEnvironmentalAudioExposureEvent.java | 1 + ...egoryValueHeadphoneAudioExposureEvent.java | 1 + .../HKCategoryValueLowCardioFitnessEvent.java | 1 + .../HKCategoryValueMenstrualFlow.java | 1 + .../HKCategoryValueOvulationTestResult.java | 1 + .../HKCategoryValuePregnancyTestResult.java | 1 + .../healthkit/HKCategoryValuePresence.java | 1 + ...HKCategoryValueProgesteroneTestResult.java | 1 + .../healthkit/HKCategoryValueSeverity.java | 1 + .../HKCategoryValueSleepAnalysis.java | 36 ++++- .../apple/healthkit/HKCharacteristicType.java | 6 + .../HKCharacteristicTypeIdentifier.java | 1 + .../apple/healthkit/HKClinicalRecord.java | 1 + .../apple/healthkit/HKClinicalType.java | 6 + .../healthkit/HKClinicalTypeIdentifier.java | 1 + .../HKContactsLensSpecification.java | 73 ++++++++++ .../healthkit/HKContactsPrescription.java | 68 +++++++++ .../robovm/apple/healthkit/HKCorrelation.java | 1 + .../apple/healthkit/HKCorrelationQuery.java | 1 + .../apple/healthkit/HKCorrelationType.java | 6 + .../HKCorrelationTypeIdentifier.java | 1 + .../healthkit/HKCumulativeQuantitySample.java | 1 + .../HKCumulativeQuantitySeriesSample.java | 1 + .../apple/healthkit/HKDeletedObject.java | 1 + .../org/robovm/apple/healthkit/HKDevice.java | 1 + .../healthkit/HKDevicePlacementSide.java | 1 + .../HKDietaryQuantityTypeIdentifier.java | 1 + .../healthkit/HKDiscreteQuantitySample.java | 1 + .../apple/healthkit/HKDocumentQuery.java | 1 + .../apple/healthkit/HKDocumentSample.java | 1 + .../apple/healthkit/HKDocumentType.java | 6 + .../healthkit/HKDocumentTypeIdentifier.java | 1 + .../apple/healthkit/HKElectrocardiogram.java | 1 + .../HKElectrocardiogramClassification.java | 1 + .../healthkit/HKElectrocardiogramLead.java | 1 + .../healthkit/HKElectrocardiogramQuery.java | 1 + .../HKElectrocardiogramSymptomsStatus.java | 1 + .../healthkit/HKElectrocardiogramType.java | 6 + ...HKElectrocardiogramVoltageMeasurement.java | 1 + .../org/robovm/apple/healthkit/HKError.java | 1 + .../robovm/apple/healthkit/HKErrorCode.java | 1 + .../robovm/apple/healthkit/HKFHIRRelease.java | 1 + .../apple/healthkit/HKFHIRResource.java | 1 + .../apple/healthkit/HKFHIRResourceType.java | 1 + .../robovm/apple/healthkit/HKFHIRVersion.java | 1 + .../HKFitnessQuantityTypeIdentifier.java | 48 ++++++- .../healthkit/HKFitzpatrickSkinType.java | 1 + .../HKFitzpatrickSkinTypeObject.java | 1 + .../healthkit/HKGlassesLensSpecification.java | 77 ++++++++++ .../healthkit/HKGlassesPrescription.java | 66 +++++++++ .../robovm/apple/healthkit/HKHealthStore.java | 3 + .../healthkit/HKHeartRateMotionContext.java | 1 + .../HKHeartRateRecoveryTestType.java | 65 +++++++++ .../healthkit/HKHeartRateSensorLocation.java | 1 + .../healthkit/HKHeartbeatSeriesBuilder.java | 1 + .../healthkit/HKHeartbeatSeriesQuery.java | 1 + .../healthkit/HKHeartbeatSeriesSample.java | 1 + .../healthkit/HKInsulinDeliveryReason.java | 1 + .../apple/healthkit/HKLensSpecification.java | 66 +++++++++ .../robovm/apple/healthkit/HKMetadataKey.java | 93 +++++++++++- .../apple/healthkit/HKMetricPrefix.java | 1 + .../org/robovm/apple/healthkit/HKObject.java | 1 + .../robovm/apple/healthkit/HKObjectType.java | 8 ++ .../apple/healthkit/HKObserverQuery.java | 1 + .../HKOtherQuantityTypeIdentifier.java | 127 ++++++++++++++++ .../apple/healthkit/HKPredicateKeyPath.java | 120 +++++++++++++++- .../apple/healthkit/HKPrescriptionType.java | 99 +++++++++++++ .../robovm/apple/healthkit/HKPrismBase.java | 67 +++++++++ .../robovm/apple/healthkit/HKQuantity.java | 1 + .../healthkit/HKQuantityAggregationStyle.java | 1 + .../apple/healthkit/HKQuantitySample.java | 1 + .../HKQuantitySeriesSampleBuilder.java | 1 + .../HKQuantitySeriesSampleQuery.java | 1 + .../apple/healthkit/HKQuantityType.java | 6 + .../org/robovm/apple/healthkit/HKQuery.java | 78 ++++++++++ .../robovm/apple/healthkit/HKQueryAnchor.java | 1 + .../apple/healthkit/HKQueryDescriptor.java | 1 + .../apple/healthkit/HKQueryOptions.java | 1 + .../HKResultsQuantityTypeIdentifier.java | 1 + .../org/robovm/apple/healthkit/HKSample.java | 1 + .../robovm/apple/healthkit/HKSampleQuery.java | 1 + .../healthkit/HKSampleSortIdentifier.java | 1 + .../robovm/apple/healthkit/HKSampleType.java | 6 + .../apple/healthkit/HKSeriesBuilder.java | 1 + .../apple/healthkit/HKSeriesSample.java | 1 + .../robovm/apple/healthkit/HKSeriesType.java | 6 + .../org/robovm/apple/healthkit/HKSource.java | 1 + .../robovm/apple/healthkit/HKSourceQuery.java | 1 + .../apple/healthkit/HKSourceRevision.java | 1 + .../robovm/apple/healthkit/HKStatistics.java | 1 + .../healthkit/HKStatisticsCollection.java | 1 + .../HKStatisticsCollectionQuery.java | 1 + .../apple/healthkit/HKStatisticsOptions.java | 1 + .../apple/healthkit/HKStatisticsQuery.java | 1 + .../healthkit/HKSwimmingStrokeStyle.java | 7 +- .../healthkit/HKUVExposureTypeIdentifier.java | 1 + .../org/robovm/apple/healthkit/HKUnit.java | 36 +++++ .../apple/healthkit/HKUpdateFrequency.java | 1 + .../apple/healthkit/HKUserMotionContext.java | 65 +++++++++ .../apple/healthkit/HKVO2MaxTestType.java | 1 + .../healthkit/HKVerifiableClinicalRecord.java | 1 + ...erifiableClinicalRecordCredentialType.java | 1 + .../HKVerifiableClinicalRecordQuery.java | 1 + .../HKVerifiableClinicalRecordSourceType.java | 1 + .../HKVerifiableClinicalRecordSubject.java | 1 + .../robovm/apple/healthkit/HKVisionEye.java | 64 +++++++++ .../apple/healthkit/HKVisionPrescription.java | 68 +++++++++ .../healthkit/HKVisionPrescriptionType.java | 64 +++++++++ .../HKVisionPrescriptionTypeIdentifier.java | 127 ++++++++++++++++ .../robovm/apple/healthkit/HKVisionPrism.java | 87 +++++++++++ .../HKVitalSignsQuantityTypeIdentifier.java | 12 +- .../healthkit/HKWaterTypeIdentifier.java | 136 ++++++++++++++++++ .../apple/healthkit/HKWeatherCondition.java | 1 + .../apple/healthkit/HKWheelchairUse.java | 1 + .../healthkit/HKWheelchairUseObject.java | 1 + .../org/robovm/apple/healthkit/HKWorkout.java | 28 ++++ .../apple/healthkit/HKWorkoutActivity.java | 82 +++++++++++ .../healthkit/HKWorkoutActivityType.java | 9 ++ .../apple/healthkit/HKWorkoutBuilder.java | 26 ++++ .../healthkit/HKWorkoutConfiguration.java | 1 + .../apple/healthkit/HKWorkoutEvent.java | 1 + .../apple/healthkit/HKWorkoutEventType.java | 1 + .../apple/healthkit/HKWorkoutRoute.java | 1 + .../healthkit/HKWorkoutRouteBuilder.java | 1 + .../apple/healthkit/HKWorkoutRouteQuery.java | 11 ++ .../healthkit/HKWorkoutSessionDelegate.java | 1 + .../HKWorkoutSessionLocationType.java | 1 + .../healthkit/HKWorkoutSortIdentifier.java | 1 + .../HKWorkoutSwimmingLocationType.java | 1 + .../robovm/apple/healthkit/HKWorkoutType.java | 6 + .../healthkit/HKWorkoutTypeIdentifier.java | 1 + 166 files changed, 2448 insertions(+), 18 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachment.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachmentStore.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsLensSpecification.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsPrescription.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesLensSpecification.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesPrescription.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateRecoveryTestType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKLensSpecification.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKOtherQuantityTypeIdentifier.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrescriptionType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrismBase.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUserMotionContext.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionEye.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescription.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionTypeIdentifier.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrism.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWaterTypeIdentifier.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivity.java diff --git a/compiler/cocoatouch/src/main/bro-gen/healthkit.yaml b/compiler/cocoatouch/src/main/bro-gen/healthkit.yaml index 7d770ec8e..7179a872e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/healthkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/healthkit.yaml @@ -1,5 +1,5 @@ package: org.robovm.apple.healthkit -include: [foundation.yaml] +include: [foundation, uniformtypeid] library: HealthKit framework: HealthKit clang_args: ['-x', 'objective-c'] @@ -59,7 +59,11 @@ enums: HKCategoryValueProgesteroneTestResult: {} #since 15.0 HKCategoryValueAppleWalkingSteadinessEvent: {} #since 15.0 HKAppleWalkingSteadinessClassification: {} #since 15.0 - + HKVisionPrescriptionType: {} #since 16.0 + HKUserMotionContext: {} #since 16.0 + HKHeartRateRecoveryTestType: {} #since 16.0 + HKPrismBase: {} #since 16.0 + HKVisionEye: {} #since 16.0 typed_enums: HKFHIRResourceType: enum: HKFHIRResourceType @@ -173,6 +177,8 @@ classes: name: getActivityMoveMode '-recalibrateEstimatesForSampleType:atDate:completion:': name: recalibrateEstimates + '-requestPerObjectReadAuthorizationForType:predicate:completion:': + name: requestPerObjectReadAuthorization HKObject: # DONE properties: 'metadata': @@ -398,6 +404,30 @@ classes: name: predicateForElectrocardiogramsWithSymptomsStatus '+predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval:': name: predicateForVerifiableClinicalRecords + '+predicateForWorkoutsWithOperatorType:quantityType:sumQuantity:': + name: predicateForWorkoutsSumQuantity + '+predicateForWorkoutsWithOperatorType:quantityType:minimumQuantity:': + name: predicateForWorkoutsMinimumQuantity + '+predicateForWorkoutsWithOperatorType:quantityType:maximumQuantity:': + name: predicateForWorkoutsMaximumQuantity + '+predicateForWorkoutsWithOperatorType:quantityType:averageQuantity:': + name: predicateForWorkoutsAverageQuantity + '+predicateForWorkoutActivitiesWithWorkoutActivityType:': + name: predicateForWorkoutActivities + '+predicateForWorkoutActivitiesWithOperatorType:duration:': + name: predicateForWorkoutActivities + '+predicateForWorkoutActivitiesWithStartDate:endDate:options:': + name: predicateForWorkoutActivities + '+predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity:': + name: predicateForWorkoutActivitiesSumQuantity + '+predicateForWorkoutActivitiesWithOperatorType:quantityType:minimumQuantity:': + name: predicateForWorkoutActivitiesMinimumQuantity + '+predicateForWorkoutActivitiesWithOperatorType:quantityType:maximumQuantity:': + name: predicateForWorkoutActivitiesMaximumQuantity + '+predicateForWorkoutActivitiesWithOperatorType:quantityType:averageQuantity:': + name: predicateForWorkoutActivitiesAverageQuantity + '+predicateForWorkoutsWithActivityPredicate:': + name: predicateForWorkouts HKAnchoredObjectQuery: # DONE methods: '-initWithType:predicate:anchor:limit:completionHandler:': @@ -591,6 +621,8 @@ classes: methods: '-initWithRoute:dataHandler:': name: init + '-initWithRoute:dateInterval:dataHandler:': + name: init HKClinicalRecord: {} #since 12.0 HKClinicalType: {} #since 12.0 HKCumulativeQuantitySeriesSample: {} #since 12.0 @@ -631,6 +663,12 @@ classes: name: endCollection '-finishWorkoutWithCompletion:': name: finishWorkout + '-addWorkoutActivity:completion:': + name: addWorkoutActivity + '-updateActivityWithUUID:endDate:completion:': + name: updateActivity + '-updateActivityWithUUID:addMedatata:completion:': + name: updateActivity HKAudiogramSample: #since 13.0 methods: '+audiogramSampleWithSensitivityPoints:startDate:endDate:metadata:': @@ -685,6 +723,56 @@ classes: '-initWithRecordTypes:sourceTypes:predicate:resultsHandler:': name: init HKVerifiableClinicalRecordSubject: {} #since 15.0 + HKAttachment: {} #since 16.0 + HKAttachmentStore: #since 16.0 + methods: + '-initWithHealthStore:': + name: init + '-addAttachmentToObject:name:contentType:URL:metadata:completion:': + name: addAttachment + '-removeAttachment:fromObject:completion:': + name: removeAttachment + '-getAttachmentsForObject:completion:': + name: getAttachments + '-getDataForAttachment:completion:': + name: getData + '-streamDataForAttachment:dataHandler:': + name: streamData + HKContactsLensSpecification: #since 16.0 + methods: + '-initWithSphere:cylinder:axis:addPower:baseCurve:diameter:': + name: init + HKContactsPrescription: #since 16.0 + methods: + '+prescriptionWithRightEyeSpecification:leftEyeSpecification:brand:dateIssued:expirationDate:device:metadata:': + constructor: true + name: create + HKGlassesLensSpecification: #since 16.0 + methods: + '-initWithSphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:': + name: init + HKGlassesPrescription: #since 16.0 + methods: + '+prescriptionWithRightEyeSpecification:leftEyeSpecification:dateIssued:expirationDate:device:metadata:': + constructor: true + name: create + HKLensSpecification: {} #since 16.0 + HKPrescriptionType: {} #since 16.0 + HKVisionPrescription: #since 16.0 + methods: + '+prescriptionWithType:dateIssued:expirationDate:device:metadata:': + constructor: true + name: create + HKVisionPrism: #since 16.0 + methods: + '-initWithAmount:angle:eye:': + name: init + '-initWithVerticalAmount:verticalBase:horizontalAmount:horizontalBase:eye:': + name: init + HKWorkoutActivity: #since 16.0 + methods: + '-initWithWorkoutConfiguration:startDate:endDate:metadata:': + name: init protocols: HKWorkoutSessionDelegate: {} @@ -696,6 +784,9 @@ functions: HKAppleWalkingSteadiness(MinimumQuantityForClassification|MaximumQuantityForClassification): class: HKAppleWalkingSteadinessClassification name: '#{g[0]}' + HKCategoryValueSleepAnalysisAsleepValues: + class: HKCategoryValueSleepAnalysis + name: 'asleepValues' # Make sure we don't miss any functions if new ones are introduced in a later version (HK.*): @@ -712,17 +803,17 @@ values: name: '#{g[0]}' type: NSString - HKQuantityTypeIdentifier(BodyMassIndex|BodyFatPercentage|Height|BodyMass|LeanBodyMass|WaistCircumference): + HKQuantityTypeIdentifier(BodyMassIndex|BodyFatPercentage|Height|BodyMass|LeanBodyMass|WaistCircumference|AppleSleepingWristTemperature): enum: HKBodyQuantityTypeIdentifier name: '#{g[0]}' type: NSString extends: HKQuantityTypeIdentifier - HKQuantityTypeIdentifier(AppleWalkingSteadiness|StepCount|DistanceWalkingRunning|DistanceCycling|DistanceWheelchair|BasalEnergyBurned|ActiveEnergyBurned|FlightsClimbed|NikeFuel|AppleExerciseTime|PushCount|DistanceSwimming|SwimmingStrokeCount|VO2Max|DistanceDownhillSnowSports|AppleStandTime|WalkingSpeed|WalkingDoubleSupportPercentage|WalkingAsymmetryPercentage|WalkingStepLength|SixMinuteWalkTestDistance|StairAscentSpeed|StairDescentSpeed|AppleMoveTime): + HKQuantityTypeIdentifier(AppleWalkingSteadiness|StepCount|DistanceWalkingRunning|DistanceCycling|DistanceWheelchair|BasalEnergyBurned|ActiveEnergyBurned|FlightsClimbed|NikeFuel|AppleExerciseTime|PushCount|DistanceSwimming|SwimmingStrokeCount|VO2Max|DistanceDownhillSnowSports|AppleStandTime|WalkingSpeed|WalkingDoubleSupportPercentage|WalkingAsymmetryPercentage|WalkingStepLength|SixMinuteWalkTestDistance|StairAscentSpeed|StairDescentSpeed|AppleMoveTime|RunningStrideLength|RunningVerticalOscillation|RunningGroundContactTime|RunningPower|RunningSpeed): enum: HKFitnessQuantityTypeIdentifier name: '#{g[0]}' type: NSString extends: HKQuantityTypeIdentifier - HKQuantityTypeIdentifier(HeartRate|BodyTemperature|BasalBodyTemperature|BloodPressureSystolic|BloodPressureDiastolic|RespiratoryRate|RestingHeartRate|WalkingHeartRateAverage|HeartRateVariabilitySDNN): + HKQuantityTypeIdentifier(HeartRate|BodyTemperature|BasalBodyTemperature|BloodPressureSystolic|BloodPressureDiastolic|RespiratoryRate|RestingHeartRate|WalkingHeartRateAverage|HeartRateVariabilitySDNN|HeartRateRecoveryOneMinute): enum: HKVitalSignsQuantityTypeIdentifier name: '#{g[0]}' type: NSString @@ -747,6 +838,11 @@ values: name: 'UVExposure' type: NSString extends: HKQuantityTypeIdentifier + HKQuantityTypeIdentifier(UnderwaterDepth|WaterTemperature): + enum: HKWaterTypeIdentifier + name: '#{g[0]}' + type: NSString + extends: HKQuantityTypeIdentifier HKDocumentTypeIdentifier(.*): enum: HKDocumentTypeIdentifier name: '#{g[0]}' @@ -772,7 +868,12 @@ values: name: Workout type: NSString extends: HKTypeIdentifier - + HKVisionPrescriptionTypeIdentifier: + enum: HKVisionPrescriptionTypeIdentifier + name: Prescription + type: NSString + extends: HKTypeIdentifier + HKMetadataKey(.*): enum: HKMetadataKey name: '#{g[0]}' @@ -806,6 +907,13 @@ values: HKDeviceProperty(.*): class: HKDevice name: 'Property#{g[0]}' + + HKQuantityTypeIdentifier(AtrialFibrillationBurden): + enum: HKOtherQuantityTypeIdentifier + name: '#{g[0]}' + type: NSString + extends: HKQuantityTypeIdentifier + HKQuantityTypeIdentifier(.*): # since ios 11 class: !!FIXME # dkimitsa: these probably should be put in different locations name: '#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveMode.java index 53113562c..6cca478d3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveMode.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveModeObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveModeObject.java index 7e5f6e89a..1da218a06 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveModeObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivityMoveModeObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummary.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummary.java index 1fbf0f2b3..2e251f4b3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummary.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummary.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -97,14 +98,54 @@ public HKActivitySummary() {} */ @Property(selector = "setAppleMoveTimeGoal:") public native void setAppleMoveTimeGoal(HKQuantity v); + /** + * @since Available in iOS 9.3 and later. + * @deprecated Use exerciseTimeGoal + */ + @Deprecated @Property(selector = "appleExerciseTimeGoal") public native HKQuantity getAppleExerciseTimeGoal(); + /** + * @since Available in iOS 9.3 and later. + * @deprecated Use exerciseTimeGoal + */ + @Deprecated @Property(selector = "setAppleExerciseTimeGoal:") public native void setAppleExerciseTimeGoal(HKQuantity v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "exerciseTimeGoal") + public native HKQuantity getExerciseTimeGoal(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setExerciseTimeGoal:") + public native void setExerciseTimeGoal(HKQuantity v); + /** + * @since Available in iOS 9.3 and later. + * @deprecated Use standHoursGoal + */ + @Deprecated @Property(selector = "appleStandHoursGoal") public native HKQuantity getAppleStandHoursGoal(); + /** + * @since Available in iOS 9.3 and later. + * @deprecated Use standHoursGoal + */ + @Deprecated @Property(selector = "setAppleStandHoursGoal:") public native void setAppleStandHoursGoal(HKQuantity v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "standHoursGoal") + public native HKQuantity getStandHoursGoal(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setStandHoursGoal:") + public native void setStandHoursGoal(HKQuantity v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryQuery.java index ff9a1e614..e5fc100ad 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryType.java index e5b187544..d3892ec1d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKActivitySummaryType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -89,5 +90,10 @@ protected HKActivitySummaryType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAnchoredObjectQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAnchoredObjectQuery.java index 2e6842f46..ea0efef07 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAnchoredObjectQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAnchoredObjectQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleECGAlgorithmVersion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleECGAlgorithmVersion.java index 974871e5a..bb5001961 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleECGAlgorithmVersion.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleECGAlgorithmVersion.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleWalkingSteadinessClassification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleWalkingSteadinessClassification.java index b0dd926f7..9650ad6b5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleWalkingSteadinessClassification.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAppleWalkingSteadinessClassification.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachment.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachment.java new file mode 100644 index 000000000..047e82399 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachment.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKAttachment/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class HKAttachmentPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKAttachment.class); }/**/ + /**//**/ + /**/ + protected HKAttachment() {} + protected HKAttachment(Handle h, long handle) { super(h, handle); } + protected HKAttachment(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public HKAttachment(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "identifier") + public native NSUUID getIdentifier(); + @Property(selector = "name") + public native String getName(); + @Property(selector = "contentType") + public native UTType getContentType(); + @Property(selector = "size") + public native @MachineSizedSInt long getSize(); + @Property(selector = "creationDate") + public native NSDate getCreationDate(); + @Property(selector = "metadata") + public native NSDictionary getMetadata(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachmentStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachmentStore.java new file mode 100644 index 000000000..6bdb522e5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAttachmentStore.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKAttachmentStore/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class HKAttachmentStorePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKAttachmentStore.class); }/**/ + /**//**/ + /**/ + public HKAttachmentStore() {} + protected HKAttachmentStore(Handle h, long handle) { super(h, handle); } + protected HKAttachmentStore(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithHealthStore:") + public HKAttachmentStore(HKHealthStore healthStore) { super((SkipInit) null); initObject(init(healthStore)); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "initWithHealthStore:") + protected native @Pointer long init(HKHealthStore healthStore); + @Method(selector = "addAttachmentToObject:name:contentType:URL:metadata:completion:") + public native void addAttachment(HKObject object, String name, UTType contentType, NSURL URL, NSDictionary metadata, @Block VoidBlock2 completion); + @Method(selector = "removeAttachment:fromObject:completion:") + public native void removeAttachment(HKAttachment attachment, HKObject object, @Block VoidBlock2 completion); + @Method(selector = "getAttachmentsForObject:completion:") + public native void getAttachments(HKObject object, @Block VoidBlock2, NSError> completion); + @Method(selector = "getDataForAttachment:completion:") + public native NSProgress getData(HKAttachment attachment, @Block VoidBlock2 completion); + @Method(selector = "streamDataForAttachment:dataHandler:") + public native NSProgress streamData(HKAttachment attachment, @Block VoidBlock3 dataHandler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSample.java index 47be3852b..bd6071081 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSampleType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSampleType.java index 74ae4688a..e4cc47df0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSampleType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSampleType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -89,5 +90,10 @@ protected HKAudiogramSampleType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSensitivityPoint.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSensitivityPoint.java index fb7a07019..66571b471 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSensitivityPoint.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAudiogramSensitivityPoint.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationRequestStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationRequestStatus.java index d364030f8..c59c3594c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationRequestStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationRequestStatus.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationStatus.java index 8dd9483d0..a0b5a43f3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKAuthorizationStatus.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSex.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSex.java index ad9233470..de62f9612 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSex.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSex.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSexObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSexObject.java index aa671be59..e5d7ec325 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSexObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBiologicalSexObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodGlucoseMealTime.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodGlucoseMealTime.java index 4fab5c3ca..30074cbfa 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodGlucoseMealTime.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodGlucoseMealTime.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodType.java index 3236a9e04..2f6f3519a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodTypeObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodTypeObject.java index c3cd2494b..95e1ff345 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodTypeObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBloodTypeObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyQuantityTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyQuantityTypeIdentifier.java index 03a7d54b5..2aac96c08 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyQuantityTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyQuantityTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -96,9 +97,13 @@ public static long toNative(List l, long flags) { * @since Available in iOS 11.0 and later. */ public static final HKBodyQuantityTypeIdentifier WaistCircumference = new HKBodyQuantityTypeIdentifier("WaistCircumference"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKBodyQuantityTypeIdentifier AppleSleepingWristTemperature = new HKBodyQuantityTypeIdentifier("AppleSleepingWristTemperature"); /**/ - private static /**/HKBodyQuantityTypeIdentifier/**/[] values = new /**/HKBodyQuantityTypeIdentifier/**/[] {/**/BodyMassIndex, BodyFatPercentage, Height, BodyMass, LeanBodyMass, WaistCircumference/**/}; + private static /**/HKBodyQuantityTypeIdentifier/**/[] values = new /**/HKBodyQuantityTypeIdentifier/**/[] {/**/BodyMassIndex, BodyFatPercentage, Height, BodyMass, LeanBodyMass, WaistCircumference, AppleSleepingWristTemperature/**/}; /**/HKBodyQuantityTypeIdentifier/**/ (String getterName) { super(Values.class, getterName); @@ -136,6 +141,11 @@ public static class Values { */ @GlobalValue(symbol="HKQuantityTypeIdentifierWaistCircumference", optional=true) public static native NSString WaistCircumference(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierAppleSleepingWristTemperature", optional=true) + public static native NSString AppleSleepingWristTemperature(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyTemperatureSensorLocation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyTemperatureSensorLocation.java index f201f5468..724ecf9dc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyTemperatureSensorLocation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKBodyTemperatureSensorLocation.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocument.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocument.java index cfb12a829..f66c06f14 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocument.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocument.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocumentSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocumentSample.java index b7565be3d..69972b91d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocumentSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCDADocumentSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategorySample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategorySample.java index b44c2cbd0..0cc7443ff 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategorySample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategorySample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryType.java index 39d0e2a58..4784d111c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -87,5 +88,10 @@ protected HKCategoryType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryTypeIdentifier.java index 829016051..af94275f0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -116,6 +117,22 @@ public static long toNative(List l, long flags) { * @since Available in iOS 9.0 and later. */ public static final HKCategoryTypeIdentifier IntermenstrualBleeding = new HKCategoryTypeIdentifier("IntermenstrualBleeding"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKCategoryTypeIdentifier PersistentIntermenstrualBleeding = new HKCategoryTypeIdentifier("PersistentIntermenstrualBleeding"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKCategoryTypeIdentifier ProlongedMenstrualPeriods = new HKCategoryTypeIdentifier("ProlongedMenstrualPeriods"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKCategoryTypeIdentifier IrregularMenstrualCycles = new HKCategoryTypeIdentifier("IrregularMenstrualCycles"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKCategoryTypeIdentifier InfrequentMenstrualCycles = new HKCategoryTypeIdentifier("InfrequentMenstrualCycles"); /** * @since Available in iOS 9.0 and later. */ @@ -336,7 +353,7 @@ public static long toNative(List l, long flags) { public static final HKCategoryTypeIdentifier Wheezing = new HKCategoryTypeIdentifier("Wheezing"); /**/ - private static /**/HKCategoryTypeIdentifier/**/[] values = new /**/HKCategoryTypeIdentifier/**/[] {/**/SleepAnalysis, AppleStandHour, CervicalMucusQuality, OvulationTestResult, PregnancyTestResult, ProgesteroneTestResult, MenstrualFlow, IntermenstrualBleeding, SexualActivity, MindfulSession, HighHeartRateEvent, LowHeartRateEvent, IrregularHeartRhythmEvent, AudioExposureEvent, ToothbrushingEvent, Pregnancy, Lactation, Contraceptive, EnvironmentalAudioExposureEvent, HeadphoneAudioExposureEvent, HandwashingEvent, LowCardioFitnessEvent, AppleWalkingSteadinessEvent, AbdominalCramps, Acne, AppetiteChanges, BladderIncontinence, Bloating, BreastPain, ChestTightnessOrPain, Chills, Constipation, Coughing, Diarrhea, Dizziness, DrySkin, Fainting, Fatigue, Fever, GeneralizedBodyAche, HairLoss, Headache, Heartburn, HotFlashes, LossOfSmell, LossOfTaste, LowerBackPain, MemoryLapse, MoodChanges, Nausea, NightSweats, PelvicPain, RapidPoundingOrFlutteringHeartbeat, RunnyNose, ShortnessOfBreath, SinusCongestion, SkippedHeartbeat, SleepChanges, SoreThroat, VaginalDryness, Vomiting, Wheezing/**/}; + private static /**/HKCategoryTypeIdentifier/**/[] values = new /**/HKCategoryTypeIdentifier/**/[] {/**/SleepAnalysis, AppleStandHour, CervicalMucusQuality, OvulationTestResult, PregnancyTestResult, ProgesteroneTestResult, MenstrualFlow, IntermenstrualBleeding, PersistentIntermenstrualBleeding, ProlongedMenstrualPeriods, IrregularMenstrualCycles, InfrequentMenstrualCycles, SexualActivity, MindfulSession, HighHeartRateEvent, LowHeartRateEvent, IrregularHeartRhythmEvent, AudioExposureEvent, ToothbrushingEvent, Pregnancy, Lactation, Contraceptive, EnvironmentalAudioExposureEvent, HeadphoneAudioExposureEvent, HandwashingEvent, LowCardioFitnessEvent, AppleWalkingSteadinessEvent, AbdominalCramps, Acne, AppetiteChanges, BladderIncontinence, Bloating, BreastPain, ChestTightnessOrPain, Chills, Constipation, Coughing, Diarrhea, Dizziness, DrySkin, Fainting, Fatigue, Fever, GeneralizedBodyAche, HairLoss, Headache, Heartburn, HotFlashes, LossOfSmell, LossOfTaste, LowerBackPain, MemoryLapse, MoodChanges, Nausea, NightSweats, PelvicPain, RapidPoundingOrFlutteringHeartbeat, RunnyNose, ShortnessOfBreath, SinusCongestion, SkippedHeartbeat, SleepChanges, SoreThroat, VaginalDryness, Vomiting, Wheezing/**/}; /**/HKCategoryTypeIdentifier/**/ (String getterName) { super(Values.class, getterName); @@ -396,6 +413,26 @@ public static class Values { */ @GlobalValue(symbol="HKCategoryTypeIdentifierIntermenstrualBleeding", optional=true) public static native NSString IntermenstrualBleeding(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKCategoryTypeIdentifierPersistentIntermenstrualBleeding", optional=true) + public static native NSString PersistentIntermenstrualBleeding(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKCategoryTypeIdentifierProlongedMenstrualPeriods", optional=true) + public static native NSString ProlongedMenstrualPeriods(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKCategoryTypeIdentifierIrregularMenstrualCycles", optional=true) + public static native NSString IrregularMenstrualCycles(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKCategoryTypeIdentifierInfrequentMenstrualCycles", optional=true) + public static native NSString InfrequentMenstrualCycles(); /** * @since Available in iOS 9.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValue.java index 60db2a308..d8ed8c51f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValue.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValue.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppetiteChanges.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppetiteChanges.java index 7b92b6bc9..1311352f8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppetiteChanges.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppetiteChanges.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleStandHour.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleStandHour.java index 7cf788f1b..c1cab46e9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleStandHour.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleStandHour.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleWalkingSteadinessEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleWalkingSteadinessEvent.java index a6e5af17c..5ed97a276 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleWalkingSteadinessEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAppleWalkingSteadinessEvent.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAudioExposureEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAudioExposureEvent.java index ac8adce0a..41a0f37f3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAudioExposureEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueAudioExposureEvent.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueCervicalMucusQuality.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueCervicalMucusQuality.java index 4aa10f3a8..82324c6c6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueCervicalMucusQuality.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueCervicalMucusQuality.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueContraceptive.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueContraceptive.java index 2b43578b5..16119d66c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueContraceptive.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueContraceptive.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueEnvironmentalAudioExposureEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueEnvironmentalAudioExposureEvent.java index 6304d66d9..24deec1d5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueEnvironmentalAudioExposureEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueEnvironmentalAudioExposureEvent.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueHeadphoneAudioExposureEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueHeadphoneAudioExposureEvent.java index 52e733f39..5dddd6cdf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueHeadphoneAudioExposureEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueHeadphoneAudioExposureEvent.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueLowCardioFitnessEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueLowCardioFitnessEvent.java index a75c6fd0a..173bd7ef8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueLowCardioFitnessEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueLowCardioFitnessEvent.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueMenstrualFlow.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueMenstrualFlow.java index 7b473033d..76a245e65 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueMenstrualFlow.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueMenstrualFlow.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueOvulationTestResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueOvulationTestResult.java index f33750812..48cde2186 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueOvulationTestResult.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueOvulationTestResult.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePregnancyTestResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePregnancyTestResult.java index 450c1ccef..4a7eac005 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePregnancyTestResult.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePregnancyTestResult.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePresence.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePresence.java index c262aedd4..7f70fac76 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePresence.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValuePresence.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueProgesteroneTestResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueProgesteroneTestResult.java index 51ed4414f..b8930098d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueProgesteroneTestResult.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueProgesteroneTestResult.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSeverity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSeverity.java index 0a2577d11..2710f0f47 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSeverity.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSeverity.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSleepAnalysis.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSleepAnalysis.java index f135899c2..c257b2660 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSleepAnalysis.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCategoryValueSleepAnalysis.java @@ -28,26 +28,52 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("HealthKit")/**/ public enum /**/HKCategoryValueSleepAnalysis/**/ implements ValuedEnum { /**/ InBed(0L), + /** + * @since Available in iOS 16.0 and later. + */ + AsleepUnspecified(1L), + /** + * @deprecated Deprecated in iOS 16.0. Use HKCategoryValueSleepAnalysisAsleepUnspecified + */ + @Deprecated Asleep(1L), /** * @since Available in iOS 10.0 and later. */ - Awake(2L); + Awake(2L), + /** + * @since Available in iOS 16.0 and later. + */ + AsleepCore(3L), + /** + * @since Available in iOS 16.0 and later. + */ + AsleepDeep(4L), + /** + * @since Available in iOS 16.0 and later. + */ + AsleepREM(5L); /**/ - /**/ - /**/ + /**/static { Bro.bind(HKCategoryValueSleepAnalysis.class); }/**/ /**//**/ - /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="HKCategoryValueSleepAnalysisAsleepValues", optional=true) + public static native NSSet asleepValues(); + /**/ private final long n; diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicType.java index 96d49a0f2..9f03a6741 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -87,5 +88,10 @@ protected HKCharacteristicType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicTypeIdentifier.java index b4d58d035..4460edb86 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCharacteristicTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalRecord.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalRecord.java index ac0f341d5..65daffb13 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalRecord.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalRecord.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalType.java index ff5618c92..25c1997d9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -89,5 +90,10 @@ protected HKClinicalType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalTypeIdentifier.java index fbb17105a..af65683fe 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKClinicalTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsLensSpecification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsLensSpecification.java new file mode 100644 index 000000000..5f3b59bd0 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsLensSpecification.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKContactsLensSpecification/**/ + extends /**/HKLensSpecification/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class HKContactsLensSpecificationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKContactsLensSpecification.class); }/**/ + /**//**/ + /**/ + protected HKContactsLensSpecification() {} + protected HKContactsLensSpecification(Handle h, long handle) { super(h, handle); } + protected HKContactsLensSpecification(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSphere:cylinder:axis:addPower:baseCurve:diameter:") + public HKContactsLensSpecification(HKQuantity sphere, HKQuantity cylinder, HKQuantity axis, HKQuantity addPower, HKQuantity baseCurve, HKQuantity diameter) { super((SkipInit) null); initObject(init(sphere, cylinder, axis, addPower, baseCurve, diameter)); } + @Method(selector = "initWithCoder:") + public HKContactsLensSpecification(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "baseCurve") + public native HKQuantity getBaseCurve(); + @Property(selector = "diameter") + public native HKQuantity getDiameter(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSphere:cylinder:axis:addPower:baseCurve:diameter:") + protected native @Pointer long init(HKQuantity sphere, HKQuantity cylinder, HKQuantity axis, HKQuantity addPower, HKQuantity baseCurve, HKQuantity diameter); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsPrescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsPrescription.java new file mode 100644 index 000000000..39e319fec --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKContactsPrescription.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKContactsPrescription/**/ + extends /**/HKVisionPrescription/**/ + /**//**/ { + + /**/public static class HKContactsPrescriptionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKContactsPrescription.class); }/**/ + /**//**/ + /**/ + protected HKContactsPrescription() {} + protected HKContactsPrescription(Handle h, long handle) { super(h, handle); } + protected HKContactsPrescription(SkipInit skipInit) { super(skipInit); } + public HKContactsPrescription(HKContactsLensSpecification rightEyeSpecification, HKContactsLensSpecification leftEyeSpecification, String brand, NSDate dateIssued, NSDate expirationDate, HKDevice device, NSDictionary metadata) { super((Handle) null, create(rightEyeSpecification, leftEyeSpecification, brand, dateIssued, expirationDate, device, metadata)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "rightEye") + public native HKContactsLensSpecification getRightEye(); + @Property(selector = "leftEye") + public native HKContactsLensSpecification getLeftEye(); + @Property(selector = "brand") + public native String getBrand(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "prescriptionWithRightEyeSpecification:leftEyeSpecification:brand:dateIssued:expirationDate:device:metadata:") + protected static native @Pointer long create(HKContactsLensSpecification rightEyeSpecification, HKContactsLensSpecification leftEyeSpecification, String brand, NSDate dateIssued, NSDate expirationDate, HKDevice device, NSDictionary metadata); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelation.java index 5cbe07151..52b933bc7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelation.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationQuery.java index f06b75eaf..f14059215 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationType.java index 509408950..76d78820c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -87,5 +88,10 @@ protected HKCorrelationType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationTypeIdentifier.java index fb5be8733..0b354ca79 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCorrelationTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySample.java index 0097e1c04..44b4cb550 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySeriesSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySeriesSample.java index c210e67c3..f7104da1f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySeriesSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKCumulativeQuantitySeriesSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDeletedObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDeletedObject.java index dc05b19bf..a6f38912b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDeletedObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDeletedObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevice.java index 545e6ecd3..c6327995e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevice.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevicePlacementSide.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevicePlacementSide.java index e919af99c..3d227d365 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevicePlacementSide.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDevicePlacementSide.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDietaryQuantityTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDietaryQuantityTypeIdentifier.java index 97d0e9574..3bc077964 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDietaryQuantityTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDietaryQuantityTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDiscreteQuantitySample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDiscreteQuantitySample.java index 1af29cf47..f75fec952 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDiscreteQuantitySample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDiscreteQuantitySample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentQuery.java index d5f689c60..5b8253a1c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentSample.java index e6cae4a36..973940008 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentType.java index cfb78b72a..ebaa83b9a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -89,5 +90,10 @@ protected HKDocumentType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentTypeIdentifier.java index 574146551..16ae4eb7f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKDocumentTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogram.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogram.java index 57e44f9a5..64a3c6689 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogram.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogram.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramClassification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramClassification.java index 4f68cf3b6..360aeb574 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramClassification.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramClassification.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramLead.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramLead.java index d49ac55a2..a187ae331 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramLead.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramLead.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramQuery.java index c40b44034..18551cd14 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramSymptomsStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramSymptomsStatus.java index 584cbdcc5..b35ea9851 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramSymptomsStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramSymptomsStatus.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramType.java index 861f69e34..5e341b128 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -89,5 +90,10 @@ protected HKElectrocardiogramType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramVoltageMeasurement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramVoltageMeasurement.java index 6a45c3d7f..53c2a8542 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramVoltageMeasurement.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKElectrocardiogramVoltageMeasurement.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKError.java index 3ee47f5ad..cf0f26aba 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKError.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKErrorCode.java index 0125c6351..02026fcbc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKErrorCode.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRRelease.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRRelease.java index 28144bea5..842bd902d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRRelease.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRRelease.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResource.java index 03a06f2d9..d4ee68eb4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResource.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResourceType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResourceType.java index 5ca44a20b..ca46e71b9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResourceType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRResourceType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRVersion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRVersion.java index fe2454f4b..05e50cfbc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRVersion.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFHIRVersion.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitnessQuantityTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitnessQuantityTypeIdentifier.java index 43cfde724..7bb6613ad 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitnessQuantityTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitnessQuantityTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -162,9 +163,29 @@ public static long toNative(List l, long flags) * @since Available in iOS 15.0 and later. */ public static final HKFitnessQuantityTypeIdentifier AppleWalkingSteadiness = new HKFitnessQuantityTypeIdentifier("AppleWalkingSteadiness"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKFitnessQuantityTypeIdentifier RunningStrideLength = new HKFitnessQuantityTypeIdentifier("RunningStrideLength"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKFitnessQuantityTypeIdentifier RunningVerticalOscillation = new HKFitnessQuantityTypeIdentifier("RunningVerticalOscillation"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKFitnessQuantityTypeIdentifier RunningGroundContactTime = new HKFitnessQuantityTypeIdentifier("RunningGroundContactTime"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKFitnessQuantityTypeIdentifier RunningPower = new HKFitnessQuantityTypeIdentifier("RunningPower"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKFitnessQuantityTypeIdentifier RunningSpeed = new HKFitnessQuantityTypeIdentifier("RunningSpeed"); /**/ - private static /**/HKFitnessQuantityTypeIdentifier/**/[] values = new /**/HKFitnessQuantityTypeIdentifier/**/[] {/**/StepCount, DistanceWalkingRunning, DistanceCycling, DistanceWheelchair, BasalEnergyBurned, ActiveEnergyBurned, FlightsClimbed, NikeFuel, AppleExerciseTime, PushCount, DistanceSwimming, SwimmingStrokeCount, VO2Max, DistanceDownhillSnowSports, AppleStandTime, WalkingSpeed, WalkingDoubleSupportPercentage, WalkingAsymmetryPercentage, WalkingStepLength, SixMinuteWalkTestDistance, StairAscentSpeed, StairDescentSpeed, AppleMoveTime, AppleWalkingSteadiness/**/}; + private static /**/HKFitnessQuantityTypeIdentifier/**/[] values = new /**/HKFitnessQuantityTypeIdentifier/**/[] {/**/StepCount, DistanceWalkingRunning, DistanceCycling, DistanceWheelchair, BasalEnergyBurned, ActiveEnergyBurned, FlightsClimbed, NikeFuel, AppleExerciseTime, PushCount, DistanceSwimming, SwimmingStrokeCount, VO2Max, DistanceDownhillSnowSports, AppleStandTime, WalkingSpeed, WalkingDoubleSupportPercentage, WalkingAsymmetryPercentage, WalkingStepLength, SixMinuteWalkTestDistance, StairAscentSpeed, StairDescentSpeed, AppleMoveTime, AppleWalkingSteadiness, RunningStrideLength, RunningVerticalOscillation, RunningGroundContactTime, RunningPower, RunningSpeed/**/}; /**/HKFitnessQuantityTypeIdentifier/**/ (String getterName) { super(Values.class, getterName); @@ -286,6 +307,31 @@ public static class Values { */ @GlobalValue(symbol="HKQuantityTypeIdentifierAppleWalkingSteadiness", optional=true) public static native NSString AppleWalkingSteadiness(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierRunningStrideLength", optional=true) + public static native NSString RunningStrideLength(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierRunningVerticalOscillation", optional=true) + public static native NSString RunningVerticalOscillation(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierRunningGroundContactTime", optional=true) + public static native NSString RunningGroundContactTime(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierRunningPower", optional=true) + public static native NSString RunningPower(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierRunningSpeed", optional=true) + public static native NSString RunningSpeed(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinType.java index 2038aa6b5..2a3d2b633 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinTypeObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinTypeObject.java index 6219d2a9a..cc4736956 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinTypeObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKFitzpatrickSkinTypeObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesLensSpecification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesLensSpecification.java new file mode 100644 index 000000000..40d1f23df --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesLensSpecification.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKGlassesLensSpecification/**/ + extends /**/HKLensSpecification/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class HKGlassesLensSpecificationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKGlassesLensSpecification.class); }/**/ + /**//**/ + /**/ + protected HKGlassesLensSpecification() {} + protected HKGlassesLensSpecification(Handle h, long handle) { super(h, handle); } + protected HKGlassesLensSpecification(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:") + public HKGlassesLensSpecification(HKQuantity sphere, HKQuantity cylinder, HKQuantity axis, HKQuantity addPower, HKQuantity vertexDistance, HKVisionPrism prism, HKQuantity farPupillaryDistance, HKQuantity nearPupillaryDistance) { super((SkipInit) null); initObject(init(sphere, cylinder, axis, addPower, vertexDistance, prism, farPupillaryDistance, nearPupillaryDistance)); } + @Method(selector = "initWithCoder:") + public HKGlassesLensSpecification(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "vertexDistance") + public native HKQuantity getVertexDistance(); + @Property(selector = "prism") + public native HKVisionPrism getPrism(); + @Property(selector = "farPupillaryDistance") + public native HKQuantity getFarPupillaryDistance(); + @Property(selector = "nearPupillaryDistance") + public native HKQuantity getNearPupillaryDistance(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSphere:cylinder:axis:addPower:vertexDistance:prism:farPupillaryDistance:nearPupillaryDistance:") + protected native @Pointer long init(HKQuantity sphere, HKQuantity cylinder, HKQuantity axis, HKQuantity addPower, HKQuantity vertexDistance, HKVisionPrism prism, HKQuantity farPupillaryDistance, HKQuantity nearPupillaryDistance); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesPrescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesPrescription.java new file mode 100644 index 000000000..32b527633 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKGlassesPrescription.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKGlassesPrescription/**/ + extends /**/HKVisionPrescription/**/ + /**//**/ { + + /**/public static class HKGlassesPrescriptionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKGlassesPrescription.class); }/**/ + /**//**/ + /**/ + protected HKGlassesPrescription() {} + protected HKGlassesPrescription(Handle h, long handle) { super(h, handle); } + protected HKGlassesPrescription(SkipInit skipInit) { super(skipInit); } + public HKGlassesPrescription(HKGlassesLensSpecification rightEyeSpecification, HKGlassesLensSpecification leftEyeSpecification, NSDate dateIssued, NSDate expirationDate, HKDevice device, NSDictionary metadata) { super((Handle) null, create(rightEyeSpecification, leftEyeSpecification, dateIssued, expirationDate, device, metadata)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "rightEye") + public native HKGlassesLensSpecification getRightEye(); + @Property(selector = "leftEye") + public native HKGlassesLensSpecification getLeftEye(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "prescriptionWithRightEyeSpecification:leftEyeSpecification:dateIssued:expirationDate:device:metadata:") + protected static native @Pointer long create(HKGlassesLensSpecification rightEyeSpecification, HKGlassesLensSpecification leftEyeSpecification, NSDate dateIssued, NSDate expirationDate, HKDevice device, NSDictionary metadata); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHealthStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHealthStore.java index 82d106701..d7e351b13 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHealthStore.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHealthStore.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -80,6 +81,8 @@ public HKHealthStore() {} public native HKAuthorizationStatus getAuthorizationStatusForType(HKObjectType type); @Method(selector = "requestAuthorizationToShareTypes:readTypes:completion:") public native void requestAuthorizationToTypes(NSSet typesToShare, NSSet typesToRead, @Block VoidBlock2 completion); + @Method(selector = "requestPerObjectReadAuthorizationForType:predicate:completion:") + public native void requestPerObjectReadAuthorization(HKObjectType objectType, NSPredicate predicate, @Block VoidBlock2 completion); /** * @since Available in iOS 12.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateMotionContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateMotionContext.java index 9c1feacaa..0cd7d38ee 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateMotionContext.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateMotionContext.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateRecoveryTestType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateRecoveryTestType.java new file mode 100644 index 000000000..8da24de6a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateRecoveryTestType.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/HKHeartRateRecoveryTestType/**/ implements ValuedEnum { + /**/ + MaxExercise(1L), + PredictionSubMaxExercise(2L), + PredictionNonExercise(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/HKHeartRateRecoveryTestType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/HKHeartRateRecoveryTestType/**/ valueOf(long n) { + for (/**/HKHeartRateRecoveryTestType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/HKHeartRateRecoveryTestType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateSensorLocation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateSensorLocation.java index 0a4cc0675..63562c984 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateSensorLocation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartRateSensorLocation.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesBuilder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesBuilder.java index 1d9d02832..d57fbfa19 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesBuilder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesBuilder.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesQuery.java index 11efc7dd5..fb3d3c7c9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesSample.java index 15d323ab2..7a16b2d83 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKHeartbeatSeriesSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKInsulinDeliveryReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKInsulinDeliveryReason.java index 2b973e163..c7fcd7ed8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKInsulinDeliveryReason.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKInsulinDeliveryReason.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKLensSpecification.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKLensSpecification.java new file mode 100644 index 000000000..463d3334f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKLensSpecification.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKLensSpecification/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class HKLensSpecificationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKLensSpecification.class); }/**/ + /**//**/ + /**/ + protected HKLensSpecification() {} + protected HKLensSpecification(Handle h, long handle) { super(h, handle); } + protected HKLensSpecification(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "sphere") + public native HKQuantity getSphere(); + @Property(selector = "cylinder") + public native HKQuantity getCylinder(); + @Property(selector = "axis") + public native HKQuantity getAxis(); + @Property(selector = "addPower") + public native HKQuantity getAddPower(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetadataKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetadataKey.java index 896836bbb..c0ee5647f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetadataKey.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetadataKey.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -94,6 +95,30 @@ public static long toNative(List l, long flags) { * @since Available in iOS 11.0 and later. */ public static final HKMetadataKey HeartRateMotionContext = new HKMetadataKey("HeartRateMotionContext"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey UserMotionContext = new HKMetadataKey("UserMotionContext"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey SessionEstimate = new HKMetadataKey("SessionEstimate"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey HeartRateRecoveryTestType = new HKMetadataKey("HeartRateRecoveryTestType"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey HeartRateRecoveryActivityType = new HKMetadataKey("HeartRateRecoveryActivityType"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey HeartRateRecoveryActivityDuration = new HKMetadataKey("HeartRateRecoveryActivityDuration"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey HeartRateRecoveryMaxObservedRecoveryHeartRate = new HKMetadataKey("HeartRateRecoveryMaxObservedRecoveryHeartRate"); public static final HKMetadataKey FoodType = new HKMetadataKey("FoodType"); public static final HKMetadataKey UDIDeviceIdentifier = new HKMetadataKey("UDIDeviceIdentifier"); public static final HKMetadataKey UDIProductionIdentifier = new HKMetadataKey("UDIProductionIdentifier"); @@ -242,9 +267,25 @@ public static long toNative(List l, long flags) { * @since Available in iOS 15.0 and later. */ public static final HKMetadataKey AlgorithmVersion = new HKMetadataKey("AlgorithmVersion"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey SWOLFScore = new HKMetadataKey("SWOLFScore"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey QuantityClampedToLowerBound = new HKMetadataKey("QuantityClampedToLowerBound"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey QuantityClampedToUpperBound = new HKMetadataKey("QuantityClampedToUpperBound"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKMetadataKey GlassesPrescriptionDescription = new HKMetadataKey("GlassesPrescriptionDescription"); /**/ - private static /**/HKMetadataKey/**/[] values = new /**/HKMetadataKey/**/[] {/**/DeviceSerialNumber, BodyTemperatureSensorLocation, HeartRateSensorLocation, HeartRateMotionContext, FoodType, UDIDeviceIdentifier, UDIProductionIdentifier, DigitalSignature, ExternalUUID, SyncIdentifier, SyncVersion, TimeZone, DeviceName, DeviceManufacturerName, WasTakenInLab, ReferenceRangeLowerLimit, ReferenceRangeUpperLimit, WasUserEntered, WorkoutBrandName, GroupFitness, IndoorWorkout, CoachedWorkout, WeatherCondition, WeatherTemperature, WeatherHumidity, SexualActivityProtectionUsed, MenstrualCycleStart, LapLength, SwimmingLocationType, SwimmingStrokeStyle, InsulinDeliveryReason, BloodGlucoseMealTime, VO2MaxTestType, AverageSpeed, MaximumSpeed, AlpineSlopeGrade, ElevationAscended, ElevationDescended, FitnessMachineDuration, IndoorBikeDistance, CrossTrainerDistance, HeartRateEventThreshold, AverageMETs, AudioExposureLevel, AudioExposureDuration, AppleECGAlgorithmVersion, DevicePlacementSide, BarometricPressure, AppleDeviceCalibrated, VO2MaxValue, LowCardioFitnessEventThreshold, DateOfEarliestDataUsedForEstimate, AlgorithmVersion/**/}; + private static /**/HKMetadataKey/**/[] values = new /**/HKMetadataKey/**/[] {/**/DeviceSerialNumber, BodyTemperatureSensorLocation, HeartRateSensorLocation, HeartRateMotionContext, UserMotionContext, SessionEstimate, HeartRateRecoveryTestType, HeartRateRecoveryActivityType, HeartRateRecoveryActivityDuration, HeartRateRecoveryMaxObservedRecoveryHeartRate, FoodType, UDIDeviceIdentifier, UDIProductionIdentifier, DigitalSignature, ExternalUUID, SyncIdentifier, SyncVersion, TimeZone, DeviceName, DeviceManufacturerName, WasTakenInLab, ReferenceRangeLowerLimit, ReferenceRangeUpperLimit, WasUserEntered, WorkoutBrandName, GroupFitness, IndoorWorkout, CoachedWorkout, WeatherCondition, WeatherTemperature, WeatherHumidity, SexualActivityProtectionUsed, MenstrualCycleStart, LapLength, SwimmingLocationType, SwimmingStrokeStyle, InsulinDeliveryReason, BloodGlucoseMealTime, VO2MaxTestType, AverageSpeed, MaximumSpeed, AlpineSlopeGrade, ElevationAscended, ElevationDescended, FitnessMachineDuration, IndoorBikeDistance, CrossTrainerDistance, HeartRateEventThreshold, AverageMETs, AudioExposureLevel, AudioExposureDuration, AppleECGAlgorithmVersion, DevicePlacementSide, BarometricPressure, AppleDeviceCalibrated, VO2MaxValue, LowCardioFitnessEventThreshold, DateOfEarliestDataUsedForEstimate, AlgorithmVersion, SWOLFScore, QuantityClampedToLowerBound, QuantityClampedToUpperBound, GlassesPrescriptionDescription/**/}; /**/HKMetadataKey/**/ (String getterName) { super(Values.class, getterName); @@ -278,6 +319,36 @@ public static class Values { */ @GlobalValue(symbol="HKMetadataKeyHeartRateMotionContext", optional=true) public static native NSString HeartRateMotionContext(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyUserMotionContext", optional=true) + public static native NSString UserMotionContext(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeySessionEstimate", optional=true) + public static native NSString SessionEstimate(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyHeartRateRecoveryTestType", optional=true) + public static native NSString HeartRateRecoveryTestType(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyHeartRateRecoveryActivityType", optional=true) + public static native NSString HeartRateRecoveryActivityType(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyHeartRateRecoveryActivityDuration", optional=true) + public static native NSString HeartRateRecoveryActivityDuration(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyHeartRateRecoveryMaxObservedRecoveryHeartRate", optional=true) + public static native NSString HeartRateRecoveryMaxObservedRecoveryHeartRate(); @GlobalValue(symbol="HKMetadataKeyFoodType", optional=true) public static native NSString FoodType(); @GlobalValue(symbol="HKMetadataKeyUDIDeviceIdentifier", optional=true) @@ -475,6 +546,26 @@ public static class Values { */ @GlobalValue(symbol="HKMetadataKeyAlgorithmVersion", optional=true) public static native NSString AlgorithmVersion(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeySWOLFScore", optional=true) + public static native NSString SWOLFScore(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyQuantityClampedToLowerBound", optional=true) + public static native NSString QuantityClampedToLowerBound(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyQuantityClampedToUpperBound", optional=true) + public static native NSString QuantityClampedToUpperBound(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKMetadataKeyGlassesPrescriptionDescription", optional=true) + public static native NSString GlassesPrescriptionDescription(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetricPrefix.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetricPrefix.java index 2c2a00f25..8d803a000 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetricPrefix.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKMetricPrefix.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObject.java index d0cfd2485..8b84199d3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObjectType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObjectType.java index 81ad62e45..4219e534c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObjectType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObjectType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -56,6 +57,8 @@ protected HKObjectType() {} /**/ /**//**/ /**/ + @Method(selector = "requiresPerObjectAuthorization") + public native boolean requiresPerObjectAuthorization(); @Method(selector = "quantityTypeForIdentifier:") public static native HKQuantityType getQuantityType(HKQuantityTypeIdentifier identifier); @Method(selector = "categoryTypeForIdentifier:") @@ -91,6 +94,11 @@ protected HKObjectType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /** * @since Available in iOS 12.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObserverQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObserverQuery.java index 0dd8dc16f..919d56150 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObserverQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKObserverQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKOtherQuantityTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKOtherQuantityTypeIdentifier.java new file mode 100644 index 000000000..ebed97e0e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKOtherQuantityTypeIdentifier.java @@ -0,0 +1,127 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**/@Library("HealthKit") @StronglyLinked/**/ +@Marshaler(/**/HKOtherQuantityTypeIdentifier/**/.Marshaler.class) +/**/public/**/ class /**/HKOtherQuantityTypeIdentifier/**/ + extends /**/HKQuantityTypeIdentifier/**/ + /**//**/ { + + static { Bro.bind(/**/HKOtherQuantityTypeIdentifier/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static HKOtherQuantityTypeIdentifier toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return HKOtherQuantityTypeIdentifier.valueOf(o); + } + @MarshalsPointer + public static long toNative(HKOtherQuantityTypeIdentifier o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(HKOtherQuantityTypeIdentifier.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (HKOtherQuantityTypeIdentifier o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKOtherQuantityTypeIdentifier AtrialFibrillationBurden = new HKOtherQuantityTypeIdentifier("AtrialFibrillationBurden"); + /**/ + + private static /**/HKOtherQuantityTypeIdentifier/**/[] values = new /**/HKOtherQuantityTypeIdentifier/**/[] {/**/AtrialFibrillationBurden/**/}; + + /**/HKOtherQuantityTypeIdentifier/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/HKOtherQuantityTypeIdentifier/**/ valueOf(/**/NSString/**/ value) { + for (/**/HKOtherQuantityTypeIdentifier/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/HKOtherQuantityTypeIdentifier/**/.class.getName()); + } + + /**//**/ + + /**/@Library("HealthKit") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierAtrialFibrillationBurden", optional=true) + public static native NSString AtrialFibrillationBurden(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPredicateKeyPath.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPredicateKeyPath.java index fe8dffdbe..236e20c2c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPredicateKeyPath.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPredicateKeyPath.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -130,6 +131,26 @@ public static long toNative(List l, long flags) { * @since Available in iOS 11.0 and later. */ public static final HKPredicateKeyPath WorkoutTotalFlightsClimbed = new HKPredicateKeyPath("WorkoutTotalFlightsClimbed"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutSumQuantity = new HKPredicateKeyPath("WorkoutSumQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutMinimumQuantity = new HKPredicateKeyPath("WorkoutMinimumQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutMaximumQuantity = new HKPredicateKeyPath("WorkoutMaximumQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutAverageQuantity = new HKPredicateKeyPath("WorkoutAverageQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivity = new HKPredicateKeyPath("WorkoutActivity"); /** * @since Available in iOS 10.0 and later. */ @@ -192,9 +213,41 @@ public static long toNative(List l, long flags) { * @since Available in iOS 13.0 and later. */ public static final HKPredicateKeyPath MostRecentDuration = new HKPredicateKeyPath("MostRecentDuration"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityType = new HKPredicateKeyPath("WorkoutActivityType"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityDuration = new HKPredicateKeyPath("WorkoutActivityDuration"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityStartDate = new HKPredicateKeyPath("WorkoutActivityStartDate"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityEndDate = new HKPredicateKeyPath("WorkoutActivityEndDate"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivitySumQuantity = new HKPredicateKeyPath("WorkoutActivitySumQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityMinimumQuantity = new HKPredicateKeyPath("WorkoutActivityMinimumQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityMaximumQuantity = new HKPredicateKeyPath("WorkoutActivityMaximumQuantity"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKPredicateKeyPath WorkoutActivityAverageQuantity = new HKPredicateKeyPath("WorkoutActivityAverageQuantity"); /**/ - private static /**/HKPredicateKeyPath/**/[] values = new /**/HKPredicateKeyPath/**/[] {/**/DateComponents, UUID, Source, Metadata, Correlation, Workout, Device, SourceRevision, StartDate, EndDate, AverageHeartRate, ECGClassification, ECGSymptomsStatus, WorkoutDuration, WorkoutTotalDistance, WorkoutTotalEnergyBurned, WorkoutType, WorkoutTotalSwimmingStrokeCount, WorkoutTotalFlightsClimbed, Title, PatientName, AuthorName, CustodianName, CategoryValue, ClinicalRecordFHIRResourceIdentifier, ClinicalRecordFHIRResourceType, Quantity, Count, Sum, Min, Average, Max, MostRecent, MostRecentStartDate, MostRecentEndDate, MostRecentDuration/**/}; + private static /**/HKPredicateKeyPath/**/[] values = new /**/HKPredicateKeyPath/**/[] {/**/DateComponents, UUID, Source, Metadata, Correlation, Workout, Device, SourceRevision, StartDate, EndDate, AverageHeartRate, ECGClassification, ECGSymptomsStatus, WorkoutDuration, WorkoutTotalDistance, WorkoutTotalEnergyBurned, WorkoutType, WorkoutTotalSwimmingStrokeCount, WorkoutTotalFlightsClimbed, WorkoutSumQuantity, WorkoutMinimumQuantity, WorkoutMaximumQuantity, WorkoutAverageQuantity, WorkoutActivity, Title, PatientName, AuthorName, CustodianName, CategoryValue, ClinicalRecordFHIRResourceIdentifier, ClinicalRecordFHIRResourceType, Quantity, Count, Sum, Min, Average, Max, MostRecent, MostRecentStartDate, MostRecentEndDate, MostRecentDuration, WorkoutActivityType, WorkoutActivityDuration, WorkoutActivityStartDate, WorkoutActivityEndDate, WorkoutActivitySumQuantity, WorkoutActivityMinimumQuantity, WorkoutActivityMaximumQuantity, WorkoutActivityAverageQuantity/**/}; /**/HKPredicateKeyPath/**/ (String getterName) { super(Values.class, getterName); @@ -279,6 +332,31 @@ public static class Values { */ @GlobalValue(symbol="HKPredicateKeyPathWorkoutTotalFlightsClimbed", optional=true) public static native NSString WorkoutTotalFlightsClimbed(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutSumQuantity", optional=true) + public static native NSString WorkoutSumQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutMinimumQuantity", optional=true) + public static native NSString WorkoutMinimumQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutMaximumQuantity", optional=true) + public static native NSString WorkoutMaximumQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutAverageQuantity", optional=true) + public static native NSString WorkoutAverageQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivity", optional=true) + public static native NSString WorkoutActivity(); /** * @since Available in iOS 10.0 and later. */ @@ -358,6 +436,46 @@ public static class Values { */ @GlobalValue(symbol="HKPredicateKeyPathMostRecentDuration", optional=true) public static native NSString MostRecentDuration(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityType", optional=true) + public static native NSString WorkoutActivityType(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityDuration", optional=true) + public static native NSString WorkoutActivityDuration(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityStartDate", optional=true) + public static native NSString WorkoutActivityStartDate(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityEndDate", optional=true) + public static native NSString WorkoutActivityEndDate(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivitySumQuantity", optional=true) + public static native NSString WorkoutActivitySumQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityMinimumQuantity", optional=true) + public static native NSString WorkoutActivityMinimumQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityMaximumQuantity", optional=true) + public static native NSString WorkoutActivityMaximumQuantity(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKPredicateKeyPathWorkoutActivityAverageQuantity", optional=true) + public static native NSString WorkoutActivityAverageQuantity(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrescriptionType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrescriptionType.java new file mode 100644 index 000000000..0e2a2b6d3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrescriptionType.java @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKPrescriptionType/**/ + extends /**/HKSampleType/**/ + /**//**/ { + + /**/public static class HKPrescriptionTypePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKPrescriptionType.class); }/**/ + /**//**/ + /**/ + protected HKPrescriptionType() {} + protected HKPrescriptionType(Handle h, long handle) { super(h, handle); } + protected HKPrescriptionType(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "quantityTypeForIdentifier:") + public static native HKQuantityType getQuantityType(HKQuantityTypeIdentifier identifier); + @Method(selector = "categoryTypeForIdentifier:") + public static native HKCategoryType getCategoryType(HKCategoryTypeIdentifier identifier); + @Method(selector = "characteristicTypeForIdentifier:") + public static native HKCharacteristicType getCharacteristicType(HKCharacteristicTypeIdentifier identifier); + @Method(selector = "correlationTypeForIdentifier:") + public static native HKCorrelationType getCorrelationType(HKCorrelationTypeIdentifier identifier); + /** + * @since Available in iOS 10.0 and later. + */ + @Method(selector = "documentTypeForIdentifier:") + public static native HKDocumentType documentTypeForIdentifier(String identifier); + /** + * @since Available in iOS 11.0 and later. + */ + @Method(selector = "seriesTypeForIdentifier:") + public static native HKSeriesType seriesTypeForIdentifier(String identifier); + @Method(selector = "workoutType") + public static native HKWorkoutType getWorkoutType(); + /** + * @since Available in iOS 9.3 and later. + */ + @Method(selector = "activitySummaryType") + public static native HKActivitySummaryType activitySummaryType(); + /** + * @since Available in iOS 13.0 and later. + */ + @Method(selector = "audiogramSampleType") + public static native HKAudiogramSampleType audiogramSampleType(); + /** + * @since Available in iOS 14.0 and later. + */ + @Method(selector = "electrocardiogramType") + public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrismBase.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrismBase.java new file mode 100644 index 000000000..b50fb6a01 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKPrismBase.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/HKPrismBase/**/ implements ValuedEnum { + /**/ + None(0L), + Up(1L), + Down(2L), + In(3L), + Out(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/HKPrismBase/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/HKPrismBase/**/ valueOf(long n) { + for (/**/HKPrismBase/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/HKPrismBase/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantity.java index 8009c13ac..1a9283ab8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantity.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantity.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityAggregationStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityAggregationStyle.java index 655cb77fb..6c81bd0be 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityAggregationStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityAggregationStyle.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySample.java index 25f3f86cd..82e64d163 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleBuilder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleBuilder.java index 7c645e2c8..cbba96774 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleBuilder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleBuilder.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleQuery.java index bf205a1d2..cc393b52a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantitySeriesSampleQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityType.java index 3d51e62c9..778abb557 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuantityType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -91,5 +92,10 @@ protected HKQuantityType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuery.java index 8291d73ba..ac9cb2819 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -107,21 +108,98 @@ protected HKQuery() {} public static native NSPredicate createPredicateForQuantitySamplesWithQuantity(NSPredicateOperatorType operatorType, HKQuantity quantity); @Method(selector = "predicateForCategorySamplesWithOperatorType:value:") public static native NSPredicate createPredicateForCategorySamplesWithValue(NSPredicateOperatorType operatorType, @MachineSizedSInt long value); + @Method(selector = "predicateForCategorySamplesEqualToValues:") + public static native NSPredicate predicateForCategorySamplesEqualToValues(NSSet values); @Method(selector = "predicateForWorkoutsWithWorkoutActivityType:") public static native NSPredicate createPredicateForWorkoutsWithActivityType(HKWorkoutActivityType workoutActivityType); @Method(selector = "predicateForWorkoutsWithOperatorType:duration:") public static native NSPredicate createPredicateForWorkoutsWithDuration(NSPredicateOperatorType operatorType, double duration); + /** + * @deprecated Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierActiveEnergyBurned + */ + @Deprecated @Method(selector = "predicateForWorkoutsWithOperatorType:totalEnergyBurned:") public static native NSPredicate createPredicateForWorkoutsWithTotalEnergyBurned(NSPredicateOperatorType operatorType, HKQuantity totalEnergyBurned); + /** + * @deprecated Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for the desired distance type + */ + @Deprecated @Method(selector = "predicateForWorkoutsWithOperatorType:totalDistance:") public static native NSPredicate createPredicateForWorkoutsWithTotalDistance(NSPredicateOperatorType operatorType, HKQuantity totalDistance); + /** + * @since Available in iOS 10.0 and later. + * @deprecated Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: + */ + @Deprecated @Method(selector = "predicateForWorkoutsWithOperatorType:totalSwimmingStrokeCount:") public static native NSPredicate createPredicateForWorkoutsWithTotalSwimmingStrokeCount(NSPredicateOperatorType operatorType, HKQuantity totalSwimmingStrokeCount); /** * @since Available in iOS 11.0 and later. + * @deprecated Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierSwimmingStrokeCount */ + @Deprecated @Method(selector = "predicateForWorkoutsWithOperatorType:totalFlightsClimbed:") public static native NSPredicate createPredicateForWorkouts(NSPredicateOperatorType operatorType, HKQuantity totalFlightsClimbed); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutsWithOperatorType:quantityType:sumQuantity:") + public static native NSPredicate predicateForWorkoutsSumQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity sumQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutsWithOperatorType:quantityType:minimumQuantity:") + public static native NSPredicate predicateForWorkoutsMinimumQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity minimumQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutsWithOperatorType:quantityType:maximumQuantity:") + public static native NSPredicate predicateForWorkoutsMaximumQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity maximumQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutsWithOperatorType:quantityType:averageQuantity:") + public static native NSPredicate predicateForWorkoutsAverageQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity averageQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithWorkoutActivityType:") + public static native NSPredicate predicateForWorkoutActivities(HKWorkoutActivityType workoutActivityType); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithOperatorType:duration:") + public static native NSPredicate predicateForWorkoutActivities(NSPredicateOperatorType operatorType, double duration); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithStartDate:endDate:options:") + public static native NSPredicate predicateForWorkoutActivities(NSDate startDate, NSDate endDate, HKQueryOptions options); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity:") + public static native NSPredicate predicateForWorkoutActivitiesSumQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity sumQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithOperatorType:quantityType:minimumQuantity:") + public static native NSPredicate predicateForWorkoutActivitiesMinimumQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity minimumQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithOperatorType:quantityType:maximumQuantity:") + public static native NSPredicate predicateForWorkoutActivitiesMaximumQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity maximumQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutActivitiesWithOperatorType:quantityType:averageQuantity:") + public static native NSPredicate predicateForWorkoutActivitiesAverageQuantity(NSPredicateOperatorType operatorType, HKQuantityType quantityType, HKQuantity averageQuantity); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "predicateForWorkoutsWithActivityPredicate:") + public static native NSPredicate predicateForWorkouts(NSPredicate activityPredicate); /** * @since Available in iOS 9.3 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryAnchor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryAnchor.java index f7f9a82d9..27849dd4c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryAnchor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryAnchor.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryDescriptor.java index 20c896708..e5c74158c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryDescriptor.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryOptions.java index b0c068f87..4709007e0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKQueryOptions.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKResultsQuantityTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKResultsQuantityTypeIdentifier.java index 64ab66241..354290ef4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKResultsQuantityTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKResultsQuantityTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSample.java index ece81fac1..0824c920e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleQuery.java index a51e0307a..174b7d696 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleSortIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleSortIdentifier.java index c26196666..8670777cc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleSortIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleSortIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleType.java index cc02010e0..f4a9e295c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSampleType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -112,5 +113,10 @@ protected HKSampleType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesBuilder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesBuilder.java index 10e3a156c..560ea8e3d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesBuilder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesBuilder.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesSample.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesSample.java index 3eb3fa6ef..9044665db 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesSample.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesSample.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesType.java index 1bbb70b31..b72292535 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSeriesType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -96,5 +97,10 @@ protected HKSeriesType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSource.java index 7c3931bc5..c154ead5d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSource.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceQuery.java index d875e7063..b87ded905 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceRevision.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceRevision.java index 6862b9736..8c9607b3a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceRevision.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSourceRevision.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatistics.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatistics.java index e9bc38e49..bf3338fa4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatistics.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatistics.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollection.java index a91ddc18e..f06234dc5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollection.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollectionQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollectionQuery.java index b876617a8..1ec773f31 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollectionQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsCollectionQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsOptions.java index 6b03b7835..f404fb778 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsOptions.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsQuery.java index 13358e1a3..9f0eb091c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKStatisticsQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSwimmingStrokeStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSwimmingStrokeStyle.java index 29f392214..e1aae62ee 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSwimmingStrokeStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKSwimmingStrokeStyle.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -43,7 +44,11 @@ public enum /**/HKSwimmingStrokeStyle/**/ implements ValuedEnum { Freestyle(2L), Backstroke(3L), Breaststroke(4L), - Butterfly(5L); + Butterfly(5L), + /** + * @since Available in iOS 16.0 and later. + */ + Kickboard(6L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUVExposureTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUVExposureTypeIdentifier.java index f85eb297e..f7c31a34e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUVExposureTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUVExposureTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUnit.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUnit.java index d88927496..630ee05f3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUnit.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUnit.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -229,6 +230,41 @@ protected HKUnit() {} */ @Method(selector = "voltUnit") public static native HKUnit volt(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "wattUnitWithMetricPrefix:") + public static native HKUnit watt(HKMetricPrefix prefix); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "wattUnit") + public static native HKUnit watt(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "diopterUnit") + public static native HKUnit diopter(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "prismDiopterUnit") + public static native HKUnit prismDiopter(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "radianAngleUnitWithMetricPrefix:") + public static native HKUnit radianAngle(HKMetricPrefix prefix); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "radianAngleUnit") + public static native HKUnit radianAngle(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "degreeAngleUnit") + public static native HKUnit degreeAngle(); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); @Method(selector = "initWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUpdateFrequency.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUpdateFrequency.java index 6a578d792..63b302ddf 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUpdateFrequency.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUpdateFrequency.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUserMotionContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUserMotionContext.java new file mode 100644 index 000000000..5773647c4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKUserMotionContext.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/HKUserMotionContext/**/ implements ValuedEnum { + /**/ + NotSet(0L), + Stationary(1L), + Active(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/HKUserMotionContext/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/HKUserMotionContext/**/ valueOf(long n) { + for (/**/HKUserMotionContext/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/HKUserMotionContext/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVO2MaxTestType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVO2MaxTestType.java index b1e027ce4..f5b609774 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVO2MaxTestType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVO2MaxTestType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecord.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecord.java index 1128a932f..dd186856c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecord.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecord.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordCredentialType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordCredentialType.java index 295cccb51..de398b441 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordCredentialType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordCredentialType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordQuery.java index c83c23089..90b4a8e3e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSourceType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSourceType.java index 0970d2723..d42b13aad 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSourceType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSourceType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSubject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSubject.java index 9506da005..a48621687 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSubject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVerifiableClinicalRecordSubject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionEye.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionEye.java new file mode 100644 index 000000000..083efdf4a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionEye.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/HKVisionEye/**/ implements ValuedEnum { + /**/ + Left(1L), + Right(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/HKVisionEye/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/HKVisionEye/**/ valueOf(long n) { + for (/**/HKVisionEye/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/HKVisionEye/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescription.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescription.java new file mode 100644 index 000000000..1f35ab13e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescription.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKVisionPrescription/**/ + extends /**/HKSample/**/ + /**//**/ { + + /**/public static class HKVisionPrescriptionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKVisionPrescription.class); }/**/ + /**//**/ + /**/ + protected HKVisionPrescription() {} + protected HKVisionPrescription(Handle h, long handle) { super(h, handle); } + protected HKVisionPrescription(SkipInit skipInit) { super(skipInit); } + public HKVisionPrescription(HKVisionPrescriptionType type, NSDate dateIssued, NSDate expirationDate, HKDevice device, NSDictionary metadata) { super((Handle) null, create(type, dateIssued, expirationDate, device, metadata)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "prescriptionType") + public native HKVisionPrescriptionType getPrescriptionType(); + @Property(selector = "dateIssued") + public native NSDate getDateIssued(); + @Property(selector = "expirationDate") + public native NSDate getExpirationDate(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "prescriptionWithType:dateIssued:expirationDate:device:metadata:") + protected static native @Pointer long create(HKVisionPrescriptionType type, NSDate dateIssued, NSDate expirationDate, HKDevice device, NSDictionary metadata); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionType.java new file mode 100644 index 000000000..7344c205f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionType.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/HKVisionPrescriptionType/**/ implements ValuedEnum { + /**/ + Glasses(1L), + Contacts(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/HKVisionPrescriptionType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/HKVisionPrescriptionType/**/ valueOf(long n) { + for (/**/HKVisionPrescriptionType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/HKVisionPrescriptionType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionTypeIdentifier.java new file mode 100644 index 000000000..12458bde1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrescriptionTypeIdentifier.java @@ -0,0 +1,127 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**/@Library("HealthKit") @StronglyLinked/**/ +@Marshaler(/**/HKVisionPrescriptionTypeIdentifier/**/.Marshaler.class) +/**/public/**/ class /**/HKVisionPrescriptionTypeIdentifier/**/ + extends /**/HKTypeIdentifier/**/ + /**//**/ { + + static { Bro.bind(/**/HKVisionPrescriptionTypeIdentifier/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static HKVisionPrescriptionTypeIdentifier toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return HKVisionPrescriptionTypeIdentifier.valueOf(o); + } + @MarshalsPointer + public static long toNative(HKVisionPrescriptionTypeIdentifier o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(HKVisionPrescriptionTypeIdentifier.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (HKVisionPrescriptionTypeIdentifier o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKVisionPrescriptionTypeIdentifier Prescription = new HKVisionPrescriptionTypeIdentifier("Prescription"); + /**/ + + private static /**/HKVisionPrescriptionTypeIdentifier/**/[] values = new /**/HKVisionPrescriptionTypeIdentifier/**/[] {/**/Prescription/**/}; + + /**/HKVisionPrescriptionTypeIdentifier/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/HKVisionPrescriptionTypeIdentifier/**/ valueOf(/**/NSString/**/ value) { + for (/**/HKVisionPrescriptionTypeIdentifier/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/HKVisionPrescriptionTypeIdentifier/**/.class.getName()); + } + + /**//**/ + + /**/@Library("HealthKit") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKVisionPrescriptionTypeIdentifier", optional=true) + public static native NSString Prescription(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrism.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrism.java new file mode 100644 index 000000000..7d5d85bc9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVisionPrism.java @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKVisionPrism/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class HKVisionPrismPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKVisionPrism.class); }/**/ + /**//**/ + /**/ + protected HKVisionPrism() {} + protected HKVisionPrism(Handle h, long handle) { super(h, handle); } + protected HKVisionPrism(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithAmount:angle:eye:") + public HKVisionPrism(HKQuantity amount, HKQuantity angle, HKVisionEye eye) { super((SkipInit) null); initObject(init(amount, angle, eye)); } + @Method(selector = "initWithVerticalAmount:verticalBase:horizontalAmount:horizontalBase:eye:") + public HKVisionPrism(HKQuantity verticalAmount, HKPrismBase verticalBase, HKQuantity horizontalAmount, HKPrismBase horizontalBase, HKVisionEye eye) { super((SkipInit) null); initObject(init(verticalAmount, verticalBase, horizontalAmount, horizontalBase, eye)); } + @Method(selector = "initWithCoder:") + public HKVisionPrism(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "amount") + public native HKQuantity getAmount(); + @Property(selector = "angle") + public native HKQuantity getAngle(); + @Property(selector = "verticalAmount") + public native HKQuantity getVerticalAmount(); + @Property(selector = "horizontalAmount") + public native HKQuantity getHorizontalAmount(); + @Property(selector = "verticalBase") + public native HKPrismBase getVerticalBase(); + @Property(selector = "horizontalBase") + public native HKPrismBase getHorizontalBase(); + @Property(selector = "eye") + public native HKVisionEye getEye(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithAmount:angle:eye:") + protected native @Pointer long init(HKQuantity amount, HKQuantity angle, HKVisionEye eye); + @Method(selector = "initWithVerticalAmount:verticalBase:horizontalAmount:horizontalBase:eye:") + protected native @Pointer long init(HKQuantity verticalAmount, HKPrismBase verticalBase, HKQuantity horizontalAmount, HKPrismBase horizontalBase, HKVisionEye eye); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVitalSignsQuantityTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVitalSignsQuantityTypeIdentifier.java index 4184de145..bbd9e35e0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVitalSignsQuantityTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKVitalSignsQuantityTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -108,9 +109,13 @@ public static long toNative(List l, long fla * @since Available in iOS 11.0 and later. */ public static final HKVitalSignsQuantityTypeIdentifier HeartRateVariabilitySDNN = new HKVitalSignsQuantityTypeIdentifier("HeartRateVariabilitySDNN"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKVitalSignsQuantityTypeIdentifier HeartRateRecoveryOneMinute = new HKVitalSignsQuantityTypeIdentifier("HeartRateRecoveryOneMinute"); /**/ - private static /**/HKVitalSignsQuantityTypeIdentifier/**/[] values = new /**/HKVitalSignsQuantityTypeIdentifier/**/[] {/**/HeartRate, BodyTemperature, BasalBodyTemperature, BloodPressureSystolic, BloodPressureDiastolic, RespiratoryRate, RestingHeartRate, WalkingHeartRateAverage, HeartRateVariabilitySDNN/**/}; + private static /**/HKVitalSignsQuantityTypeIdentifier/**/[] values = new /**/HKVitalSignsQuantityTypeIdentifier/**/[] {/**/HeartRate, BodyTemperature, BasalBodyTemperature, BloodPressureSystolic, BloodPressureDiastolic, RespiratoryRate, RestingHeartRate, WalkingHeartRateAverage, HeartRateVariabilitySDNN, HeartRateRecoveryOneMinute/**/}; /**/HKVitalSignsQuantityTypeIdentifier/**/ (String getterName) { super(Values.class, getterName); @@ -163,6 +168,11 @@ public static class Values { */ @GlobalValue(symbol="HKQuantityTypeIdentifierHeartRateVariabilitySDNN", optional=true) public static native NSString HeartRateVariabilitySDNN(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierHeartRateRecoveryOneMinute", optional=true) + public static native NSString HeartRateRecoveryOneMinute(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWaterTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWaterTypeIdentifier.java new file mode 100644 index 000000000..7fb3781ae --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWaterTypeIdentifier.java @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/**/ +/**/@Library("HealthKit") @StronglyLinked/**/ +@Marshaler(/**/HKWaterTypeIdentifier/**/.Marshaler.class) +/**/public/**/ class /**/HKWaterTypeIdentifier/**/ + extends /**/HKQuantityTypeIdentifier/**/ + /**//**/ { + + static { Bro.bind(/**/HKWaterTypeIdentifier/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static HKWaterTypeIdentifier toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return HKWaterTypeIdentifier.valueOf(o); + } + @MarshalsPointer + public static long toNative(HKWaterTypeIdentifier o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(HKWaterTypeIdentifier.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (HKWaterTypeIdentifier o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKWaterTypeIdentifier UnderwaterDepth = new HKWaterTypeIdentifier("UnderwaterDepth"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final HKWaterTypeIdentifier WaterTemperature = new HKWaterTypeIdentifier("WaterTemperature"); + /**/ + + private static /**/HKWaterTypeIdentifier/**/[] values = new /**/HKWaterTypeIdentifier/**/[] {/**/UnderwaterDepth, WaterTemperature/**/}; + + /**/HKWaterTypeIdentifier/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/HKWaterTypeIdentifier/**/ valueOf(/**/NSString/**/ value) { + for (/**/HKWaterTypeIdentifier/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/HKWaterTypeIdentifier/**/.class.getName()); + } + + /**//**/ + + /**/@Library("HealthKit") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierUnderwaterDepth", optional=true) + public static native NSString UnderwaterDepth(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="HKQuantityTypeIdentifierWaterTemperature", optional=true) + public static native NSString WaterTemperature(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWeatherCondition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWeatherCondition.java index 379d5e969..8ca5a79a1 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWeatherCondition.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWeatherCondition.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUse.java index 5f5ba222b..494ca4371 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUse.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUse.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUseObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUseObject.java index 558c7ec52..193da6bb5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUseObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWheelchairUseObject.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkout.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkout.java index e62fbabbb..f32e7fcc1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkout.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkout.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -51,27 +52,54 @@ protected HKWorkout() {} public native HKWorkoutActivityType getWorkoutActivityType(); @Property(selector = "workoutEvents") public native NSArray getWorkoutEvents(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "workoutActivities") + public native NSArray getWorkoutActivities(); @Property(selector = "duration") public native double getDuration(); + /** + * @deprecated Use statisticsForType: passing the HKQuantityType for HKQuantityTypeIdentifierActiveEnergyBurned + */ + @Deprecated @Property(selector = "totalEnergyBurned") public native HKQuantity getTotalEnergyBurned(); + /** + * @deprecated Use statisticsForType: passing the HKQuantityType for the desired distance type + */ + @Deprecated @Property(selector = "totalDistance") public native HKQuantity getTotalDistance(); /** * @since Available in iOS 10.0 and later. + * @deprecated Use statisticsForType: passing the HKQuantityType for HKQuantityTypeIdentifierSwimmingStrokeCount */ + @Deprecated @Property(selector = "totalSwimmingStrokeCount") public native HKQuantity getTotalSwimmingStrokeCount(); /** * @since Available in iOS 11.0 and later. + * @deprecated Use statisticsForType: passing the HKQuantityType for HKQuantityTypeIdentifierFlightClimbed */ + @Deprecated @Property(selector = "totalFlightsClimbed") public native HKQuantity getTotalFlightsClimbed(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "allStatistics") + public native NSDictionary getAllStatistics(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "statisticsForType:") + public native HKStatistics statisticsForType(HKQuantityType quantityType); @Method(selector = "workoutWithActivityType:startDate:endDate:") public static native HKWorkout create(HKWorkoutActivityType workoutActivityType, NSDate startDate, NSDate endDate); @Method(selector = "workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:metadata:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivity.java new file mode 100644 index 000000000..96c920553 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivity.java @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.healthkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("HealthKit") @NativeClass/**/ +/**/public/**/ class /**/HKWorkoutActivity/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class HKWorkoutActivityPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(HKWorkoutActivity.class); }/**/ + /**//**/ + /**/ + protected HKWorkoutActivity() {} + protected HKWorkoutActivity(Handle h, long handle) { super(h, handle); } + protected HKWorkoutActivity(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithWorkoutConfiguration:startDate:endDate:metadata:") + public HKWorkoutActivity(HKWorkoutConfiguration workoutConfiguration, NSDate startDate, NSDate endDate, NSDictionary metadata) { super((SkipInit) null); initObject(init(workoutConfiguration, startDate, endDate, metadata)); } + /**/ + /**/ + @Property(selector = "UUID") + public native NSUUID getUUID(); + @Property(selector = "workoutConfiguration") + public native HKWorkoutConfiguration getWorkoutConfiguration(); + @Property(selector = "startDate") + public native NSDate getStartDate(); + @Property(selector = "endDate") + public native NSDate getEndDate(); + @Property(selector = "metadata") + public native NSDictionary getMetadata(); + @Property(selector = "duration") + public native double getDuration(); + @Property(selector = "workoutEvents") + public native NSArray getWorkoutEvents(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "allStatistics") + public native NSDictionary getAllStatistics(); + /**/ + /**//**/ + /**/ + @Method(selector = "statisticsForType:") + public native HKStatistics statisticsForType(HKQuantityType quantityType); + @Method(selector = "initWithWorkoutConfiguration:startDate:endDate:metadata:") + protected native @Pointer long init(HKWorkoutConfiguration workoutConfiguration, NSDate startDate, NSDate endDate, NSDictionary metadata); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivityType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivityType.java index 343786935..f43f3d6f2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivityType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutActivityType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -197,6 +198,14 @@ public enum /**/HKWorkoutActivityType/**/ implements ValuedEnum { * @since Available in iOS 14.0 and later. */ Cooldown(80L), + /** + * @since Available in iOS 16.0 and later. + */ + SwimBikeRun(82L), + /** + * @since Available in iOS 16.0 and later. + */ + Transition(83L), Other(3000L); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutBuilder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutBuilder.java index 7979c981b..35f0216dc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutBuilder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutBuilder.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -63,6 +64,16 @@ protected HKWorkoutBuilder() {} public native NSDictionary getMetadata(); @Property(selector = "workoutEvents") public native NSArray getWorkoutEvents(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "workoutActivities") + public native NSArray getWorkoutActivities(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "allStatistics") + public native NSDictionary getAllStatistics(); /**/ /**//**/ /**/ @@ -76,6 +87,21 @@ protected HKWorkoutBuilder() {} public native void addWorkoutEvents(NSArray workoutEvents, @Block VoidBlock2 completion); @Method(selector = "addMetadata:completion:") public native void addMetadata(NSDictionary metadata, @Block VoidBlock2 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "addWorkoutActivity:completion:") + public native void addWorkoutActivity(HKWorkoutActivity workoutActivity, @Block VoidBlock2 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "updateActivityWithUUID:endDate:completion:") + public native void updateActivity(NSUUID UUID, NSDate endDate, @Block VoidBlock2 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "updateActivityWithUUID:addMedatata:completion:") + public native void updateActivity(NSUUID UUID, NSDictionary metadata, @Block VoidBlock2 completion); @Method(selector = "endCollectionWithEndDate:completion:") public native void endCollection(NSDate endDate, @Block VoidBlock2 completion); @Method(selector = "finishWorkoutWithCompletion:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutConfiguration.java index cd541c96b..42f8b4320 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutConfiguration.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEvent.java index c9f6077d6..417086010 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEvent.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEventType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEventType.java index 5f01ce0ac..daa56bb63 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEventType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutEventType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRoute.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRoute.java index 1c21a0795..7d2e5d383 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRoute.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRoute.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteBuilder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteBuilder.java index 076816c57..fd2793ca9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteBuilder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteBuilder.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteQuery.java index a26d0c4b8..1b39e8d78 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutRouteQuery.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -49,6 +50,11 @@ protected HKWorkoutRouteQuery() {} protected HKWorkoutRouteQuery(SkipInit skipInit) { super(skipInit); } @Method(selector = "initWithRoute:dataHandler:") public HKWorkoutRouteQuery(HKWorkoutRoute workoutRoute, @Block VoidBlock4, Boolean, NSError> dataHandler) { super((SkipInit) null); initObject(init(workoutRoute, dataHandler)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithRoute:dateInterval:dataHandler:") + public HKWorkoutRouteQuery(HKWorkoutRoute workoutRoute, NSDateInterval dateInterval, @Block VoidBlock4, Boolean, NSError> dataHandler) { super((SkipInit) null); initObject(init(workoutRoute, dateInterval, dataHandler)); } /**/ /**/ @@ -57,5 +63,10 @@ protected HKWorkoutRouteQuery() {} /**/ @Method(selector = "initWithRoute:dataHandler:") protected native @Pointer long init(HKWorkoutRoute workoutRoute, @Block VoidBlock4, Boolean, NSError> dataHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithRoute:dateInterval:dataHandler:") + protected native @Pointer long init(HKWorkoutRoute workoutRoute, NSDateInterval dateInterval, @Block VoidBlock4, Boolean, NSError> dataHandler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionDelegate.java index db7255076..304b6a345 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionDelegate.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionLocationType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionLocationType.java index c7a0a08a0..88a756eb2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionLocationType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSessionLocationType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSortIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSortIdentifier.java index 019954f45..59d523278 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSortIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSortIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSwimmingLocationType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSwimmingLocationType.java index a6767eae2..09266f968 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSwimmingLocationType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutSwimmingLocationType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutType.java index 54d5d94a2..ad85f1b34 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutType.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ @@ -87,5 +88,10 @@ protected HKWorkoutType() {} */ @Method(selector = "electrocardiogramType") public static native HKElectrocardiogramType electrocardiogramType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "visionPrescriptionType") + public static native HKPrescriptionType visionPrescriptionType(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutTypeIdentifier.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutTypeIdentifier.java index 5814c183d..27c2e4d13 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutTypeIdentifier.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/healthkit/HKWorkoutTypeIdentifier.java @@ -28,6 +28,7 @@ import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; /**/ /**/ From 205d11c0984db9fe49725cda789a406d122d529d Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 16:19:31 +0300 Subject: [PATCH 36/73] * ios16 bindings: CoreGraphics processed --- .../src/main/bro-gen/coregraphics.yaml | 6 +- .../apple/coregraphics/CGAffineTransform.java | 14 ++++ .../CGAffineTransformComponents.java | 68 +++++++++++++++++++ .../apple/coregraphics/CGColorSpace.java | 10 +++ .../apple/coregraphics/CGPDFScanner.java | 2 + .../org/robovm/apple/coregraphics/CGPath.java | 50 ++++++++++++++ 6 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransformComponents.java diff --git a/compiler/cocoatouch/src/main/bro-gen/coregraphics.yaml b/compiler/cocoatouch/src/main/bro-gen/coregraphics.yaml index d5429c878..ebf4d8aed 100755 --- a/compiler/cocoatouch/src/main/bro-gen/coregraphics.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/coregraphics.yaml @@ -2,7 +2,10 @@ package: org.robovm.apple.coregraphics include: [corefoundation.yaml, foundation.yaml, uikit.yaml] library: CoreGraphics framework: CoreGraphics -clang_args: ['-x', 'objective-c'] +# TODO: FIXME: CGRect etc structs have been moved to CoreFoundation/CFCGTypes.h to allow these to be +# re-defined in CoreGraphics -D__COREFOUNDATION_CFCGTYPES__ have to be passed to compiler. +# subject for changes in next ios versions ! +clang_args: ['-x', 'objective-c', '-D__COREFOUNDATION_CFCGTYPES__'] header: /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h typedefs: Boolean: boolean @@ -50,6 +53,7 @@ classes: # Structs CGAffineTransform: {} + CGAffineTransformComponents: {} CGFunctionCallbacks: {visibility: ''} CGPathElement: {visibility: ''} CGPatternCallbacks: {visibility: ''} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransform.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransform.java index 86dbf39ff..a76d51913 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransform.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransform.java @@ -117,5 +117,19 @@ public String toString() { public boolean equalsTo(CGAffineTransform t2) { return equalsTo(this, t2); } @Bridge(symbol="CGAffineTransformEqualToTransform", optional=true) private static native boolean equalsTo(@ByVal CGAffineTransform t1, @ByVal CGAffineTransform t2); + /** + * @since Available in iOS 16.0 and later. + */ + public CGAffineTransformComponents decompose() { return decompose(this); } + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGAffineTransformDecompose", optional=true) + private static native @ByVal CGAffineTransformComponents decompose(@ByVal CGAffineTransform transform); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGAffineTransformMakeWithComponents", optional=true) + public static native @ByVal CGAffineTransform createWithComponents(@ByVal CGAffineTransformComponents components); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransformComponents.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransformComponents.java new file mode 100644 index 000000000..43410c103 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGAffineTransformComponents.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.coregraphics; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.corefoundation.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/CGAffineTransformComponents/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class CGAffineTransformComponentsPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public CGAffineTransformComponents() {} + public CGAffineTransformComponents(CGSize scale, @MachineSizedFloat double horizontalShear, @MachineSizedFloat double rotation, CGVector translation) { + this.setScale(scale); + this.setHorizontalShear(horizontalShear); + this.setRotation(rotation); + this.setTranslation(translation); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native @ByVal CGSize getScale(); + @StructMember(0) public native CGAffineTransformComponents setScale(@ByVal CGSize scale); + @StructMember(1) public native @MachineSizedFloat double getHorizontalShear(); + @StructMember(1) public native CGAffineTransformComponents setHorizontalShear(@MachineSizedFloat double horizontalShear); + @StructMember(2) public native @MachineSizedFloat double getRotation(); + @StructMember(2) public native CGAffineTransformComponents setRotation(@MachineSizedFloat double rotation); + @StructMember(3) public native @ByVal CGVector getTranslation(); + @StructMember(3) public native CGAffineTransformComponents setTranslation(@ByVal CGVector translation); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGColorSpace.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGColorSpace.java index e30c027f6..cfde471ce 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGColorSpace.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGColorSpace.java @@ -315,6 +315,11 @@ public byte[] getColorTable() { */ @GlobalValue(symbol="kCGColorSpaceITUR_709_PQ", optional=true) public static native String ITUR_709_PQ(); + /** + * @since Available in iOS 15.1 and later. + */ + @GlobalValue(symbol="kCGColorSpaceITUR_709_HLG", optional=true) + public static native String ITUR_709_HLG(); /** * @since Available in iOS 9.0 and later. */ @@ -565,6 +570,11 @@ public byte[] getColorTable() { */ @Bridge(symbol="CGColorSpaceCreateExtendedLinearized", optional=true) public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGColorSpace createExtendedLinearized(CGColorSpace space); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGColorSpaceCreateCopyWithStandardRange", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGColorSpace createCopyWithStandardRange(CGColorSpace s); /** * @deprecated Deprecated in iOS 11.0. No longer supported */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPDFScanner.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPDFScanner.java index ac13a532f..fa5700fba 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPDFScanner.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPDFScanner.java @@ -169,5 +169,7 @@ public CGPDFStream popStream() { private native boolean popDictionary(CGPDFDictionary.CGPDFDictionaryPtr value); @Bridge(symbol="CGPDFScannerPopStream", optional=true) private native boolean popStream(CGPDFStream.CGPDFStreamPtr value); + @Bridge(symbol="CGPDFScannerStop", optional=true) + public native void stop(); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPath.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPath.java index 930c35525..3eaed0327 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPath.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coregraphics/CGPath.java @@ -143,5 +143,55 @@ private static void cbApplier(@Pointer long applierPtr, CGPathElement element) { */ @Bridge(symbol="CGPathApplyWithBlock", optional=true) public native void applyWithBlock(@Block VoidBlock1 block); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyByNormalizing", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyByNormalizing(CGPath path, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyByUnioningPath", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyByUnioningPath(CGPath path, CGPath maskPath, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyByIntersectingPath", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyByIntersectingPath(CGPath path, CGPath maskPath, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyBySubtractingPath", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyBySubtractingPath(CGPath path, CGPath maskPath, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyBySymmetricDifferenceOfPath", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyBySymmetricDifferenceOfPath(CGPath path, CGPath maskPath, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyOfLineBySubtractingPath", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyOfLineBySubtractingPath(CGPath path, CGPath maskPath, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyOfLineByIntersectingPath", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyOfLineByIntersectingPath(CGPath path, CGPath maskPath, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateSeparateComponents", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createSeparateComponents(CGPath path, boolean evenOddFillRule); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathCreateCopyByFlattening", optional=true) + public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createCopyByFlattening(CGPath path, @MachineSizedFloat double flatteningThreshold); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="CGPathIntersectsPath", optional=true) + public native boolean intersectsPath(CGPath path2, boolean evenOddFillRule); /**/ } From 673add0499767b265dfb9f7ea5b3fee592c47d75 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 16:21:01 +0300 Subject: [PATCH 37/73] * ios16 bindings: CoreHaptic processed --- .../cocoatouch/src/main/bro-gen/corehaptic.yaml | 4 +++- .../robovm/apple/corehaptic/CHHapticEngine.java | 15 +++++++++++++++ .../robovm/apple/corehaptic/CHHapticPattern.java | 16 ++++++++++++++++ .../apple/corehaptic/CHHapticPatternDict.java | 5 +++++ 4 files changed, 39 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/corehaptic.yaml b/compiler/cocoatouch/src/main/bro-gen/corehaptic.yaml index fdb9abc77..8ee08429e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/corehaptic.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/corehaptic.yaml @@ -124,7 +124,9 @@ classes: '-initWithDictionary:error:': name: init throws: NSErrorException - + '-initWithContentsOfURL:error:': + name: init + throws: NSErrorException protocols: CHHapticAdvancedPatternPlayer: #since 13.0 methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticEngine.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticEngine.java index de5e40ae7..6598b8547 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticEngine.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticEngine.java @@ -79,6 +79,16 @@ public CHHapticEngine(AVAudioSession audioSession) throws NSErrorException { public native boolean isPlaysHapticsOnly(); @Property(selector = "setPlaysHapticsOnly:") public native void setPlaysHapticsOnly(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "playsAudioOnly") + public native boolean isPlaysAudioOnly(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPlaysAudioOnly:") + public native void setPlaysAudioOnly(boolean v); @Property(selector = "isMutedForAudio") public native boolean isMutedForAudio(); @Property(selector = "setIsMutedForAudio:") @@ -103,6 +113,11 @@ public static class AudioResourceKeys { */ @GlobalValue(symbol="CHHapticAudioResourceKeyUseVolumeEnvelope", optional=true) public static native String UseVolumeEnvelope(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="CHHapticAudioResourceKeyLoopEnabled", optional=true) + public static native String LoopEnabled(); } @Method(selector = "initAndReturnError:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPattern.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPattern.java index 28843355e..26682c69c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPattern.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPattern.java @@ -72,6 +72,17 @@ public CHHapticPattern(CHHapticPatternDict patternDict) throws NSErrorException if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } initObject(handle); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithContentsOfURL:error:") + public CHHapticPattern(NSURL ahapURL) throws NSErrorException { + super((SkipInit) null); + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + long handle = init(ahapURL, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + initObject(handle); + } /**/ /**/ @Property(selector = "duration") @@ -85,6 +96,11 @@ public CHHapticPattern(CHHapticPatternDict patternDict) throws NSErrorException private native @Pointer long init(NSArray events, NSArray parameterCurves, NSError.NSErrorPtr outError); @Method(selector = "initWithDictionary:error:") private native @Pointer long init(CHHapticPatternDict patternDict, NSError.NSErrorPtr outError); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithContentsOfURL:error:") + private native @Pointer long init(NSURL ahapURL, NSError.NSErrorPtr outError); @Method(selector = "exportDictionaryAndReturnError:") public native CHHapticPatternDict exportDictionaryAndReturnError(NSError.NSErrorPtr outError); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPatternDict.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPatternDict.java index 9c7988081..dc18ce3d4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPatternDict.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corehaptic/CHHapticPatternDict.java @@ -345,6 +345,11 @@ public static class Keys { */ @GlobalValue(symbol="CHHapticPatternKeyEventWaveformUseVolumeEnvelope", optional=true) public static native NSString EventWaveformUseVolumeEnvelope(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="CHHapticPatternKeyEventWaveformLoopEnabled", optional=true) + public static native NSString EventWaveformLoopEnabled(); /** * @since Available in iOS 13.0 and later. */ From 5db9457515a78429f28c3fd358c5b64d2cca44e6 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 18:20:59 +0300 Subject: [PATCH 38/73] * ios16 bindings: NearbyInteraction processed --- .../src/main/bro-gen/nearbyinteraction.yaml | 22 ++- .../NIAlgorithmConvergence.java | 69 ++++++++ .../NIAlgorithmConvergenceStatus.java | 63 +++++++ .../NIAlgorithmConvergenceStatusReason.java | 154 ++++++++++++++++++ .../nearbyinteraction/NIDeviceCapability.java | 61 +++++++ .../NIDeviceCapabilityAdapter.java | 59 +++++++ .../apple/nearbyinteraction/NIErrorCode.java | 10 +- .../NINearbyAccessoryConfiguration.java | 26 +++ .../nearbyinteraction/NINearbyObject.java | 20 +++ ...NearbyObjectVerticalDirectionEstimate.java | 65 ++++++++ .../NINearbyPeerConfiguration.java | 10 ++ .../apple/nearbyinteraction/NISession.java | 20 +++ .../nearbyinteraction/NISessionDelegate.java | 10 ++ .../NISessionDelegateAdapter.java | 10 ++ 14 files changed, 595 insertions(+), 4 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergence.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatus.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatusReason.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapability.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapabilityAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObjectVerticalDirectionEstimate.java diff --git a/compiler/cocoatouch/src/main/bro-gen/nearbyinteraction.yaml b/compiler/cocoatouch/src/main/bro-gen/nearbyinteraction.yaml index 4d1fc02f7..63610c262 100755 --- a/compiler/cocoatouch/src/main/bro-gen/nearbyinteraction.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/nearbyinteraction.yaml @@ -7,10 +7,15 @@ headers: - /System/Library/Frameworks/NearbyInteraction.framework/Headers/NearbyInteraction.h typedefs: - + +private_typedefs: + 'ARSession *': org.robovm.apple.arkit.ARSession + enums: NIErrorCode: {nserror: true} NINearbyObjectRemovalReason: {} + NINearbyObjectVerticalDirectionEstimate: {} + NIAlgorithmConvergenceStatus: {} categories: @@ -31,6 +36,10 @@ classes: '-initWithData:error:': name: init throws: NSErrorException + '-initWithAccessoryData:bluetoothPeerIdentifier:error:': + name: init + throws: NSErrorException + NIAlgorithmConvergence: {} #since 16.0 protocols: NISessionDelegate: #since 14.0 methods: @@ -42,19 +51,26 @@ protocols: name: didInvalidate '-session:didGenerateShareableConfigurationData:forObject:': name: didGenerateShareableConfigurationData -functions: + '-session:didUpdateAlgorithmConvergence:forObject:': + name: didUpdateAlgorithmConvergence + NIDeviceCapability: {} #since 16.0 # Make sure we don't miss any functions if new ones are introduced in a later version (k?NI.*): class: FIXME name: 'Function__#{g[0]}' +functions: +typed_enums: + NIAlgorithmConvergenceStatusReason: + enum: NIAlgorithmConvergenceStatusReason + type: NSString values: NIErrorDomain: class: NIErrorCode name: getClassDomain - NINearbyObject(DistanceNotAvailable|DirectionNotAvailable): + NINearbyObject(DistanceNotAvailable|DirectionNotAvailable|AngleNotAvailable|WorldTransformNotAvailable): readonly: true class: NINearbyObject name: '#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergence.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergence.java new file mode 100644 index 000000000..97546259c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergence.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.nearbyinteraction; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("NearbyInteraction") @NativeClass/**/ +/**/public/**/ class /**/NIAlgorithmConvergence/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class NIAlgorithmConvergencePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(NIAlgorithmConvergence.class); }/**/ + /**//**/ + /**/ + protected NIAlgorithmConvergence() {} + protected NIAlgorithmConvergence(Handle h, long handle) { super(h, handle); } + protected NIAlgorithmConvergence(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public NIAlgorithmConvergence(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "status") + public native NIAlgorithmConvergenceStatus getStatus(); + @Property(selector = "reasons") + public native NSArray getReasons(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatus.java new file mode 100644 index 000000000..0018df75f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatus.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.nearbyinteraction; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/NIAlgorithmConvergenceStatus/**/ implements ValuedEnum { + /**/ + Unknown(0L), + NotConverged(1L), + Converged(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/NIAlgorithmConvergenceStatus/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NIAlgorithmConvergenceStatus/**/ valueOf(long n) { + for (/**/NIAlgorithmConvergenceStatus/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NIAlgorithmConvergenceStatus/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatusReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatusReason.java new file mode 100644 index 000000000..df1d9cbb0 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIAlgorithmConvergenceStatusReason.java @@ -0,0 +1,154 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.nearbyinteraction; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**/@Library("NearbyInteraction") @StronglyLinked/**/ +@Marshaler(/**/NIAlgorithmConvergenceStatusReason/**/.Marshaler.class) +/**/public/**/ class /**/NIAlgorithmConvergenceStatusReason/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/NIAlgorithmConvergenceStatusReason/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static NIAlgorithmConvergenceStatusReason toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return NIAlgorithmConvergenceStatusReason.valueOf(o); + } + @MarshalsPointer + public static long toNative(NIAlgorithmConvergenceStatusReason o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(NIAlgorithmConvergenceStatusReason.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (NIAlgorithmConvergenceStatusReason o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final NIAlgorithmConvergenceStatusReason NIAlgorithmConvergenceStatusReasonInsufficientHorizontalSweep = new NIAlgorithmConvergenceStatusReason("NIAlgorithmConvergenceStatusReasonInsufficientHorizontalSweep"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NIAlgorithmConvergenceStatusReason NIAlgorithmConvergenceStatusReasonInsufficientVerticalSweep = new NIAlgorithmConvergenceStatusReason("NIAlgorithmConvergenceStatusReasonInsufficientVerticalSweep"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NIAlgorithmConvergenceStatusReason NIAlgorithmConvergenceStatusReasonInsufficientMovement = new NIAlgorithmConvergenceStatusReason("NIAlgorithmConvergenceStatusReasonInsufficientMovement"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NIAlgorithmConvergenceStatusReason NIAlgorithmConvergenceStatusReasonInsufficientLighting = new NIAlgorithmConvergenceStatusReason("NIAlgorithmConvergenceStatusReasonInsufficientLighting"); + /**/ + + private static /**/NIAlgorithmConvergenceStatusReason/**/[] values = new /**/NIAlgorithmConvergenceStatusReason/**/[] {/**/NIAlgorithmConvergenceStatusReasonInsufficientHorizontalSweep, NIAlgorithmConvergenceStatusReasonInsufficientVerticalSweep, NIAlgorithmConvergenceStatusReasonInsufficientMovement, NIAlgorithmConvergenceStatusReasonInsufficientLighting/**/}; + + /**/NIAlgorithmConvergenceStatusReason/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/NIAlgorithmConvergenceStatusReason/**/ valueOf(/**/NSString/**/ value) { + for (/**/NIAlgorithmConvergenceStatusReason/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/NIAlgorithmConvergenceStatusReason/**/.class.getName()); + } + + /**//**/ + + /**/@Library("NearbyInteraction") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NIAlgorithmConvergenceStatusReasonInsufficientHorizontalSweep", optional=true) + public static native NSString NIAlgorithmConvergenceStatusReasonInsufficientHorizontalSweep(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NIAlgorithmConvergenceStatusReasonInsufficientVerticalSweep", optional=true) + public static native NSString NIAlgorithmConvergenceStatusReasonInsufficientVerticalSweep(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NIAlgorithmConvergenceStatusReasonInsufficientMovement", optional=true) + public static native NSString NIAlgorithmConvergenceStatusReasonInsufficientMovement(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NIAlgorithmConvergenceStatusReasonInsufficientLighting", optional=true) + public static native NSString NIAlgorithmConvergenceStatusReasonInsufficientLighting(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapability.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapability.java new file mode 100644 index 000000000..37484dd72 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapability.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.nearbyinteraction; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/NIDeviceCapability/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "supportsPreciseDistanceMeasurement") + boolean supportsPreciseDistanceMeasurement(); + @Property(selector = "supportsDirectionMeasurement") + boolean supportsDirectionMeasurement(); + @Property(selector = "supportsCameraAssistance") + boolean supportsCameraAssistance(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapabilityAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapabilityAdapter.java new file mode 100644 index 000000000..52d3a3757 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIDeviceCapabilityAdapter.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.nearbyinteraction; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/NIDeviceCapabilityAdapter/**/ + extends /**/NSObject/**/ + /**/implements NIDeviceCapability/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("supportsPreciseDistanceMeasurement") + public boolean supportsPreciseDistanceMeasurement() { return false; } + @NotImplemented("supportsDirectionMeasurement") + public boolean supportsDirectionMeasurement() { return false; } + @NotImplemented("supportsCameraAssistance") + public boolean supportsCameraAssistance() { return false; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIErrorCode.java index db168105a..119416bb5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NIErrorCode.java @@ -42,7 +42,15 @@ public enum /**/NIErrorCode/**/ implements NSErrorCode { SessionFailed(-5887L), ResourceUsageTimeout(-5886L), ActiveSessionsLimitExceeded(-5885L), - UserDidNotAllow(-5884L); + UserDidNotAllow(-5884L), + /** + * @since Available in iOS 16.0 and later. + */ + InvalidARConfiguration(-5883L), + /** + * @since Available in iOS 16.0 and later. + */ + AccessoryPeerDeviceUnavailable(-5882L); /**/ /**/static { Bro.bind(NIErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyAccessoryConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyAccessoryConfiguration.java index dad737700..04118a856 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyAccessoryConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyAccessoryConfiguration.java @@ -56,10 +56,31 @@ public NINearbyAccessoryConfiguration(NSData data) throws NSErrorException { if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } initObject(handle); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithAccessoryData:bluetoothPeerIdentifier:error:") + public NINearbyAccessoryConfiguration(NSData accessoryData, NSUUID identifier) throws NSErrorException { + super((SkipInit) null); + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + long handle = init(accessoryData, identifier, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + initObject(handle); + } /**/ /**/ @Property(selector = "accessoryDiscoveryToken") public native NIDiscoveryToken getAccessoryDiscoveryToken(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isCameraAssistanceEnabled") + public native boolean isCameraAssistanceEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCameraAssistanceEnabled:") + public native void setCameraAssistanceEnabled(boolean v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ @@ -67,5 +88,10 @@ public NINearbyAccessoryConfiguration(NSData data) throws NSErrorException { /**/ @Method(selector = "initWithData:error:") private native @Pointer long init(NSData data, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithAccessoryData:bluetoothPeerIdentifier:error:") + private native @Pointer long init(NSData accessoryData, NSUUID identifier, NSError.NSErrorPtr error); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObject.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObject.java index bc5db19ef..983490021 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObject.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObject.java @@ -58,6 +58,16 @@ protected NINearbyObject() {} public native float getDistance(); @Property(selector = "direction") public native @ByVal VectorFloat3 getDirection(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "verticalDirectionEstimate") + public native NINearbyObjectVerticalDirectionEstimate getVerticalDirectionEstimate(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "horizontalAngle") + public native float getHorizontalAngle(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ @@ -73,6 +83,16 @@ protected NINearbyObject() {} */ @GlobalValue(symbol="NINearbyObjectDirectionNotAvailable", optional=true) public static native @ByVal VectorFloat3 DirectionNotAvailable(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NINearbyObjectAngleNotAvailable", optional=true) + public static native float AngleNotAvailable(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NINearbyObjectWorldTransformNotAvailable", optional=true) + public static native @ByVal MatrixFloat4x4 WorldTransformNotAvailable(); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObjectVerticalDirectionEstimate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObjectVerticalDirectionEstimate.java new file mode 100644 index 000000000..7ba3f9420 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyObjectVerticalDirectionEstimate.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.nearbyinteraction; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/NINearbyObjectVerticalDirectionEstimate/**/ implements ValuedEnum { + /**/ + Unknown(0L), + Same(1L), + Above(2L), + Below(3L), + AboveOrBelow(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/NINearbyObjectVerticalDirectionEstimate/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NINearbyObjectVerticalDirectionEstimate/**/ valueOf(long n) { + for (/**/NINearbyObjectVerticalDirectionEstimate/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NINearbyObjectVerticalDirectionEstimate/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyPeerConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyPeerConfiguration.java index 90da04365..43065fa9a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyPeerConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NINearbyPeerConfiguration.java @@ -54,6 +54,16 @@ protected NINearbyPeerConfiguration() {} /**/ @Property(selector = "peerDiscoveryToken") public native NIDiscoveryToken getPeerDiscoveryToken(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isCameraAssistanceEnabled") + public native boolean isCameraAssistanceEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCameraAssistanceEnabled:") + public native void setCameraAssistanceEnabled(boolean v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISession.java index caf0d6621..877ad198e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISession.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISession.java @@ -50,8 +50,18 @@ public NISession() {} protected NISession(SkipInit skipInit) { super(skipInit); } /**/ /**/ + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use deviceCapabilities property and check the supportsPreciseDistanceMeasurement property + */ + @Deprecated @Property(selector = "isSupported") public static native boolean isSupported(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "deviceCapabilities") + public static native NIDeviceCapability getDeviceCapabilities(); @Property(selector = "delegate") public native NISessionDelegate getDelegate(); @Property(selector = "setDelegate:", strongRef = true) @@ -73,5 +83,15 @@ public NISession() {} public native void pause(); @Method(selector = "invalidate") public native void invalidate(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setARSession:") + public native void setARSession(org.robovm.apple.arkit.ARSession session); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "worldTransformForObject:") + public native @ByVal MatrixFloat4x4 worldTransformForObject(NINearbyObject object); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegate.java index 61afb7a09..e8a3f3ef9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegate.java @@ -64,6 +64,16 @@ */ @Method(selector = "session:didGenerateShareableConfigurationData:forObject:") void didGenerateShareableConfigurationData(NISession session, NSData shareableConfigurationData, NINearbyObject object); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "session:didUpdateAlgorithmConvergence:forObject:") + void didUpdateAlgorithmConvergence(NISession session, NIAlgorithmConvergence convergence, NINearbyObject object); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sessionDidStartRunning:") + void sessionDidStartRunning(NISession session); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegateAdapter.java index ebf758a9e..e18b4d429 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/nearbyinteraction/NISessionDelegateAdapter.java @@ -64,5 +64,15 @@ public void didInvalidate(NISession session, NSError error) {} */ @NotImplemented("session:didGenerateShareableConfigurationData:forObject:") public void didGenerateShareableConfigurationData(NISession session, NSData shareableConfigurationData, NINearbyObject object) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("session:didUpdateAlgorithmConvergence:forObject:") + public void didUpdateAlgorithmConvergence(NISession session, NIAlgorithmConvergence convergence, NINearbyObject object) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("sessionDidStartRunning:") + public void sessionDidStartRunning(NISession session) {} /**/ } From 2a5070a062fcaffabcafc1f1ebd80d9df475111d Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 18:21:14 +0300 Subject: [PATCH 39/73] * ios16 bindings: HomeKit processed --- compiler/cocoatouch/src/main/bro-gen/homekit.yaml | 2 ++ .../org/robovm/apple/homekit/HMAccessorySetupRequest.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/compiler/cocoatouch/src/main/bro-gen/homekit.yaml b/compiler/cocoatouch/src/main/bro-gen/homekit.yaml index c316977eb..319e093ba 100755 --- a/compiler/cocoatouch/src/main/bro-gen/homekit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/homekit.yaml @@ -6,6 +6,8 @@ clang_args: ['-x', 'objective-c'] headers: - /System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.h +private_typedefs: + MTRSetupPayload: NSObject # Matter framework is not handled for now enums: HMAccessoryCategoryType: {} HMActionSetType: {} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupRequest.java index 6f494288f..82d323d47 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupRequest.java @@ -54,6 +54,10 @@ public HMAccessorySetupRequest() {} public native HMAccessorySetupPayload getPayload(); @Property(selector = "setPayload:") public native void setPayload(HMAccessorySetupPayload v); + @Property(selector = "matterPayload") + public native NSObject getMatterPayload(); + @Property(selector = "setMatterPayload:") + public native void setMatterPayload(NSObject v); @Property(selector = "homeUniqueIdentifier") public native NSUUID getHomeUniqueIdentifier(); @Property(selector = "setHomeUniqueIdentifier:") From 019f3f48787bca7dcb404bab948f49151ac354b3 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 18:31:01 +0300 Subject: [PATCH 40/73] * ios16 bindings: Network processed --- .../cocoatouch/src/main/bro-gen/network.yaml | 14 +++++---- .../apple/network/NWAdvertiseDescriptor.java | 10 +++++++ .../apple/network/NWBrowseDescriptor.java | 10 +++++++ .../org/robovm/apple/network/NWEndpoint.java | 10 +++++++ .../robovm/apple/network/NWParameters.java | 15 ++++++++++ .../apple/network/NWProtocolMetadata.java | 30 +++++++++++++++++++ 6 files changed, 83 insertions(+), 6 deletions(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/network.yaml b/compiler/cocoatouch/src/main/bro-gen/network.yaml index 84696b472..a55535684 100755 --- a/compiler/cocoatouch/src/main/bro-gen/network.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/network.yaml @@ -294,6 +294,11 @@ functions: 0: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } 1: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } 2: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } + nw_advertise_descriptor_(get_application_service_name): + class: NWAdvertiseDescriptor + name: '#{g[0].downcase_first_camelize}' + return_type: String + return_marshaler: StringMarshalers.AsAsciiZMarshaler nw_advertise_descriptor_(.*): class: NWAdvertiseDescriptor name: '#{g[0].downcase_first_camelize}' @@ -351,7 +356,7 @@ functions: name: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } type: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } domain: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } - nw_endpoint_(get_hostname|get_bonjour_service_name|get_bonjour_service_type|get_bonjour_service_domain|copy_port_string|copy_address_string|get_url): + nw_endpoint_(get_hostname|get_bonjour_service_name|get_bonjour_service_type|get_bonjour_service_domain|copy_port_string|copy_address_string|get_url|get_signature): class: NWEndpoint name: '#{g[0].downcase_first_camelize}' return_type: String @@ -505,7 +510,7 @@ functions: parameters: type: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } domain: {type: String, marshaler: StringMarshalers.AsAsciiZMarshaler } - nw_browse_descriptor_(get_bonjour_service_type|get_bonjour_service_domain): + nw_browse_descriptor_(get_bonjour_service_type|get_bonjour_service_domain|get_application_service_name): class: NWBrowseDescriptor name: '#{g[0].downcase_first_camelize}' return_type: String @@ -652,10 +657,7 @@ functions: class: NWProtocolOptions name: '#{g[0]}Quic#{g[1].upcase_first_camelize}' - nw_quic_(add|copy|get|set)_(sec_protocol_metadata|stream_id|stream_application_error|local_max_streams_bidirectional|local_max_streams_unidirectional): - class: NWProtocolMetadata - name: '#{g[0]}Quic#{g[1].upcase_first_camelize}' - nw_quic_(add|copy|get|set)_(remote_max_streams_bidirectional|remote_max_streams_unidirectional|application_error|application_error_reason|keepalive_interval|remote_idle_timeout): + nw_quic_(add|copy|get|set)_(.*): class: NWProtocolMetadata name: '#{g[0]}Quic#{g[1].upcase_first_camelize}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWAdvertiseDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWAdvertiseDescriptor.java index 34a837ced..5061b6281 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWAdvertiseDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWAdvertiseDescriptor.java @@ -86,6 +86,16 @@ */ @Bridge(symbol="nw_advertise_descriptor_copy_txt_record_object", optional=true) public native NWTxtRecord copyTxtRecordObject(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_advertise_descriptor_create_application_service", optional=true) + public static native NWAdvertiseDescriptor createApplicationService(BytePtr application_service_name); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_advertise_descriptor_get_application_service_name", optional=true) + public native @org.robovm.rt.bro.annotation.Marshaler(StringMarshalers.AsAsciiZMarshaler.class) String getApplicationServiceName(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWBrowseDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWBrowseDescriptor.java index a6ce48bb4..d1d0d161a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWBrowseDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWBrowseDescriptor.java @@ -81,6 +81,16 @@ */ @Bridge(symbol="nw_browse_descriptor_get_include_txt_record", optional=true) public native boolean getIncludeTxtRecord(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_browse_descriptor_create_application_service", optional=true) + public static native NWBrowseDescriptor createApplicationService(BytePtr application_service_name); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_browse_descriptor_get_application_service_name", optional=true) + public native @org.robovm.rt.bro.annotation.Marshaler(StringMarshalers.AsAsciiZMarshaler.class) String getApplicationServiceName(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWEndpoint.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWEndpoint.java index 4e7659896..ddf6fa57d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWEndpoint.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWEndpoint.java @@ -124,6 +124,16 @@ */ @Bridge(symbol="nw_endpoint_get_url", optional=true) public native @org.robovm.rt.bro.annotation.Marshaler(StringMarshalers.AsAsciiZMarshaler.class) String getUrl(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_endpoint_copy_txt_record", optional=true) + public native NWTxtRecord copyTxtRecord(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_endpoint_get_signature", optional=true) + public native @org.robovm.rt.bro.annotation.Marshaler(StringMarshalers.AsAsciiZMarshaler.class) String getSignature(MachineSizedUIntPtr out_signature_length); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWParameters.java index 772a0111e..91bf03fba 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWParameters.java @@ -82,6 +82,11 @@ */ @Bridge(symbol="nw_parameters_create_quic", optional=true) public static native NWParameters createQuic(@Block VoidBlock1 configure_quic); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_parameters_create_application_service", optional=true) + public static native NWParameters createApplicationService(); /** * @since Available in iOS 12.0 and later. */ @@ -272,6 +277,16 @@ */ @Bridge(symbol="nw_parameters_get_expired_dns_behavior", optional=true) public native NWParametersExpiredDnsBehavior getExpiredDnsBehavior(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_parameters_set_requires_dnssec_validation", optional=true) + public native void setRequiresDnssecValidation(boolean requires_dnssec_validation); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_parameters_requires_dnssec_validation", optional=true) + public native boolean requiresDnssecValidation(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWProtocolMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWProtocolMetadata.java index 5073c24e7..6d04868cf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWProtocolMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/network/NWProtocolMetadata.java @@ -96,6 +96,26 @@ */ @Bridge(symbol="nw_ip_metadata_get_receive_time", optional=true) public native long getIpReceiveTime(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_quic_get_stream_is_datagram", optional=true) + public static native boolean getQuicStreamIsDatagram(NWProtocolOptions options); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_quic_set_stream_is_datagram", optional=true) + public static native void setQuicStreamIsDatagram(NWProtocolOptions options, boolean is_datagram); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_quic_get_max_datagram_frame_size", optional=true) + public static native short getQuicMaxDatagramFrameSize(NWProtocolOptions options); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_quic_set_max_datagram_frame_size", optional=true) + public static native void setQuicMaxDatagramFrameSize(NWProtocolOptions options, short max_datagram_frame_size); /** * @since Available in iOS 15.0 and later. */ @@ -111,6 +131,11 @@ */ @Bridge(symbol="nw_quic_get_stream_id", optional=true) public native long getQuicStreamId(); + /** + * @since Available in iOS 15.0 and later. + */ + @Bridge(symbol="nw_quic_get_stream_type", optional=true) + public native byte getQuicStreamType(); /** * @since Available in iOS 15.0 and later. */ @@ -151,6 +176,11 @@ */ @Bridge(symbol="nw_quic_get_remote_max_streams_unidirectional", optional=true) public native long getQuicRemoteMaxStreamsUnidirectional(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="nw_quic_get_stream_usable_datagram_frame_size", optional=true) + public native short getQuicStreamUsableDatagramFrameSize(); /** * @since Available in iOS 15.0 and later. */ From 0292f99b71d44866246b524f8d7b783f26eb1c4a Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 18:39:33 +0300 Subject: [PATCH 41/73] * ios16 bindings: NetworkExtension processed --- .../src/main/bro-gen/networkextension.yaml | 7 ++ .../NEDNSOverHTTPSSettings.java | 10 ++ .../NEDNSOverTLSSettings.java | 10 ++ .../networkextension/NEVPNConnection.java | 5 + .../NEVPNConnectionError.java | 108 ++++++++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnectionError.java diff --git a/compiler/cocoatouch/src/main/bro-gen/networkextension.yaml b/compiler/cocoatouch/src/main/bro-gen/networkextension.yaml index b4d244b9a..69fdee73f 100755 --- a/compiler/cocoatouch/src/main/bro-gen/networkextension.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/networkextension.yaml @@ -47,6 +47,8 @@ enums: NEDNSSettingsManagerError: {nserror: true} #since 14.0 NEAppPushManagerError: {nserror: true} #since 14.0 NEHotspotNetworkSecurityType: {} #since 15.0 + + NEVPNConnectionError: {nserror: true} #since 16.0 classes: NEProvider: methods: @@ -205,6 +207,8 @@ classes: '-startVPNTunnelWithOptions:andReturnError:': name: startVPNTunnel throws: NSErrorException + '-fetchLastDisconnectErrorWithCompletionHandler:': + name: fetchLastDisconnectError NEVPNManager: # DONE properties: 'onDemandRules': @@ -487,6 +491,9 @@ values: NEDNSProxyConfigurationDidChangeNotification: class: NEDNSProxyManager name: ConfigurationDidChange + NEVPNConnectionErrorDomain: + class: NEVPNConnectionError + name: getClassDomain # Make sure we don't miss any values if new ones are introduced in a later version (k?NE.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverHTTPSSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverHTTPSSettings.java index 0307b7a8a..5afb0f9f4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverHTTPSSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverHTTPSSettings.java @@ -66,6 +66,16 @@ public NEDNSOverHTTPSSettings() {} */ @Property(selector = "setServerURL:") public native void setServerURL(NSURL v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "identityReference") + public native NSData getIdentityReference(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setIdentityReference:") + public native void setIdentityReference(NSData v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverTLSSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverTLSSettings.java index 156dc2196..3bc153411 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverTLSSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEDNSOverTLSSettings.java @@ -66,6 +66,16 @@ public NEDNSOverTLSSettings() {} */ @Property(selector = "setServerName:") public native void setServerName(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "identityReference") + public native NSData getIdentityReference(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setIdentityReference:") + public native void setIdentityReference(NSData v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnection.java index 8e9620968..aa6066a6e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnection.java @@ -115,5 +115,10 @@ public boolean startVPNTunnel(NSDictionary options) throws NSErrorE private native boolean startVPNTunnel(NSDictionary options, NSError.NSErrorPtr error); @Method(selector = "stopVPNTunnel") public native void stopVPNTunnel(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "fetchLastDisconnectErrorWithCompletionHandler:") + public native void fetchLastDisconnectError(@Block VoidBlock1 handler); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnectionError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnectionError.java new file mode 100644 index 000000000..e16e804a1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/networkextension/NEVPNConnectionError.java @@ -0,0 +1,108 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.networkextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("NetworkExtension")/**/ +public enum /**/NEVPNConnectionError/**/ implements NSErrorCode { + /**/ + Overslept(1L), + NoNetworkAvailable(2L), + UnrecoverableNetworkChange(3L), + ConfigurationFailed(4L), + ServerAddressResolutionFailed(5L), + ServerNotResponding(6L), + ServerDead(7L), + AuthenticationFailed(8L), + ClientCertificateInvalid(9L), + ClientCertificateNotYetValid(10L), + ClientCertificateExpired(11L), + PluginFailed(12L), + ConfigurationNotFound(13L), + PluginDisabled(14L), + NegotiationFailed(15L), + ServerDisconnected(16L), + ServerCertificateInvalid(17L), + ServerCertificateNotYetValid(18L), + ServerCertificateExpired(19L); + /**/ + + /**/static { Bro.bind(NEVPNConnectionError.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NEVPNConnectionErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/NEVPNConnectionError/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/NEVPNConnectionError/**/ valueOf(long n) { + for (/**/NEVPNConnectionError/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/NEVPNConnectionError/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/NEVPNConnectionError/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/NEVPNConnectionError/**/.getClassDomain(); + } + } +} From 992c85704a0ac422bcf2e0fa86241856e09ccfb1 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sat, 24 Sep 2022 18:39:45 +0300 Subject: [PATCH 42/73] * ios16 bindings: IdentityLookup processed --- .../src/main/bro-gen/identitylookup.yaml | 7 ++ ...essageFilterCapabilitiesQueryHandling.java | 57 ++++++++++++++ ...ilterCapabilitiesQueryHandlingAdapter.java | 55 ++++++++++++++ ...MessageFilterCapabilitiesQueryRequest.java | 65 ++++++++++++++++ ...essageFilterCapabilitiesQueryResponse.java | 73 ++++++++++++++++++ .../ILMessageFilterQueryRequest.java | 5 ++ .../ILMessageFilterQueryResponse.java | 10 +++ .../ILMessageFilterSubAction.java | 75 +++++++++++++++++++ 8 files changed, 347 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandling.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandlingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryResponse.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterSubAction.java diff --git a/compiler/cocoatouch/src/main/bro-gen/identitylookup.yaml b/compiler/cocoatouch/src/main/bro-gen/identitylookup.yaml index 969c75f7f..d4de48674 100755 --- a/compiler/cocoatouch/src/main/bro-gen/identitylookup.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/identitylookup.yaml @@ -11,6 +11,7 @@ enums: ILMessageFilterAction: {} #since 11.0 ILMessageFilterError: {nserror: true} #since 11.0 ILClassificationAction: {} #since 12.0 + ILMessageFilterSubAction: {} #since 16.0 classes: ILCallClassificationRequest: {} #since 12.0 @@ -31,12 +32,18 @@ classes: ILMessageFilterQueryRequest: {} #since 11.0 ILMessageFilterQueryResponse: {} #since 11.0 ILNetworkResponse: {} #since 11.0 + ILMessageFilterCapabilitiesQueryRequest: {} #since 16.0 + ILMessageFilterCapabilitiesQueryResponse: {} #since 16.0 protocols: ILMessageFilterQueryHandling: #since 11.0 methods: '-handleQueryRequest:context:completion:': trim_after_first_colon: true + ILMessageFilterCapabilitiesQueryHandling: #since 16.0 + methods: + '-handleCapabilitiesQueryRequest:context:completion:': + name: handleCapabilitiesQueryRequest functions: # Make sure we don't miss any functions if new ones are introduced in a later version diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandling.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandling.java new file mode 100644 index 000000000..7faaa9bb9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandling.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.identitylookup; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/ILMessageFilterCapabilitiesQueryHandling/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "handleCapabilitiesQueryRequest:context:completion:") + void handleCapabilitiesQueryRequest(ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context, @Block VoidBlock1 completion); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandlingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandlingAdapter.java new file mode 100644 index 000000000..0c100bb1a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryHandlingAdapter.java @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.identitylookup; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/ILMessageFilterCapabilitiesQueryHandlingAdapter/**/ + extends /**/NSObject/**/ + /**/implements ILMessageFilterCapabilitiesQueryHandling/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("handleCapabilitiesQueryRequest:context:completion:") + public void handleCapabilitiesQueryRequest(ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context, @Block VoidBlock1 completion) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryRequest.java new file mode 100644 index 000000000..dede4aa74 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryRequest.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.identitylookup; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("IdentityLookup") @NativeClass/**/ +/**/public/**/ class /**/ILMessageFilterCapabilitiesQueryRequest/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class ILMessageFilterCapabilitiesQueryRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(ILMessageFilterCapabilitiesQueryRequest.class); }/**/ + /**//**/ + /**/ + protected ILMessageFilterCapabilitiesQueryRequest() {} + protected ILMessageFilterCapabilitiesQueryRequest(Handle h, long handle) { super(h, handle); } + protected ILMessageFilterCapabilitiesQueryRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public ILMessageFilterCapabilitiesQueryRequest(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryResponse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryResponse.java new file mode 100644 index 000000000..24768a24e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterCapabilitiesQueryResponse.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.identitylookup; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("IdentityLookup") @NativeClass/**/ +/**/public/**/ class /**/ILMessageFilterCapabilitiesQueryResponse/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class ILMessageFilterCapabilitiesQueryResponsePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(ILMessageFilterCapabilitiesQueryResponse.class); }/**/ + /**//**/ + /**/ + public ILMessageFilterCapabilitiesQueryResponse() {} + protected ILMessageFilterCapabilitiesQueryResponse(Handle h, long handle) { super(h, handle); } + protected ILMessageFilterCapabilitiesQueryResponse(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public ILMessageFilterCapabilitiesQueryResponse(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "transactionalSubActions") + public native NSArray getTransactionalSubActions(); + @Property(selector = "setTransactionalSubActions:") + public native void setTransactionalSubActions(NSArray v); + @Property(selector = "promotionalSubActions") + public native NSArray getPromotionalSubActions(); + @Property(selector = "setPromotionalSubActions:") + public native void setPromotionalSubActions(NSArray v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryRequest.java index 2a502cc3b..876a12e97 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryRequest.java @@ -56,6 +56,11 @@ protected ILMessageFilterQueryRequest() {} public native String getSender(); @Property(selector = "messageBody") public native String getMessageBody(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "receiverISOCountryCode") + public native String getReceiverISOCountryCode(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryResponse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryResponse.java index 8a7585b0d..8bf700552 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryResponse.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterQueryResponse.java @@ -56,6 +56,16 @@ public ILMessageFilterQueryResponse() {} public native ILMessageFilterAction getAction(); @Property(selector = "setAction:") public native void setAction(ILMessageFilterAction v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "subAction") + public native ILMessageFilterSubAction getSubAction(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSubAction:") + public native void setSubAction(ILMessageFilterSubAction v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterSubAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterSubAction.java new file mode 100644 index 000000000..d377519bd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/identitylookup/ILMessageFilterSubAction.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.identitylookup; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/ILMessageFilterSubAction/**/ implements ValuedEnum { + /**/ + None(0L), + TransactionalOthers(10000L), + TransactionalFinance(10001L), + TransactionalOrders(10002L), + TransactionalReminders(10003L), + TransactionalHealth(10004L), + TransactionalWeather(10005L), + TransactionalCarrier(10006L), + TransactionalRewards(10007L), + TransactionalPublicServices(10008L), + PromotionalOthers(20000L), + PromotionalOffers(20001L), + PromotionalCoupons(20002L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/ILMessageFilterSubAction/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/ILMessageFilterSubAction/**/ valueOf(long n) { + for (/**/ILMessageFilterSubAction/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/ILMessageFilterSubAction/**/.class.getName()); + } +} From 77f29731d234f8ea195f4eb2f27a9bd4485e612f Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 07:41:20 +0300 Subject: [PATCH 43/73] * ios16 bindings: ImageCaptureCore updated --- .../src/main/bro-gen/imagecapturecore.yaml | 11 ++ .../imagecapturecore/ICCameraDevice.java | 10 ++ .../apple/imagecapturecore/ICDevice.java | 5 + .../imagecapturecore/ICDeviceBrowser.java | 10 ++ .../ICDeviceLocationOptions.java | 155 ++++++++++++++++++ .../ICDeviceLocationType.java | 67 ++++++++ .../ICDeviceLocationTypeMask.java | 68 ++++++++ .../imagecapturecore/ICDeviceTypeMask.java | 65 ++++++++ 8 files changed, 391 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationTypeMask.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceTypeMask.java diff --git a/compiler/cocoatouch/src/main/bro-gen/imagecapturecore.yaml b/compiler/cocoatouch/src/main/bro-gen/imagecapturecore.yaml index 5661384a9..fb29d2a1e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/imagecapturecore.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/imagecapturecore.yaml @@ -24,6 +24,9 @@ enums: ICReturnDownloadErrorCode: {prefix: ICReturn, merge_with: ICReturnCode} ICReturnObjectErrorCode: {prefix: ICReturn, merge_with: ICReturnCode} ICMediaPresentation: {} #since 14.0 + ICDeviceLocationType: {} #since 16.0 + ICDeviceTypeMask: {} #since 15.2 + ICDeviceLocationTypeMask: {} #since 15.2 typed_enums: # here most of typed value enums are converted just into const classes as this framework has complicated generic usage (like generic in generic) and bro-gen fails here ICDeleteResult: @@ -62,6 +65,10 @@ typed_enums: enum: ICAuthorizationStatus type: NSString prefix: ICAuthorizationStatus + ICDeviceLocationOptions: + enum: ICDeviceLocationOptions + type: NSString + prefix: ICDeviceLocationOptions classes: ICCameraDevice: #since 13.0 methods: @@ -71,6 +78,10 @@ classes: name: requestDownloadFile '-requestSendPTPCommand:outData:completion:': name: requestSendPTPCommand + '-requestReadDataFromFile:atOffset:length:readDelegate:didReadDataSelector:contextInfo:': + name: requestReadDataFromFile + '-requestSendPTPCommand:outData:sendCommandDelegate:didSendCommandSelector:contextInfo:': + name: requestSendPTPCommand ICCameraFile: #since 13.0 methods: '-requestThumbnailDataWithOptions:completion:': diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICCameraDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICCameraDevice.java index a873d8a8a..767af2162 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICCameraDevice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICCameraDevice.java @@ -122,6 +122,11 @@ public ICCameraDevice() {} */ @Method(selector = "filesOfType:") public native NSArray filesOfType(String fileUTType); + /** + * @since Available in iOS 15.2 and later. + */ + @Method(selector = "requestReadDataFromFile:atOffset:length:readDelegate:didReadDataSelector:contextInfo:") + public native void requestReadDataFromFile(ICCameraFile file, long offset, long length, NSObject readDelegate, Selector selector, VoidPtr contextInfo); /** * @since Available in iOS 13.0 and later. */ @@ -137,6 +142,11 @@ public ICCameraDevice() {} */ @Method(selector = "requestDeleteFiles:deleteFailed:completion:") public native NSProgress requestDeleteFiles(NSArray files, @Block VoidBlock1> deleteFailed, @Block VoidBlock2, NSError> completion); + /** + * @since Available in iOS 15.2 and later. + */ + @Method(selector = "requestSendPTPCommand:outData:sendCommandDelegate:didSendCommandSelector:contextInfo:") + public native void requestSendPTPCommand(NSData command, NSData data, NSObject sendCommandDelegate, Selector selector, VoidPtr contextInfo); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDevice.java index 30646c3db..31b055346 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDevice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDevice.java @@ -86,6 +86,11 @@ public ICDevice() {} */ @Property(selector = "icon") public native CGImage getIcon(); + /** + * @since Available in iOS 15.2 and later. + */ + @Property(selector = "systemSymbolName") + public native String getSystemSymbolName(); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceBrowser.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceBrowser.java index a8abf95fc..fbc7dced3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceBrowser.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceBrowser.java @@ -62,6 +62,16 @@ public ICDeviceBrowser() {} */ @Property(selector = "isSuspended") public native boolean isSuspended(); + /** + * @since Available in iOS 15.2 and later. + */ + @Property(selector = "browsedDeviceTypeMask") + public native ICDeviceTypeMask getBrowsedDeviceTypeMask(); + /** + * @since Available in iOS 15.2 and later. + */ + @Property(selector = "setBrowsedDeviceTypeMask:") + public native void setBrowsedDeviceTypeMask(ICDeviceTypeMask v); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationOptions.java new file mode 100644 index 000000000..91d04ca8c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationOptions.java @@ -0,0 +1,155 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.imagecapturecore; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/**/ +/**/@Library("ImageCaptureCore") @StronglyLinked/**/ +@Marshaler(/**/ICDeviceLocationOptions/**/.Marshaler.class) +/**/public/**/ class /**/ICDeviceLocationOptions/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ICDeviceLocationOptions/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ICDeviceLocationOptions toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ICDeviceLocationOptions.valueOf(o); + } + @MarshalsPointer + public static long toNative(ICDeviceLocationOptions o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(ICDeviceLocationOptions.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (ICDeviceLocationOptions o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final ICDeviceLocationOptions ICDeviceLocationDescriptionUSB = new ICDeviceLocationOptions("ICDeviceLocationDescriptionUSB"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final ICDeviceLocationOptions ICDeviceLocationDescriptionFireWire = new ICDeviceLocationOptions("ICDeviceLocationDescriptionFireWire"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final ICDeviceLocationOptions ICDeviceLocationDescriptionBluetooth = new ICDeviceLocationOptions("ICDeviceLocationDescriptionBluetooth"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final ICDeviceLocationOptions ICDeviceLocationDescriptionMassStorage = new ICDeviceLocationOptions("ICDeviceLocationDescriptionMassStorage"); + /**/ + + private static /**/ICDeviceLocationOptions/**/[] values = new /**/ICDeviceLocationOptions/**/[] {/**/ICDeviceLocationDescriptionUSB, ICDeviceLocationDescriptionFireWire, ICDeviceLocationDescriptionBluetooth, ICDeviceLocationDescriptionMassStorage/**/}; + + /**/ICDeviceLocationOptions/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ICDeviceLocationOptions/**/ valueOf(/**/NSString/**/ value) { + for (/**/ICDeviceLocationOptions/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ICDeviceLocationOptions/**/.class.getName()); + } + + /**//**/ + + /**/@Library("ImageCaptureCore") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="ICDeviceLocationDescriptionUSB", optional=true) + public static native NSString ICDeviceLocationDescriptionUSB(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="ICDeviceLocationDescriptionFireWire", optional=true) + public static native NSString ICDeviceLocationDescriptionFireWire(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="ICDeviceLocationDescriptionBluetooth", optional=true) + public static native NSString ICDeviceLocationDescriptionBluetooth(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="ICDeviceLocationDescriptionMassStorage", optional=true) + public static native NSString ICDeviceLocationDescriptionMassStorage(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationType.java new file mode 100644 index 000000000..5fbfeba1c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationType.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.imagecapturecore; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/ICDeviceLocationType/**/ implements ValuedEnum { + /**/ + Local(256L), + Shared(512L), + Bonjour(1024L), + Bluetooth(2048L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/ICDeviceLocationType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/ICDeviceLocationType/**/ valueOf(long n) { + for (/**/ICDeviceLocationType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/ICDeviceLocationType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationTypeMask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationTypeMask.java new file mode 100644 index 000000000..7ec2afcbf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceLocationTypeMask.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.imagecapturecore; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 15.2 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/ICDeviceLocationTypeMask/**/ implements ValuedEnum { + /**/ + Local(256L), + Shared(512L), + Bonjour(1024L), + Bluetooth(2048L), + Remote(65024L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/ICDeviceLocationTypeMask/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/ICDeviceLocationTypeMask/**/ valueOf(long n) { + for (/**/ICDeviceLocationTypeMask/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/ICDeviceLocationTypeMask/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceTypeMask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceTypeMask.java new file mode 100644 index 000000000..a098f8238 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imagecapturecore/ICDeviceTypeMask.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.imagecapturecore; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 15.2 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/ICDeviceTypeMask/**/ implements ValuedEnum { + /**/ + Camera(1L), + Scanner(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/ICDeviceTypeMask/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/ICDeviceTypeMask/**/ valueOf(long n) { + for (/**/ICDeviceTypeMask/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/ICDeviceTypeMask/**/.class.getName()); + } +} From cc4bec4cfa6efbdf48134b792e69bdd1e6474a1f Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 07:42:18 +0300 Subject: [PATCH 44/73] * ios16 bindings: ImageIO updated --- .../robovm/apple/imageio/CGImageProperties.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/imageio/CGImageProperties.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/imageio/CGImageProperties.java index 2b61fac45..2b1ae1a3d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/imageio/CGImageProperties.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/imageio/CGImageProperties.java @@ -450,6 +450,11 @@ public static class Keys { public static native CFString GIFDictionary(); @GlobalValue(symbol="kCGImagePropertyJFIFDictionary", optional=true) public static native CFString JFIFDictionary(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCGImagePropertyHEIFDictionary", optional=true) + public static native CFString HEIFDictionary(); /** * @since Available in iOS 13.0 and later. */ @@ -711,6 +716,16 @@ public static class Keys { */ @GlobalValue(symbol="kCGImagePropertyGroupImageIsAlternateImage", optional=true) public static native CFString GroupImageIsAlternateImage(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCGImagePropertyGroupImageBaseline", optional=true) + public static native CFString GroupImageBaseline(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCGImagePropertyGroupImageDisparityAdjustment", optional=true) + public static native CFString GroupImageDisparityAdjustment(); } /**/ } From 8eaaa0881d9510cb77148c1261ddd1d4a1299054 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 07:57:20 +0300 Subject: [PATCH 45/73] * ios16 bindings: PassKit updated --- .../cocoatouch/src/main/bro-gen/passkit.yaml | 98 ++++++++++++++- .../passkit/PKAddCarKeyPassConfiguration.java | 20 +++ .../PKAddSecureElementPassErrorCode.java | 3 +- .../PKAddShareablePassConfiguration.java | 18 ++- .../PKAutomaticReloadPaymentRequest.java | 85 +++++++++++++ .../PKAutomaticReloadPaymentSummaryItem.java | 66 ++++++++++ .../PKIdentityAuthorizationController.java | 68 +++++++++++ .../apple/passkit/PKIdentityButton.java | 84 +++++++++++++ .../apple/passkit/PKIdentityButtonLabel.java | 70 +++++++++++ .../apple/passkit/PKIdentityButtonStyle.java | 68 +++++++++++ .../apple/passkit/PKIdentityDocument.java | 64 ++++++++++ .../passkit/PKIdentityDocumentDescriptor.java | 64 ++++++++++ .../PKIdentityDocumentDescriptorAdapter.java | 62 ++++++++++ .../PKIdentityDriversLicenseDescriptor.java | 67 ++++++++++ .../apple/passkit/PKIdentityElement.java | 86 +++++++++++++ .../robovm/apple/passkit/PKIdentityError.java | 100 +++++++++++++++ .../passkit/PKIdentityIntentToStore.java | 67 ++++++++++ .../apple/passkit/PKIdentityRequest.java | 74 +++++++++++ .../robovm/apple/passkit/PKPassLibrary.java | 5 + .../passkit/PKPaymentAuthorizationResult.java | 10 ++ .../apple/passkit/PKPaymentNetwork.java | 20 ++- .../apple/passkit/PKPaymentOrderDetails.java | 81 ++++++++++++ .../apple/passkit/PKPaymentRequest.java | 30 +++++ .../apple/passkit/PKPaymentRequestUpdate.java | 30 +++++ .../apple/passkit/PKPaymentTokenContext.java | 85 +++++++++++++ .../passkit/PKRecurringPaymentRequest.java | 89 ++++++++++++++ .../PKShareSecureElementPassErrorCode.java | 94 ++++++++++++++ .../PKShareSecureElementPassResult.java | 69 +++++++++++ ...KShareSecureElementPassViewController.java | 77 ++++++++++++ ...cureElementPassViewControllerDelegate.java | 63 ++++++++++ ...mentPassViewControllerDelegateAdapter.java | 61 ++++++++++ .../passkit/PKShareablePassMetadata.java | 115 ++++++++++++++++-- .../PKShareablePassMetadataPreview.java | 79 ++++++++++++ .../passkit/PKVehicleConnectionDelegate.java | 63 ++++++++++ .../PKVehicleConnectionDelegateAdapter.java | 61 ++++++++++ .../passkit/PKVehicleConnectionErrorCode.java | 67 ++++++++++ .../passkit/PKVehicleConnectionSession.java | 77 ++++++++++++ ...hicleConnectionSessionConnectionState.java | 68 +++++++++++ 38 files changed, 2393 insertions(+), 15 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentSummaryItem.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityAuthorizationController.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButton.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonLabel.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocument.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptorAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDriversLicenseDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityElement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityError.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityIntentToStore.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentOrderDetails.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentTokenContext.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKRecurringPaymentRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassErrorCode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassResult.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewController.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadataPreview.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionErrorCode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSession.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSessionConnectionState.java diff --git a/compiler/cocoatouch/src/main/bro-gen/passkit.yaml b/compiler/cocoatouch/src/main/bro-gen/passkit.yaml index 1fdbb41de..2502fa334 100755 --- a/compiler/cocoatouch/src/main/bro-gen/passkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/passkit.yaml @@ -34,6 +34,13 @@ enums: PKIssuerProvisioningExtensionAuthorizationResult: {} #since 14.0 PKRadioTechnology: {} #since 14.5 PKShippingContactEditingMode: {} #since 15.0 + PKShareSecureElementPassErrorCode: {prefix: PKShareSecureElementPass, nserror: true} #since 16.0 + PKShareSecureElementPassResult: {} #since 16.0 + PKVehicleConnectionErrorCode: {} + PKVehicleConnectionSessionConnectionState: {} + PKIdentityError: {nserror: true} #since 16.0 + PKIdentityButtonStyle: {} #since 16.0 + PKIdentityButtonLabel: {} #since 16.0 typed_enums: PKStoredValuePassBalanceType: enum: PKStoredValuePassBalanceType @@ -127,6 +134,8 @@ classes: name: signData '-serviceProviderDataForSecureElementPass:completion:': name: serviceProviderDataForSecureElementPass + '-encryptedServiceProviderDataForSecureElementPass:completion:': + name: encryptedServiceProviderDataForSecureElementPass PKPayment: # DONE properties: 'billingAddress': @@ -242,8 +251,9 @@ classes: PKAddShareablePassConfiguration: #since 14.0 methods: '+configurationForPassMetadata:provisioningPolicyIdentifier:primaryAction:completion:': - constructor: true - name: create + name: configurationForPassMetadata + '+configurationForPassMetadata:primaryAction:completion:': + name: configurationForPassMetadata PKBarcodeEventConfigurationRequest: {} #since 14.0 PKBarcodeEventMetadataRequest: {} #since 14.0 PKBarcodeEventMetadataResponse: #since 14.0 @@ -286,6 +296,12 @@ classes: name: init '-initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice:': name: init + '-initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:preview:': + static_constructor_name: createUsingCardTemplateIdentifier + name: createUsingCardTemplateIdentifier0 + '-initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:preview:': + static_constructor_name: createUsingCardConfigurationIdentifier0 + name: createUsingcardConfigurationIdentifier0 PKDateComponentsRange: #since 15.0 methods: '-initWithStartDateComponents:endDateComponents:': @@ -298,6 +314,65 @@ classes: PKRecurringPaymentSummaryItem: {} #since 15.0 PKStoredValuePassBalance: {} #since 15.0 PKStoredValuePassProperties: {} #since 15.0 + PKAutomaticReloadPaymentRequest: #since 16.0 + methods: + '-initWithPaymentDescription:automaticReloadBilling:managementURL:': + name: init + PKAutomaticReloadPaymentSummaryItem: {} #since 16.0 + PKIdentityAuthorizationController: #since 16.0 + methods: + '-checkCanRequestDocument:completion:': + name: checkCanRequestDocument + '-requestDocument:completion:': + name: requestDocument + PKIdentityButton: #since 16.0 + methods: + '-initWithLabel:style:': + name: init + '+buttonWithLabel:style:': + exclude: true + PKIdentityDocument: {} #since 16.0 + PKIdentityDriversLicenseDescriptor: {} #since 16.0 + PKIdentityElement: #since 16.0 + methods: + '+ageThresholdElementWithAge:': + name: create + constructor: true + PKIdentityIntentToStore: {} #since 16.0 + PKIdentityRequest: {} #since 16.0 + PKPaymentOrderDetails: #since 16.0 + methods: + '-initWithOrderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:': + name: init + PKPaymentTokenContext: #since 16.0 + methods: + '-initWithMerchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:': + name: init + PKRecurringPaymentRequest: #since 16.0 + methods: + '-initWithPaymentDescription:regularBilling:managementURL:': + name: init + PKShareSecureElementPassViewController: #since 16.0 + methods: + '-initWithSecureElementPass:delegate:': + name: init + PKShareablePassMetadataPreview: #since 16.0 + methods: + '-initWithPassThumbnail:localizedDescription:': + name: init + '-initWithTemplateIdentifier:': + name: init + '+previewWithPassThumbnail:localizedDescription:': + exclude: true + '+previewWithTemplateIdentifier:': + exclude: true + PKVehicleConnectionSession: #since 15.4 + methods: + '-sendData:error:': + name: sendData + throws: NSErrorException + '+sessionForPass:delegate:completion:': + name: sessionForPass protocols: PKPaymentAuthorizationControllerDelegate: methods: @@ -402,6 +477,17 @@ protocols: name: handleSignatureRequest '-handleConfigurationRequest:completion:': name: handleConfigurationRequest + PKIdentityDocumentDescriptor: #since 16.0 + methods: + '-addElements:withIntentToStore:': + name: addElements + PKShareSecureElementPassViewControllerDelegate: #since 16.0 + methods: + '-shareSecureElementPassViewController:didFinishWithResult:': + name: didFinish + '-shareSecureElementPassViewController:didCreateShareURL:activationCode:': + name: didCreateShareURL + PKVehicleConnectionDelegate: {} #since 15.4 functions: # Make sure we don't miss any functions if new ones are introduced in a later version (PK.*): @@ -425,6 +511,14 @@ values: class: PKPaymentErrorCode name: '#{g[0]}UserInfoKey' + PKShareSecureElementPassErrorDomain: + class: PKShareSecureElementPassErrorCode + name: getClassDomain + + PKIdentityErrorDomain: + class: PKIdentityError + name: getClassDomain + # PKPassLibrary PKPassLibrary(.*Notification): class: PKPassLibrary diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddCarKeyPassConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddCarKeyPassConfiguration.java index dad3959a8..03c80fa3c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddCarKeyPassConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddCarKeyPassConfiguration.java @@ -68,6 +68,26 @@ public PKAddCarKeyPassConfiguration() {} */ @Property(selector = "setSupportedRadioTechnologies:") public native void setSupportedRadioTechnologies(PKRadioTechnology v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "manufacturerIdentifier") + public native String getManufacturerIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setManufacturerIdentifier:") + public native void setManufacturerIdentifier(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "provisioningTemplateIdentifier") + public native String getProvisioningTemplateIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setProvisioningTemplateIdentifier:") + public native void setProvisioningTemplateIdentifier(String v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddSecureElementPassErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddSecureElementPassErrorCode.java index d8904d6cd..9da02efe6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddSecureElementPassErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddSecureElementPassErrorCode.java @@ -48,7 +48,8 @@ public enum /**/PKAddSecureElementPassErrorCode/**/ implements NSEr UnavailableError(2L), InvalidConfigurationError(3L), DeviceNotSupportedError(4L), - DeviceNotReadyError(5L); + DeviceNotReadyError(5L), + OSVersionNotSupportedError(6L); /**/ /**/static { Bro.bind(PKAddSecureElementPassErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddShareablePassConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddShareablePassConfiguration.java index 5bfa82248..a368c121c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddShareablePassConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAddShareablePassConfiguration.java @@ -52,19 +52,33 @@ protected PKAddShareablePassConfiguration() {} protected PKAddShareablePassConfiguration(Handle h, long handle) { super(h, handle); } protected PKAddShareablePassConfiguration(SkipInit skipInit) { super(skipInit); } - public PKAddShareablePassConfiguration(NSArray passMetadata, String provisioningPolicyIdentifier, PKAddShareablePassConfigurationPrimaryAction action, @Block VoidBlock2 completion) { super((Handle) null, create(passMetadata, provisioningPolicyIdentifier, action, completion)); retain(getHandle()); } /**/ /**/ @Property(selector = "primaryAction") public native PKAddShareablePassConfigurationPrimaryAction getPrimaryAction(); @Property(selector = "credentialsMetadata") public native NSArray getCredentialsMetadata(); + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. provisioningPolicyIdentifier has been deprecated. You can stop setting this property in the init with no repercussions. + */ + @Deprecated @Property(selector = "provisioningPolicyIdentifier") public native String getProvisioningPolicyIdentifier(); /**/ /**//**/ /**/ + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use configurationForPassMetadata:primaryAction:completion: + */ + @Deprecated @Method(selector = "configurationForPassMetadata:provisioningPolicyIdentifier:primaryAction:completion:") - protected static native @Pointer long create(NSArray passMetadata, String provisioningPolicyIdentifier, PKAddShareablePassConfigurationPrimaryAction action, @Block VoidBlock2 completion); + public static native void configurationForPassMetadata(NSArray passMetadata, String provisioningPolicyIdentifier, PKAddShareablePassConfigurationPrimaryAction action, @Block VoidBlock2 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "configurationForPassMetadata:primaryAction:completion:") + public static native void configurationForPassMetadata(NSArray passMetadata, PKAddShareablePassConfigurationPrimaryAction action, @Block VoidBlock2 completion); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentRequest.java new file mode 100644 index 000000000..dd66ddcd2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentRequest.java @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKAutomaticReloadPaymentRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKAutomaticReloadPaymentRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKAutomaticReloadPaymentRequest.class); }/**/ + /**//**/ + /**/ + protected PKAutomaticReloadPaymentRequest() {} + protected PKAutomaticReloadPaymentRequest(Handle h, long handle) { super(h, handle); } + protected PKAutomaticReloadPaymentRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithPaymentDescription:automaticReloadBilling:managementURL:") + public PKAutomaticReloadPaymentRequest(String paymentDescription, PKAutomaticReloadPaymentSummaryItem automaticReloadBilling, NSURL managementURL) { super((SkipInit) null); initObject(init(paymentDescription, automaticReloadBilling, managementURL)); } + /**/ + /**/ + @Property(selector = "paymentDescription") + public native String getPaymentDescription(); + @Property(selector = "setPaymentDescription:") + public native void setPaymentDescription(String v); + @Property(selector = "automaticReloadBilling") + public native PKAutomaticReloadPaymentSummaryItem getAutomaticReloadBilling(); + @Property(selector = "setAutomaticReloadBilling:") + public native void setAutomaticReloadBilling(PKAutomaticReloadPaymentSummaryItem v); + @Property(selector = "billingAgreement") + public native String getBillingAgreement(); + @Property(selector = "setBillingAgreement:") + public native void setBillingAgreement(String v); + @Property(selector = "managementURL") + public native NSURL getManagementURL(); + @Property(selector = "setManagementURL:") + public native void setManagementURL(NSURL v); + @Property(selector = "tokenNotificationURL") + public native NSURL getTokenNotificationURL(); + @Property(selector = "setTokenNotificationURL:") + public native void setTokenNotificationURL(NSURL v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithPaymentDescription:automaticReloadBilling:managementURL:") + protected native @Pointer long init(String paymentDescription, PKAutomaticReloadPaymentSummaryItem automaticReloadBilling, NSURL managementURL); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentSummaryItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentSummaryItem.java new file mode 100644 index 000000000..8b8ff52f1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKAutomaticReloadPaymentSummaryItem.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKAutomaticReloadPaymentSummaryItem/**/ + extends /**/PKPaymentSummaryItem/**/ + /**//**/ { + + /**/public static class PKAutomaticReloadPaymentSummaryItemPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKAutomaticReloadPaymentSummaryItem.class); }/**/ + /**//**/ + /**/ + public PKAutomaticReloadPaymentSummaryItem() {} + protected PKAutomaticReloadPaymentSummaryItem(Handle h, long handle) { super(h, handle); } + protected PKAutomaticReloadPaymentSummaryItem(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "thresholdAmount") + public native NSDecimalNumber getThresholdAmount(); + @Property(selector = "setThresholdAmount:") + public native void setThresholdAmount(NSDecimalNumber v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityAuthorizationController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityAuthorizationController.java new file mode 100644 index 000000000..c2021a278 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityAuthorizationController.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityAuthorizationController/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKIdentityAuthorizationControllerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityAuthorizationController.class); }/**/ + /**//**/ + /**/ + public PKIdentityAuthorizationController() {} + protected PKIdentityAuthorizationController(Handle h, long handle) { super(h, handle); } + protected PKIdentityAuthorizationController(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "checkCanRequestDocument:completion:") + public native void checkCanRequestDocument(PKIdentityDocumentDescriptor descriptor, @Block VoidBooleanBlock completion); + @Method(selector = "requestDocument:completion:") + public native void requestDocument(PKIdentityRequest request, @Block VoidBlock2 completion); + @Method(selector = "cancelRequest") + public native void cancelRequest(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButton.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButton.java new file mode 100644 index 000000000..d50808e8d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButton.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityButton/**/ + extends /**/UIControl/**/ + /**//**/ { + + /**/public static class PKIdentityButtonPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityButton.class); }/**/ + /**//**/ + /**/ + public PKIdentityButton() {} + protected PKIdentityButton(Handle h, long handle) { super(h, handle); } + protected PKIdentityButton(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithLabel:style:") + public PKIdentityButton(PKIdentityButtonLabel label, PKIdentityButtonStyle style) { super((SkipInit) null); initObject(init(label, style)); } + @Method(selector = "initWithCoder:") + public PKIdentityButton(NSCoder coder) { super(coder); } + /**/ + /**/ + @Property(selector = "cornerRadius") + public native @MachineSizedFloat double getCornerRadius(); + @Property(selector = "setCornerRadius:") + public native void setCornerRadius(@MachineSizedFloat double v); + @WeaklyLinked + @Property(selector = "layerClass") + public static native Class getLayerClass(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithLabel:style:") + protected native @Pointer long init(PKIdentityButtonLabel label, PKIdentityButtonStyle style); + /** + * @since Available in iOS 9.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute); + /** + * @since Available in iOS 10.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonLabel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonLabel.java new file mode 100644 index 000000000..47b933308 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonLabel.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PKIdentityButtonLabel/**/ implements ValuedEnum { + /**/ + VerifyIdentity(0L), + Verify(1L), + VerifyAge(2L), + Continue(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PKIdentityButtonLabel/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKIdentityButtonLabel/**/ valueOf(long n) { + for (/**/PKIdentityButtonLabel/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKIdentityButtonLabel/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonStyle.java new file mode 100644 index 000000000..b145c6760 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityButtonStyle.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PKIdentityButtonStyle/**/ implements ValuedEnum { + /**/ + Black(0L), + BlackOutline(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PKIdentityButtonStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKIdentityButtonStyle/**/ valueOf(long n) { + for (/**/PKIdentityButtonStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKIdentityButtonStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocument.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocument.java new file mode 100644 index 000000000..d0dbb2fa8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocument.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityDocument/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKIdentityDocumentPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityDocument.class); }/**/ + /**//**/ + /**/ + protected PKIdentityDocument() {} + protected PKIdentityDocument(Handle h, long handle) { super(h, handle); } + protected PKIdentityDocument(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "encryptedData") + public native NSData getEncryptedData(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptor.java new file mode 100644 index 000000000..13c1838af --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptor.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/PKIdentityDocumentDescriptor/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "elements") + NSArray getElements(); + /**/ + /**/ + @Method(selector = "intentToStoreForElement:") + PKIdentityIntentToStore intentToStoreForElement(PKIdentityElement element); + @Method(selector = "addElements:withIntentToStore:") + void addElements(NSArray elements, PKIdentityIntentToStore intentToStore); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptorAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptorAdapter.java new file mode 100644 index 000000000..d70c3ca1d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDocumentDescriptorAdapter.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/PKIdentityDocumentDescriptorAdapter/**/ + extends /**/NSObject/**/ + /**/implements PKIdentityDocumentDescriptor/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("elements") + public NSArray getElements() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("intentToStoreForElement:") + public PKIdentityIntentToStore intentToStoreForElement(PKIdentityElement element) { return null; } + @NotImplemented("addElements:withIntentToStore:") + public void addElements(NSArray elements, PKIdentityIntentToStore intentToStore) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDriversLicenseDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDriversLicenseDescriptor.java new file mode 100644 index 000000000..e2d8c0abf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityDriversLicenseDescriptor.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityDriversLicenseDescriptor/**/ + extends /**/NSObject/**/ + /**/implements PKIdentityDocumentDescriptor/**/ { + + /**/public static class PKIdentityDriversLicenseDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityDriversLicenseDescriptor.class); }/**/ + /**//**/ + /**/ + public PKIdentityDriversLicenseDescriptor() {} + protected PKIdentityDriversLicenseDescriptor(Handle h, long handle) { super(h, handle); } + protected PKIdentityDriversLicenseDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "elements") + public native NSArray getElements(); + /**/ + /**//**/ + /**/ + @Method(selector = "intentToStoreForElement:") + public native PKIdentityIntentToStore intentToStoreForElement(PKIdentityElement element); + @Method(selector = "addElements:withIntentToStore:") + public native void addElements(NSArray elements, PKIdentityIntentToStore intentToStore); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityElement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityElement.java new file mode 100644 index 000000000..cc20f89c4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityElement.java @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityElement/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKIdentityElementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityElement.class); }/**/ + /**//**/ + /**/ + protected PKIdentityElement() {} + protected PKIdentityElement(Handle h, long handle) { super(h, handle); } + protected PKIdentityElement(SkipInit skipInit) { super(skipInit); } + public PKIdentityElement(@MachineSizedSInt long age) { super((Handle) null, create(age)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "givenNameElement") + public static native PKIdentityElement getGivenNameElement(); + @Property(selector = "familyNameElement") + public static native PKIdentityElement getFamilyNameElement(); + @Property(selector = "portraitElement") + public static native PKIdentityElement getPortraitElement(); + @Property(selector = "addressElement") + public static native PKIdentityElement getAddressElement(); + @Property(selector = "issuingAuthorityElement") + public static native PKIdentityElement getIssuingAuthorityElement(); + @Property(selector = "documentIssueDateElement") + public static native PKIdentityElement getDocumentIssueDateElement(); + @Property(selector = "documentExpirationDateElement") + public static native PKIdentityElement getDocumentExpirationDateElement(); + @Property(selector = "documentNumberElement") + public static native PKIdentityElement getDocumentNumberElement(); + @Property(selector = "drivingPrivilegesElement") + public static native PKIdentityElement getDrivingPrivilegesElement(); + @Property(selector = "ageElement") + public static native PKIdentityElement getAgeElement(); + @Property(selector = "dateOfBirthElement") + public static native PKIdentityElement getDateOfBirthElement(); + /**/ + /**//**/ + /**/ + @Method(selector = "ageThresholdElementWithAge:") + protected static native @Pointer long create(@MachineSizedSInt long age); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityError.java new file mode 100644 index 000000000..5f84ef108 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityError.java @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("PassKit")/**/ +public enum /**/PKIdentityError/**/ implements NSErrorCode { + /**/ + Unknown(0L), + NotSupported(1L), + Cancelled(2L), + NetworkUnavailable(3L), + NoElementsRequested(4L), + RequestAlreadyInProgress(5L), + InvalidNonce(6L), + InvalidElement(7L); + /**/ + + /**/static { Bro.bind(PKIdentityError.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="PKIdentityErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/PKIdentityError/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKIdentityError/**/ valueOf(long n) { + for (/**/PKIdentityError/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKIdentityError/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/PKIdentityError/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/PKIdentityError/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityIntentToStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityIntentToStore.java new file mode 100644 index 000000000..37d4eb2b5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityIntentToStore.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityIntentToStore/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKIdentityIntentToStorePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityIntentToStore.class); }/**/ + /**//**/ + /**/ + protected PKIdentityIntentToStore() {} + protected PKIdentityIntentToStore(Handle h, long handle) { super(h, handle); } + protected PKIdentityIntentToStore(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "willNotStoreIntent") + public static native PKIdentityIntentToStore getWillNotStoreIntent(); + @Property(selector = "mayStoreIntent") + public static native PKIdentityIntentToStore getMayStoreIntent(); + /**/ + /**//**/ + /**/ + @Method(selector = "mayStoreIntentForDays:") + public static native PKIdentityIntentToStore mayStoreIntentForDays(@MachineSizedSInt long days); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityRequest.java new file mode 100644 index 000000000..915d76e1e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKIdentityRequest.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKIdentityRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKIdentityRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKIdentityRequest.class); }/**/ + /**//**/ + /**/ + public PKIdentityRequest() {} + protected PKIdentityRequest(Handle h, long handle) { super(h, handle); } + protected PKIdentityRequest(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "descriptor") + public native PKIdentityDocumentDescriptor getDescriptor(); + @Property(selector = "setDescriptor:") + public native void setDescriptor(PKIdentityDocumentDescriptor v); + @Property(selector = "nonce") + public native NSData getNonce(); + @Property(selector = "setNonce:") + public native void setNonce(NSData v); + @Property(selector = "merchantIdentifier") + public native String getMerchantIdentifier(); + @Property(selector = "setMerchantIdentifier:") + public native void setMerchantIdentifier(String v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPassLibrary.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPassLibrary.java index 9886197c5..f870a8c5f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPassLibrary.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPassLibrary.java @@ -186,6 +186,11 @@ public PKPassLibrary() {} */ @Method(selector = "signData:withSecureElementPass:completion:") public native void signData(NSData signData, PKSecureElementPass secureElementPass, @Block VoidBlock3 completion); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "encryptedServiceProviderDataForSecureElementPass:completion:") + public native void encryptedServiceProviderDataForSecureElementPass(PKSecureElementPass secureElementPass, @Block VoidBlock2, NSError> completion); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentAuthorizationResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentAuthorizationResult.java index 1d7870d70..d639b190d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentAuthorizationResult.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentAuthorizationResult.java @@ -64,6 +64,16 @@ public PKPaymentAuthorizationResult() {} public native NSArray getErrors(); @Property(selector = "setErrors:") public native void setErrors(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "orderDetails") + public native PKPaymentOrderDetails getOrderDetails(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setOrderDetails:") + public native void setOrderDetails(PKPaymentOrderDetails v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentNetwork.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentNetwork.java index b4713b074..27c651450 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentNetwork.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentNetwork.java @@ -93,6 +93,14 @@ public static long toNative(List l, long flags) { /**/ public static final PKPaymentNetwork Amex = new PKPaymentNetwork("Amex"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final PKPaymentNetwork Bancomat = new PKPaymentNetwork("Bancomat"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final PKPaymentNetwork Bancontact = new PKPaymentNetwork("Bancontact"); /** * @since Available in iOS 10.3 and later. * @deprecated Deprecated in iOS 11.0. Use PKPaymentNetworkCartesBancaires instead. @@ -187,7 +195,7 @@ public static long toNative(List l, long flags) { public static final PKPaymentNetwork Nanaco = new PKPaymentNetwork("Nanaco"); /**/ - private static /**/PKPaymentNetwork/**/[] values = new /**/PKPaymentNetwork/**/[] {/**/Amex, CarteBancaire, CarteBancaires, CartesBancaires, ChinaUnionPay, Dankort, Discover, Eftpos, Electron, Elo, IDCredit, Interac, JCB, Mada, Maestro, MasterCard, Mir, PrivateLabel, QuicPay, Suica, Visa, VPay, Barcode, Girocard, Waon, Nanaco/**/}; + private static /**/PKPaymentNetwork/**/[] values = new /**/PKPaymentNetwork/**/[] {/**/Amex, Bancomat, Bancontact, CarteBancaire, CarteBancaires, CartesBancaires, ChinaUnionPay, Dankort, Discover, Eftpos, Electron, Elo, IDCredit, Interac, JCB, Mada, Maestro, MasterCard, Mir, PrivateLabel, QuicPay, Suica, Visa, VPay, Barcode, Girocard, Waon, Nanaco/**/}; /**/PKPaymentNetwork/**/ (String getterName) { super(Values.class, getterName); @@ -212,6 +220,16 @@ public static class Values { /**/ @GlobalValue(symbol="PKPaymentNetworkAmex", optional=true) public static native NSString Amex(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="PKPaymentNetworkBancomat", optional=true) + public static native NSString Bancomat(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="PKPaymentNetworkBancontact", optional=true) + public static native NSString Bancontact(); /** * @since Available in iOS 10.3 and later. * @deprecated Deprecated in iOS 11.0. Use PKPaymentNetworkCartesBancaires instead. diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentOrderDetails.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentOrderDetails.java new file mode 100644 index 000000000..6aaea529e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentOrderDetails.java @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKPaymentOrderDetails/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKPaymentOrderDetailsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKPaymentOrderDetails.class); }/**/ + /**//**/ + /**/ + protected PKPaymentOrderDetails() {} + protected PKPaymentOrderDetails(Handle h, long handle) { super(h, handle); } + protected PKPaymentOrderDetails(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithOrderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:") + public PKPaymentOrderDetails(String orderTypeIdentifier, String orderIdentifier, NSURL webServiceURL, String authenticationToken) { super((SkipInit) null); initObject(init(orderTypeIdentifier, orderIdentifier, webServiceURL, authenticationToken)); } + /**/ + /**/ + @Property(selector = "orderTypeIdentifier") + public native String getOrderTypeIdentifier(); + @Property(selector = "setOrderTypeIdentifier:") + public native void setOrderTypeIdentifier(String v); + @Property(selector = "orderIdentifier") + public native String getOrderIdentifier(); + @Property(selector = "setOrderIdentifier:") + public native void setOrderIdentifier(String v); + @Property(selector = "webServiceURL") + public native NSURL getWebServiceURL(); + @Property(selector = "setWebServiceURL:") + public native void setWebServiceURL(NSURL v); + @Property(selector = "authenticationToken") + public native String getAuthenticationToken(); + @Property(selector = "setAuthenticationToken:") + public native void setAuthenticationToken(String v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithOrderTypeIdentifier:orderIdentifier:webServiceURL:authenticationToken:") + protected native @Pointer long init(String orderTypeIdentifier, String orderIdentifier, NSURL webServiceURL, String authenticationToken); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequest.java index e169ae7ac..917ec3b0a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequest.java @@ -222,6 +222,36 @@ public PKPaymentRequest() {} @Deprecated @Property(selector = "setBillingAddress:", strongRef = true) public native void setBillingAddress(ABRecord v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "multiTokenContexts") + public native NSArray getMultiTokenContexts(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMultiTokenContexts:") + public native void setMultiTokenContexts(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recurringPaymentRequest") + public native PKRecurringPaymentRequest getRecurringPaymentRequest(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRecurringPaymentRequest:") + public native void setRecurringPaymentRequest(PKRecurringPaymentRequest v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "automaticReloadPaymentRequest") + public native PKAutomaticReloadPaymentRequest getAutomaticReloadPaymentRequest(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAutomaticReloadPaymentRequest:") + public native void setAutomaticReloadPaymentRequest(PKAutomaticReloadPaymentRequest v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequestUpdate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequestUpdate.java index 57c6d4103..797d59d1a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequestUpdate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentRequestUpdate.java @@ -74,6 +74,36 @@ public PKPaymentRequestUpdate() {} */ @Property(selector = "setShippingMethods:") public native void setShippingMethods(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "multiTokenContexts") + public native NSArray getMultiTokenContexts(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setMultiTokenContexts:") + public native void setMultiTokenContexts(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "recurringPaymentRequest") + public native PKRecurringPaymentRequest getRecurringPaymentRequest(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setRecurringPaymentRequest:") + public native void setRecurringPaymentRequest(PKRecurringPaymentRequest v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "automaticReloadPaymentRequest") + public native PKAutomaticReloadPaymentRequest getAutomaticReloadPaymentRequest(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAutomaticReloadPaymentRequest:") + public native void setAutomaticReloadPaymentRequest(PKAutomaticReloadPaymentRequest v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentTokenContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentTokenContext.java new file mode 100644 index 000000000..0efa233aa --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKPaymentTokenContext.java @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKPaymentTokenContext/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKPaymentTokenContextPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKPaymentTokenContext.class); }/**/ + /**//**/ + /**/ + protected PKPaymentTokenContext() {} + protected PKPaymentTokenContext(Handle h, long handle) { super(h, handle); } + protected PKPaymentTokenContext(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithMerchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:") + public PKPaymentTokenContext(String merchantIdentifier, String externalIdentifier, String merchantName, String merchantDomain, NSDecimalNumber amount) { super((SkipInit) null); initObject(init(merchantIdentifier, externalIdentifier, merchantName, merchantDomain, amount)); } + /**/ + /**/ + @Property(selector = "merchantIdentifier") + public native String getMerchantIdentifier(); + @Property(selector = "setMerchantIdentifier:") + public native void setMerchantIdentifier(String v); + @Property(selector = "externalIdentifier") + public native String getExternalIdentifier(); + @Property(selector = "setExternalIdentifier:") + public native void setExternalIdentifier(String v); + @Property(selector = "merchantName") + public native String getMerchantName(); + @Property(selector = "setMerchantName:") + public native void setMerchantName(String v); + @Property(selector = "merchantDomain") + public native String getMerchantDomain(); + @Property(selector = "setMerchantDomain:") + public native void setMerchantDomain(String v); + @Property(selector = "amount") + public native NSDecimalNumber getAmount(); + @Property(selector = "setAmount:") + public native void setAmount(NSDecimalNumber v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithMerchantIdentifier:externalIdentifier:merchantName:merchantDomain:amount:") + protected native @Pointer long init(String merchantIdentifier, String externalIdentifier, String merchantName, String merchantDomain, NSDecimalNumber amount); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKRecurringPaymentRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKRecurringPaymentRequest.java new file mode 100644 index 000000000..0e5a8d0a3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKRecurringPaymentRequest.java @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKRecurringPaymentRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKRecurringPaymentRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKRecurringPaymentRequest.class); }/**/ + /**//**/ + /**/ + protected PKRecurringPaymentRequest() {} + protected PKRecurringPaymentRequest(Handle h, long handle) { super(h, handle); } + protected PKRecurringPaymentRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithPaymentDescription:regularBilling:managementURL:") + public PKRecurringPaymentRequest(String paymentDescription, PKRecurringPaymentSummaryItem regularBilling, NSURL managementURL) { super((SkipInit) null); initObject(init(paymentDescription, regularBilling, managementURL)); } + /**/ + /**/ + @Property(selector = "paymentDescription") + public native String getPaymentDescription(); + @Property(selector = "setPaymentDescription:") + public native void setPaymentDescription(String v); + @Property(selector = "regularBilling") + public native PKRecurringPaymentSummaryItem getRegularBilling(); + @Property(selector = "setRegularBilling:") + public native void setRegularBilling(PKRecurringPaymentSummaryItem v); + @Property(selector = "trialBilling") + public native PKRecurringPaymentSummaryItem getTrialBilling(); + @Property(selector = "setTrialBilling:") + public native void setTrialBilling(PKRecurringPaymentSummaryItem v); + @Property(selector = "billingAgreement") + public native String getBillingAgreement(); + @Property(selector = "setBillingAgreement:") + public native void setBillingAgreement(String v); + @Property(selector = "managementURL") + public native NSURL getManagementURL(); + @Property(selector = "setManagementURL:") + public native void setManagementURL(NSURL v); + @Property(selector = "tokenNotificationURL") + public native NSURL getTokenNotificationURL(); + @Property(selector = "setTokenNotificationURL:") + public native void setTokenNotificationURL(NSURL v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithPaymentDescription:regularBilling:managementURL:") + protected native @Pointer long init(String paymentDescription, PKRecurringPaymentSummaryItem regularBilling, NSURL managementURL); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassErrorCode.java new file mode 100644 index 000000000..5446d66c7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassErrorCode.java @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("PassKit")/**/ +public enum /**/PKShareSecureElementPassErrorCode/**/ implements NSErrorCode { + /**/ + UnknownError(0L), + SetupError(1L); + /**/ + + /**/static { Bro.bind(PKShareSecureElementPassErrorCode.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="PKShareSecureElementPassErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/PKShareSecureElementPassErrorCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKShareSecureElementPassErrorCode/**/ valueOf(long n) { + for (/**/PKShareSecureElementPassErrorCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKShareSecureElementPassErrorCode/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/PKShareSecureElementPassErrorCode/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/PKShareSecureElementPassErrorCode/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassResult.java new file mode 100644 index 000000000..66d333c53 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassResult.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PKShareSecureElementPassResult/**/ implements ValuedEnum { + /**/ + Canceled(0L), + Shared(1L), + Failed(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PKShareSecureElementPassResult/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKShareSecureElementPassResult/**/ valueOf(long n) { + for (/**/PKShareSecureElementPassResult/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKShareSecureElementPassResult/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewController.java new file mode 100644 index 000000000..9eef82d28 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewController.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKShareSecureElementPassViewController/**/ + extends /**/UIViewController/**/ + /**//**/ { + + /**/public static class PKShareSecureElementPassViewControllerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKShareSecureElementPassViewController.class); }/**/ + /**//**/ + /**/ + protected PKShareSecureElementPassViewController() {} + protected PKShareSecureElementPassViewController(Handle h, long handle) { super(h, handle); } + protected PKShareSecureElementPassViewController(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSecureElementPass:delegate:") + public PKShareSecureElementPassViewController(PKSecureElementPass pass, PKShareSecureElementPassViewControllerDelegate delegate) { super((SkipInit) null); initObject(init(pass, delegate)); } + @Method(selector = "initWithNibName:bundle:") + public PKShareSecureElementPassViewController(String nibNameOrNil, NSBundle nibBundleOrNil) { super(nibNameOrNil, nibBundleOrNil); } + @Method(selector = "initWithCoder:") + public PKShareSecureElementPassViewController(NSCoder coder) { super(coder); } + /**/ + /**/ + @Property(selector = "delegate") + public native PKShareSecureElementPassViewControllerDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(PKShareSecureElementPassViewControllerDelegate v); + @Property(selector = "promptToShareURL") + public native boolean isPromptToShareURL(); + @Property(selector = "setPromptToShareURL:") + public native void setPromptToShareURL(boolean v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSecureElementPass:delegate:") + protected native @Pointer long init(PKSecureElementPass pass, PKShareSecureElementPassViewControllerDelegate delegate); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegate.java new file mode 100644 index 000000000..0b889da41 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegate.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/PKShareSecureElementPassViewControllerDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "shareSecureElementPassViewController:didFinishWithResult:") + void didFinish(PKShareSecureElementPassViewController controller, PKShareSecureElementPassResult result); + @Method(selector = "shareSecureElementPassViewController:didCreateShareURL:activationCode:") + void didCreateShareURL(PKShareSecureElementPassViewController controller, NSURL universalShareURL, String activationCode); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegateAdapter.java new file mode 100644 index 000000000..1c8a3be7b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareSecureElementPassViewControllerDelegateAdapter.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/PKShareSecureElementPassViewControllerDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements PKShareSecureElementPassViewControllerDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("shareSecureElementPassViewController:didFinishWithResult:") + public void didFinish(PKShareSecureElementPassViewController controller, PKShareSecureElementPassResult result) {} + @NotImplemented("shareSecureElementPassViewController:didCreateShareURL:activationCode:") + public void didCreateShareURL(PKShareSecureElementPassViewController controller, NSURL universalShareURL, String activationCode) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadata.java index 242ebf7d5..14b88594d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadata.java @@ -52,53 +52,150 @@ public PKShareablePassMetadata() {} protected PKShareablePassMetadata(Handle h, long handle) { super(h, handle); } protected PKShareablePassMetadata(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:passPreviewMetadata: + */ + @Deprecated @Method(selector = "initWithProvisioningCredentialIdentifier:cardConfigurationIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:") public PKShareablePassMetadata(String credentialIdentifier, String cardConfigurationIdentifier, String sharingInstanceIdentifier, CGImage passThumbnailImage, String ownerDisplayName, String localizedDescription) { super((SkipInit) null); initObject(init(credentialIdentifier, cardConfigurationIdentifier, sharingInstanceIdentifier, passThumbnailImage, ownerDisplayName, localizedDescription)); } /** * @since Available in iOS 15.0 and later. + * @deprecated Deprecated in iOS 16.0. Use initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:passPreviewMetadata: */ + @Deprecated @Method(selector = "initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice:") public PKShareablePassMetadata(String credentialIdentifier, String sharingInstanceIdentifier, CGImage passThumbnailImage, String ownerDisplayName, String localizedDescription, String accountHash, String templateIdentifier, String relyingPartyIdentifier, boolean requiresUnifiedAccessCapableDevice) { super((SkipInit) null); initObject(init(credentialIdentifier, sharingInstanceIdentifier, passThumbnailImage, ownerDisplayName, localizedDescription, accountHash, templateIdentifier, relyingPartyIdentifier, requiresUnifiedAccessCapableDevice)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:preview:") + public static PKShareablePassMetadata createUsingCardTemplateIdentifier(String credentialIdentifier, String sharingInstanceIdentifier, String templateIdentifier, PKShareablePassMetadataPreview preview) { + PKShareablePassMetadata res = new PKShareablePassMetadata((SkipInit) null); + res.initObject(res.createUsingCardTemplateIdentifier0(credentialIdentifier, sharingInstanceIdentifier, templateIdentifier, preview)); + return res; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:preview:") + public static PKShareablePassMetadata createUsingCardConfigurationIdentifier0(String credentialIdentifier, String sharingInstanceIdentifier, String templateIdentifier, PKShareablePassMetadataPreview preview) { + PKShareablePassMetadata res = new PKShareablePassMetadata((SkipInit) null); + res.initObject(res.createUsingcardConfigurationIdentifier0(credentialIdentifier, sharingInstanceIdentifier, templateIdentifier, preview)); + return res; + } /**/ /**/ @Property(selector = "credentialIdentifier") public native String getCredentialIdentifier(); - @Property(selector = "cardConfigurationIdentifier") - public native String getCardConfigurationIdentifier(); @Property(selector = "sharingInstanceIdentifier") public native String getSharingInstanceIdentifier(); /** * @since Available in iOS 15.0 and later. + * @deprecated Deprecated in iOS 16.0. Use cardTemplateIdentifier */ - @Property(selector = "accountHash") - public native String getAccountHash(); - /** - * @since Available in iOS 15.0 and later. - */ + @Deprecated @Property(selector = "templateIdentifier") public native String getTemplateIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "cardTemplateIdentifier") + public native String getCardTemplateIdentifier(); + @Property(selector = "cardConfigurationIdentifier") + public native String getCardConfigurationIdentifier(); /** * @since Available in iOS 15.0 and later. */ - @Property(selector = "relyingPartyIdentifier") - public native String getRelyingPartyIdentifier(); @Property(selector = "requiresUnifiedAccessCapableDevice") public native boolean requiresUnifiedAccessCapableDevice(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "setRequiresUnifiedAccessCapableDevice:") + public native void setRequiresUnifiedAccessCapableDevice(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "serverEnvironmentIdentifier") + public native String getServerEnvironmentIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setServerEnvironmentIdentifier:") + public native void setServerEnvironmentIdentifier(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preview") + public native PKShareablePassMetadataPreview getPreview(); + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use preview.passThumbnailImage + */ + @Deprecated @Property(selector = "passThumbnailImage") public native CGImage getPassThumbnailImage(); + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use preview.localizedDescription + */ + @Deprecated @Property(selector = "localizedDescription") public native String getLocalizedDescription(); + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use preview.ownerDisplayName + */ + @Deprecated @Property(selector = "ownerDisplayName") public native String getOwnerDisplayName(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "accountHash") + public native String getAccountHash(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "setAccountHash:") + public native void setAccountHash(String v); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "relyingPartyIdentifier") + public native String getRelyingPartyIdentifier(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "setRelyingPartyIdentifier:") + public native void setRelyingPartyIdentifier(String v); /**/ /**//**/ /**/ + /** + * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:passPreviewMetadata: + */ + @Deprecated @Method(selector = "initWithProvisioningCredentialIdentifier:cardConfigurationIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:") protected native @Pointer long init(String credentialIdentifier, String cardConfigurationIdentifier, String sharingInstanceIdentifier, CGImage passThumbnailImage, String ownerDisplayName, String localizedDescription); /** * @since Available in iOS 15.0 and later. + * @deprecated Deprecated in iOS 16.0. Use initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:passPreviewMetadata: */ + @Deprecated @Method(selector = "initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice:") protected native @Pointer long init(String credentialIdentifier, String sharingInstanceIdentifier, CGImage passThumbnailImage, String ownerDisplayName, String localizedDescription, String accountHash, String templateIdentifier, String relyingPartyIdentifier, boolean requiresUnifiedAccessCapableDevice); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:preview:") + protected native @Pointer long createUsingCardTemplateIdentifier0(String credentialIdentifier, String sharingInstanceIdentifier, String templateIdentifier, PKShareablePassMetadataPreview preview); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:preview:") + protected native @Pointer long createUsingcardConfigurationIdentifier0(String credentialIdentifier, String sharingInstanceIdentifier, String templateIdentifier, PKShareablePassMetadataPreview preview); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadataPreview.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadataPreview.java new file mode 100644 index 000000000..c5a9d7c6a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKShareablePassMetadataPreview.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKShareablePassMetadataPreview/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKShareablePassMetadataPreviewPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKShareablePassMetadataPreview.class); }/**/ + /**//**/ + /**/ + protected PKShareablePassMetadataPreview() {} + protected PKShareablePassMetadataPreview(Handle h, long handle) { super(h, handle); } + protected PKShareablePassMetadataPreview(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithPassThumbnail:localizedDescription:") + public PKShareablePassMetadataPreview(CGImage passThumbnail, String description) { super((SkipInit) null); initObject(init(passThumbnail, description)); } + @Method(selector = "initWithTemplateIdentifier:") + public PKShareablePassMetadataPreview(String templateIdentifier) { super((SkipInit) null); initObject(init(templateIdentifier)); } + /**/ + /**/ + @Property(selector = "passThumbnailImage") + public native CGImage getPassThumbnailImage(); + @Property(selector = "localizedDescription") + public native String getLocalizedDescription(); + @Property(selector = "ownerDisplayName") + public native String getOwnerDisplayName(); + @Property(selector = "setOwnerDisplayName:") + public native void setOwnerDisplayName(String v); + @Property(selector = "provisioningTemplateIdentifier") + public native String getProvisioningTemplateIdentifier(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithPassThumbnail:localizedDescription:") + protected native @Pointer long init(CGImage passThumbnail, String description); + @Method(selector = "initWithTemplateIdentifier:") + protected native @Pointer long init(String templateIdentifier); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegate.java new file mode 100644 index 000000000..991f75f55 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegate.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 15.4 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/PKVehicleConnectionDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "sessionDidChangeConnectionState:") + void sessionDidChangeConnectionState(PKVehicleConnectionSessionConnectionState newState); + @Method(selector = "sessionDidReceiveData:") + void sessionDidReceiveData(NSData data); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegateAdapter.java new file mode 100644 index 000000000..455727e97 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionDelegateAdapter.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/PKVehicleConnectionDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements PKVehicleConnectionDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("sessionDidChangeConnectionState:") + public void sessionDidChangeConnectionState(PKVehicleConnectionSessionConnectionState newState) {} + @NotImplemented("sessionDidReceiveData:") + public void sessionDidReceiveData(NSData data) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionErrorCode.java new file mode 100644 index 000000000..34a485a73 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionErrorCode.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PKVehicleConnectionErrorCode/**/ implements ValuedEnum { + /**/ + Unknown(0L), + SessionUnableToStart(1L), + SessionNotActive(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PKVehicleConnectionErrorCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKVehicleConnectionErrorCode/**/ valueOf(long n) { + for (/**/PKVehicleConnectionErrorCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKVehicleConnectionErrorCode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSession.java new file mode 100644 index 000000000..bb67a133e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSession.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 15.4 and later. + */ +/**/ +/**/@Library("PassKit") @NativeClass/**/ +/**/public/**/ class /**/PKVehicleConnectionSession/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PKVehicleConnectionSessionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PKVehicleConnectionSession.class); }/**/ + /**//**/ + /**/ + protected PKVehicleConnectionSession() {} + protected PKVehicleConnectionSession(Handle h, long handle) { super(h, handle); } + protected PKVehicleConnectionSession(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "delegate") + public native PKVehicleConnectionDelegate getDelegate(); + @Property(selector = "connectionStatus") + public native PKVehicleConnectionSessionConnectionState getConnectionStatus(); + /**/ + /**//**/ + /**/ + public boolean sendData(NSData message) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + boolean result = sendData(message, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + @Method(selector = "sendData:error:") + private native boolean sendData(NSData message, NSError.NSErrorPtr error); + @Method(selector = "invalidate") + public native void invalidate(); + @Method(selector = "sessionForPass:delegate:completion:") + public static native void sessionForPass(PKSecureElementPass pass, PKVehicleConnectionDelegate delegate, @Block VoidBlock2 completion); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSessionConnectionState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSessionConnectionState.java new file mode 100644 index 000000000..fdcd81a4a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/passkit/PKVehicleConnectionSessionConnectionState.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.passkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.addressbook.*; +import org.robovm.apple.contacts.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PKVehicleConnectionSessionConnectionState/**/ implements ValuedEnum { + /**/ + Disconnected(0L), + Connected(1L), + Connecting(2L), + FailedToConnect(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PKVehicleConnectionSessionConnectionState/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PKVehicleConnectionSessionConnectionState/**/ valueOf(long n) { + for (/**/PKVehicleConnectionSessionConnectionState/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PKVehicleConnectionSessionConnectionState/**/.class.getName()); + } +} From f685bd7119f445354cbaf0f34b67acb861b5a8c3 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 07:58:03 +0300 Subject: [PATCH 46/73] * ios16 bindings: Intents updated --- .../java/org/robovm/apple/intents/INMessage.java | 12 ++++++++++++ .../apple/intents/INSendMessageIntentResponse.java | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INMessage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INMessage.java index df5aa339d..8e08a1078 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INMessage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INMessage.java @@ -50,6 +50,11 @@ protected INMessage() {} protected INMessage(Handle h, long handle) { super(h, handle); } protected INMessage(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:groupName:messageType:serviceName:audioMessageFile:") + public INMessage(String identifier, String conversationIdentifier, String content, NSDate dateSent, INPerson sender, NSArray recipients, INSpeakableString groupName, INMessageType messageType, String serviceName, INFile audioMessageFile) { super((SkipInit) null); initObject(init(identifier, conversationIdentifier, content, dateSent, sender, recipients, groupName, messageType, serviceName, audioMessageFile)); } /** * @since Available in iOS 13.2 and later. */ @@ -101,11 +106,18 @@ protected INMessage() {} */ @Property(selector = "serviceName") public native String getServiceName(); + @Property(selector = "audioMessageFile") + public native INFile getAudioMessageFile(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:groupName:messageType:serviceName:audioMessageFile:") + protected native @Pointer long init(String identifier, String conversationIdentifier, String content, NSDate dateSent, INPerson sender, NSArray recipients, INSpeakableString groupName, INMessageType messageType, String serviceName, INFile audioMessageFile); /** * @since Available in iOS 13.2 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INSendMessageIntentResponse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INSendMessageIntentResponse.java index e7492ce5f..cc0adc5bb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INSendMessageIntentResponse.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INSendMessageIntentResponse.java @@ -56,14 +56,28 @@ protected INSendMessageIntentResponse() {} /**/ @Property(selector = "code") public native INSendMessageIntentResponseCode getCode(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "sentMessages") + public native NSArray getSentMessages(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSentMessages:") + public native void setSentMessages(NSArray v); /** * @since Available in iOS 10.3 and later. + * @deprecated Deprecated in iOS 16.0. Use sentMessages */ + @Deprecated @Property(selector = "sentMessage") public native INMessage getSentMessage(); /** * @since Available in iOS 10.3 and later. + * @deprecated Deprecated in iOS 16.0. Use sentMessages */ + @Deprecated @Property(selector = "setSentMessage:") public native void setSentMessage(INMessage v); @Property(selector = "supportsSecureCoding") From 77a9b2e127e0e09e78f556ba1c7b506635469381 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:01:10 +0300 Subject: [PATCH 47/73] * ios16 bindings: PDFKit updated --- .../cocoatouch/src/main/bro-gen/pdfkit.yaml | 10 +++ .../java/org/robovm/apple/pdfkit/PDFPage.java | 10 +++ .../pdfkit/PDFPageOverlayViewProvider.java | 63 +++++++++++++++++++ .../PDFPageOverlayViewProviderAdapter.java | 61 ++++++++++++++++++ .../java/org/robovm/apple/pdfkit/PDFView.java | 43 ++++++++++++- 5 files changed, 186 insertions(+), 1 deletion(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProvider.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProviderAdapter.java diff --git a/compiler/cocoatouch/src/main/bro-gen/pdfkit.yaml b/compiler/cocoatouch/src/main/bro-gen/pdfkit.yaml index 9e74f56d6..726c51d59 100755 --- a/compiler/cocoatouch/src/main/bro-gen/pdfkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/pdfkit.yaml @@ -111,6 +111,8 @@ classes: name: thumbnail '-selectionFromPoint:toPoint:': name: selection + '-initWithImage:options:': + name: init PDFSelection: #since 11.0 methods: '-initWithDocument:': @@ -152,6 +154,14 @@ protocols: name: willClickOnLink '-PDFViewOpenPDF:forRemoteGoToAction:': name: openPDF + PDFPageOverlayViewProvider: #since 16.0 + methods: + '-pdfView:overlayViewForPage:': + name: getOverlayView + '-pdfView:willDisplayOverlayView:forPage:': + name: willDisplayOverlayView + '-pdfView:willEndDisplayingOverlayView:forPage:': + name: willEndDisplayingOverlayView functions: # Make sure we don't miss any functions if new ones are introduced in a later version diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPage.java index 041ef59a4..b42a93e32 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPage.java @@ -50,6 +50,11 @@ public PDFPage() {} protected PDFPage(Handle h, long handle) { super(h, handle); } protected PDFPage(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithImage:options:") + public PDFPage(UIImage image, NSDictionary options) { super((SkipInit) null); initObject(init(image, options)); } /** * @since Available in iOS 11.0 and later. */ @@ -84,6 +89,11 @@ public PDFPage() {} /**/ /**//**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithImage:options:") + protected native @Pointer long init(UIImage image, NSDictionary options); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProvider.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProvider.java new file mode 100644 index 000000000..0b5d3a099 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProvider.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pdfkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/PDFPageOverlayViewProvider/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "pdfView:overlayViewForPage:") + UIView getOverlayView(PDFView view, PDFPage page); + @Method(selector = "pdfView:willDisplayOverlayView:forPage:") + void willDisplayOverlayView(PDFView pdfView, UIView overlayView, PDFPage page); + @Method(selector = "pdfView:willEndDisplayingOverlayView:forPage:") + void willEndDisplayingOverlayView(PDFView pdfView, UIView overlayView, PDFPage page); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProviderAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProviderAdapter.java new file mode 100644 index 000000000..c29606c94 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFPageOverlayViewProviderAdapter.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pdfkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/PDFPageOverlayViewProviderAdapter/**/ + extends /**/NSObject/**/ + /**/implements PDFPageOverlayViewProvider/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("pdfView:overlayViewForPage:") + public UIView getOverlayView(PDFView view, PDFPage page) { return null; } + @NotImplemented("pdfView:willDisplayOverlayView:forPage:") + public void willDisplayOverlayView(PDFView pdfView, UIView overlayView, PDFPage page) {} + @NotImplemented("pdfView:willEndDisplayingOverlayView:forPage:") + public void willEndDisplayingOverlayView(PDFView pdfView, UIView overlayView, PDFPage page) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFView.java index 85e96199e..d69e4d751 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pdfkit/PDFView.java @@ -41,7 +41,7 @@ /**/@Library("PDFKit") @NativeClass/**/ /**/public/**/ class /**/PDFView/**/ extends /**/UIView/**/ - /**/implements UIGestureRecognizerDelegate/**/ { + /**/implements UIGestureRecognizerDelegate, UIFindInteractionDelegate/**/ { /**/public static class PDFViewPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(PDFView.class); }/**/ @@ -155,6 +155,16 @@ public PDFView() {} public native PDFViewDelegate getDelegate(); @Property(selector = "setDelegate:", strongRef = true) public native void setDelegate(PDFViewDelegate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pageOverlayViewProvider") + public native PDFPageOverlayViewProvider getPageOverlayViewProvider(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPageOverlayViewProvider:", strongRef = true) + public native void setPageOverlayViewProvider(PDFPageOverlayViewProvider v); @Property(selector = "scaleFactor") public native @MachineSizedFloat double getScaleFactor(); @Property(selector = "setScaleFactor:") @@ -223,6 +233,31 @@ public PDFView() {} */ @Property(selector = "setEnableDataDetectors:") public native void setEnableDataDetectors(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isInMarkupMode") + public native boolean isInMarkupMode(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setInMarkupMode:") + public native void setInMarkupMode(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "findInteraction") + public native UIFindInteraction getFindInteraction(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isFindInteractionEnabled") + public native boolean isFindInteractionEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setFindInteractionEnabled:") + public native void setFindInteractionEnabled(boolean v); @WeaklyLinked @Property(selector = "layerClass") public static native Class getLayerClass(); @@ -336,5 +371,11 @@ public PDFView() {} */ @Method(selector = "gestureRecognizer:shouldReceiveEvent:") public native boolean shouldReceiveEvent(UIGestureRecognizer gestureRecognizer, UIEvent event); + @Method(selector = "findInteraction:sessionForView:") + public native UIFindSession getSession(UIFindInteraction interaction, UIView view); + @Method(selector = "findInteraction:didBeginFindSession:") + public native void didBeginFindSession(UIFindInteraction interaction, UIFindSession session); + @Method(selector = "findInteraction:didEndFindSession:") + public native void didEndFindSession(UIFindInteraction interaction, UIFindSession session); /**/ } From 0c93e74f0309905295b51804cc150daec881adbb Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:03:30 +0300 Subject: [PATCH 48/73] * ios16 bindings: IOSurface updated --- .../robovm/apple/iosurface/IOSurfacePropertyKey.java | 11 ++++++++++- .../org/robovm/apple/iosurface/IOSurfaceValues.java | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfacePropertyKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfacePropertyKey.java index b0ecaa51b..dbfbc6b0d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfacePropertyKey.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfacePropertyKey.java @@ -171,6 +171,10 @@ public static long toNative(List l, long flags) { * @since Available in iOS 11.0 and later. */ public static final IOSurfacePropertyKey PixelSizeCastingAllowed = new IOSurfacePropertyKey("PixelSizeCastingAllowed"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final IOSurfacePropertyKey Name = new IOSurfacePropertyKey("Name"); /** * @since Available in iOS 11.0 and later. * @deprecated Deprecated in iOS 12.0. Use IOSurfacePropertyKeyAllocSize @@ -179,7 +183,7 @@ public static long toNative(List l, long flags) { public static final IOSurfacePropertyKey AllocSizeKey = new IOSurfacePropertyKey("AllocSizeKey"); /**/ - private static /**/IOSurfacePropertyKey/**/[] values = new /**/IOSurfacePropertyKey/**/[] {/**/AllocSize, Width, Height, BytesPerRow, BytesPerElement, ElementWidth, ElementHeight, Offset, PlaneInfo, PlaneWidth, PlaneHeight, PlaneBytesPerRow, PlaneOffset, PlaneSize, PlaneBase, PlaneBytesPerElement, PlaneElementWidth, PlaneElementHeight, CacheMode, PixelFormat, PixelSizeCastingAllowed, AllocSizeKey/**/}; + private static /**/IOSurfacePropertyKey/**/[] values = new /**/IOSurfacePropertyKey/**/[] {/**/AllocSize, Width, Height, BytesPerRow, BytesPerElement, ElementWidth, ElementHeight, Offset, PlaneInfo, PlaneWidth, PlaneHeight, PlaneBytesPerRow, PlaneOffset, PlaneSize, PlaneBase, PlaneBytesPerElement, PlaneElementWidth, PlaneElementHeight, CacheMode, PixelFormat, PixelSizeCastingAllowed, Name, AllocSizeKey/**/}; /**/IOSurfacePropertyKey/**/ (String getterName) { super(Values.class, getterName); @@ -307,6 +311,11 @@ public static class Values { */ @GlobalValue(symbol="IOSurfacePropertyKeyPixelSizeCastingAllowed", optional=true) public static native CFString PixelSizeCastingAllowed(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="IOSurfacePropertyKeyName", optional=true) + public static native CFString Name(); /** * @since Available in iOS 11.0 and later. * @deprecated Deprecated in iOS 12.0. Use IOSurfacePropertyKeyAllocSize diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfaceValues.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfaceValues.java index e4bfd0b12..9fdc54e75 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfaceValues.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/iosurface/IOSurfaceValues.java @@ -173,6 +173,11 @@ */ @GlobalValue(symbol="kIOSurfacePlaneComponentBitOffsets", optional=true) public static native CFString PlaneComponentBitOffsets(); + /** + * @since Available in iOS 14.0 and later. + */ + @GlobalValue(symbol="kIOSurfaceName", optional=true) + public static native CFString Name(); /** * @since Available in iOS 11.0 and later. */ From 88dfdea82e4cb807ba645e2b8ce69c7d65182f90 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:05:05 +0300 Subject: [PATCH 49/73] * ios16 bindings: PencilKit updated --- .../cocoatouch/src/main/bro-gen/pencilkit.yaml | 2 ++ .../java/org/robovm/apple/pencilkit/PKStroke.java | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/compiler/cocoatouch/src/main/bro-gen/pencilkit.yaml b/compiler/cocoatouch/src/main/bro-gen/pencilkit.yaml index 4194fa94f..819bc4bc1 100755 --- a/compiler/cocoatouch/src/main/bro-gen/pencilkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/pencilkit.yaml @@ -63,6 +63,8 @@ classes: methods: '-initWithInk:strokePath:transform:mask:': name: init + '-initWithInk:strokePath:transform:mask:randomSeed:': + name: init PKStrokePath: #since 14.0 methods: '-initWithControlPoints:creationDate:': diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pencilkit/PKStroke.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pencilkit/PKStroke.java index 75c785df6..e927223be 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/pencilkit/PKStroke.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pencilkit/PKStroke.java @@ -52,6 +52,11 @@ public PKStroke() {} protected PKStroke(SkipInit skipInit) { super(skipInit); } @Method(selector = "initWithInk:strokePath:transform:mask:") public PKStroke(PKInk ink, PKStrokePath strokePath, @ByVal CGAffineTransform transform, UIBezierPath mask) { super((SkipInit) null); initObject(init(ink, strokePath, transform, mask)); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithInk:strokePath:transform:mask:randomSeed:") + public PKStroke(PKInk ink, PKStrokePath strokePath, @ByVal CGAffineTransform transform, UIBezierPath mask, int randomSeed) { super((SkipInit) null); initObject(init(ink, strokePath, transform, mask, randomSeed)); } /**/ /**/ @Property(selector = "ink") @@ -66,10 +71,20 @@ public PKStroke() {} public native @ByVal CGRect getRenderBounds(); @Property(selector = "maskedPathRanges") public native NSArray getMaskedPathRanges(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "randomSeed") + public native int getRandomSeed(); /**/ /**//**/ /**/ @Method(selector = "initWithInk:strokePath:transform:mask:") protected native @Pointer long init(PKInk ink, PKStrokePath strokePath, @ByVal CGAffineTransform transform, UIBezierPath mask); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithInk:strokePath:transform:mask:randomSeed:") + protected native @Pointer long init(PKInk ink, PKStrokePath strokePath, @ByVal CGAffineTransform transform, UIBezierPath mask, int randomSeed); /**/ } From 181b0819e7e663974c4580b64eec82cc83f3433b Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:16:37 +0300 Subject: [PATCH 50/73] * ios16 bindings: Photos updated --- .../cocoatouch/src/main/bro-gen/photos.yaml | 14 ++++ .../java/org/robovm/apple/photos/PHAsset.java | 5 ++ .../apple/photos/PHAssetCollection.java | 4 ++ .../photos/PHAssetCollectionSubtype.java | 4 ++ .../apple/photos/PHAssetMediaSubtype.java | 4 ++ .../robovm/apple/photos/PHAssetResource.java | 10 +++ .../org/robovm/apple/photos/PHObjectType.java | 71 ++++++++++++++++++ .../apple/photos/PHPersistentChange.java | 67 +++++++++++++++++ .../photos/PHPersistentChangeFetchResult.java | 66 +++++++++++++++++ .../apple/photos/PHPersistentChangeToken.java | 71 ++++++++++++++++++ .../PHPersistentObjectChangeDetails.java | 72 +++++++++++++++++++ .../robovm/apple/photos/PHPhotoLibrary.java | 19 +++++ .../robovm/apple/photos/PHPhotosError.java | 12 ++++ 13 files changed, 419 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHObjectType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChange.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeFetchResult.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeToken.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentObjectChangeDetails.java diff --git a/compiler/cocoatouch/src/main/bro-gen/photos.yaml b/compiler/cocoatouch/src/main/bro-gen/photos.yaml index 1905c28c6..a5e77fcb4 100755 --- a/compiler/cocoatouch/src/main/bro-gen/photos.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/photos.yaml @@ -38,6 +38,7 @@ enums: PHAssetPlaybackStyle: {} #since 11.0 PHPhotosError: {nserror: true, prefix: PHPhotosError, first: PHPhotosErrorInvalid} #since 13.0 PHAccessLevel: { } #since 14.0 + PHObjectType: {} #since 16.0 classes: PHLivePhotoRequestOptions: {} PHLivePhoto: @@ -363,6 +364,9 @@ classes: trim_after_first_colon: true '+requestAuthorizationForAccessLevel:handler:': name: requestAuthorization + '-fetchPersistentChangesSinceToken:error:': + name: fetchPersistentChangesSinceToken + throws: NSErrorException PHVideoRequestOptions: {} # DONE PHLivePhotoEditingContext: methods: @@ -379,6 +383,16 @@ classes: name: init PHCloudIdentifierMapping: {} #since 15.0 PHLocalIdentifierMapping: {} #since 15.0 + PHPersistentChange: #since 16.0 + methods: + '-changeDetailsForObjectType:error:': + name: changeDetails + PHPersistentChangeFetchResult: #since 16.0 + methods: + '-enumerateChangesWithBlock:': + name: enumerateChanges + PHPersistentChangeToken: {} #since 16.0 + PHPersistentObjectChangeDetails: {} #since 16.0 protocols: PHLivePhotoFrame: {} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAsset.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAsset.java index 6344a0d32..365d2afd8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAsset.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAsset.java @@ -91,6 +91,11 @@ public PHAsset() {} */ @Property(selector = "sourceType") public native PHAssetSourceType getSourceType(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "hasAdjustments") + public native boolean hasAdjustments(); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollection.java index 8b230ae5e..67656ea7d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollection.java @@ -80,6 +80,10 @@ public PHAssetCollection() {} public static native PHFetchResult fetchAssetCollectionsWithType(PHAssetCollectionType type, PHAssetCollectionSubtype subtype, PHFetchOptions options); @Method(selector = "fetchAssetCollectionsContainingAsset:withType:options:") public static native PHFetchResult fetchAssetCollectionsContainingAsset(PHAsset asset, PHAssetCollectionType type, PHFetchOptions options); + /** + * @deprecated Deprecated in iOS 16.0. Will be removed in a future release + */ + @Deprecated @Method(selector = "fetchAssetCollectionsWithALAssetGroupURLs:options:") public static native PHFetchResult fetchAssetCollectionsWithALAssetGroupURLs(NSArray assetGroupURLs, PHFetchOptions options); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollectionSubtype.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollectionSubtype.java index c8f108c2b..79f0ec508 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollectionSubtype.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetCollectionSubtype.java @@ -92,6 +92,10 @@ public enum /**/PHAssetCollectionSubtype/**/ implements ValuedEnum * @since Available in iOS 15.0 and later. */ SmartAlbumRAW(217L), + /** + * @since Available in iOS 15.0 and later. + */ + SmartAlbumCinematic(218L), Any(Bro.IS_32BIT ? Integer.MAX_VALUE : Long.MAX_VALUE); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetMediaSubtype.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetMediaSubtype.java index 68b3ab41a..bb969691a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetMediaSubtype.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetMediaSubtype.java @@ -61,6 +61,10 @@ public final class /**/PHAssetMediaSubtype/**/ extends Bits*/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetResource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetResource.java index f15937ab8..95820838f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetResource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHAssetResource.java @@ -76,6 +76,16 @@ public PHAssetResource() {} */ @Property(selector = "originalFilename") public native String getOriginalFilename(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pixelWidth") + public native @MachineSizedSInt long getPixelWidth(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pixelHeight") + public native @MachineSizedSInt long getPixelHeight(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHObjectType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHObjectType.java new file mode 100644 index 000000000..a2c6b8591 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHObjectType.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.photos; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.imageio.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PHObjectType/**/ implements ValuedEnum { + /**/ + Asset(1L), + AssetCollection(2L), + CollectionList(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PHObjectType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PHObjectType/**/ valueOf(long n) { + for (/**/PHObjectType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PHObjectType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChange.java new file mode 100644 index 000000000..50f0a39a2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChange.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.photos; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.imageio.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Photos") @NativeClass/**/ +/**/public/**/ class /**/PHPersistentChange/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PHPersistentChangePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PHPersistentChange.class); }/**/ + /**//**/ + /**/ + protected PHPersistentChange() {} + protected PHPersistentChange(Handle h, long handle) { super(h, handle); } + protected PHPersistentChange(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "changeToken") + public native PHPersistentChangeToken getChangeToken(); + /**/ + /**//**/ + /**/ + @Method(selector = "changeDetailsForObjectType:error:") + public native PHPersistentObjectChangeDetails changeDetails(PHObjectType objectType, NSError.NSErrorPtr error); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeFetchResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeFetchResult.java new file mode 100644 index 000000000..ee3462e7a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeFetchResult.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.photos; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.imageio.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Photos") @NativeClass/**/ +/**/public/**/ class /**/PHPersistentChangeFetchResult/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PHPersistentChangeFetchResultPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PHPersistentChangeFetchResult.class); }/**/ + /**//**/ + /**/ + protected PHPersistentChangeFetchResult() {} + protected PHPersistentChangeFetchResult(Handle h, long handle) { super(h, handle); } + protected PHPersistentChangeFetchResult(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "enumerateChangesWithBlock:") + public native void enumerateChanges(@Block VoidBlock2 block); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeToken.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeToken.java new file mode 100644 index 000000000..d79698704 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentChangeToken.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.photos; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.imageio.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Photos") @NativeClass/**/ +/**/public/**/ class /**/PHPersistentChangeToken/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class PHPersistentChangeTokenPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PHPersistentChangeToken.class); }/**/ + /**//**/ + /**/ + protected PHPersistentChangeToken() {} + protected PHPersistentChangeToken(Handle h, long handle) { super(h, handle); } + protected PHPersistentChangeToken(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public PHPersistentChangeToken(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentObjectChangeDetails.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentObjectChangeDetails.java new file mode 100644 index 000000000..7420b267e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPersistentObjectChangeDetails.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.photos; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.avfoundation.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.imageio.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Photos") @NativeClass/**/ +/**/public/**/ class /**/PHPersistentObjectChangeDetails/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PHPersistentObjectChangeDetailsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PHPersistentObjectChangeDetails.class); }/**/ + /**//**/ + /**/ + protected PHPersistentObjectChangeDetails() {} + protected PHPersistentObjectChangeDetails(Handle h, long handle) { super(h, handle); } + protected PHPersistentObjectChangeDetails(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "objectType") + public native PHObjectType getObjectType(); + @Property(selector = "insertedLocalIdentifiers") + public native NSSet getInsertedLocalIdentifiers(); + @Property(selector = "updatedLocalIdentifiers") + public native NSSet getUpdatedLocalIdentifiers(); + @Property(selector = "deletedLocalIdentifiers") + public native NSSet getDeletedLocalIdentifiers(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotoLibrary.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotoLibrary.java index 7ff6d32e8..0a348cb3d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotoLibrary.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotoLibrary.java @@ -59,6 +59,11 @@ public PHPhotoLibrary() {} */ @Property(selector = "unavailabilityReason") public native NSError getUnavailabilityReason(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "currentChangeToken") + public native PHPersistentChangeToken getCurrentChangeToken(); /**/ /**//**/ /**/ @@ -86,6 +91,20 @@ public boolean performChangesAndWait(@Block Runnable changeBlock) throws NSError public native void registerChangeObserver(PHPhotoLibraryChangeObserver observer); @Method(selector = "unregisterChangeObserver:") public native void unregisterChangeObserver(PHPhotoLibraryChangeObserver observer); + /** + * @since Available in iOS 16.0 and later. + */ + public PHPersistentChangeFetchResult fetchPersistentChangesSinceToken(PHPersistentChangeToken token) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + PHPersistentChangeFetchResult result = fetchPersistentChangesSinceToken(token, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "fetchPersistentChangesSinceToken:error:") + private native PHPersistentChangeFetchResult fetchPersistentChangesSinceToken(PHPersistentChangeToken token, NSError.NSErrorPtr error); @Method(selector = "sharedPhotoLibrary") public static native PHPhotoLibrary getSharedPhotoLibrary(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotosError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotosError.java index 1ea7baa27..f74bc0858 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotosError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photos/PHPhotosError.java @@ -69,6 +69,10 @@ public enum /**/PHPhotosError/**/ implements NSErrorCode { * @since Available in iOS 14.0 and later. */ NetworkAccessRequired(3164L), + /** + * @since Available in iOS 16.0 and later. + */ + NetworkError(3169L), /** * @since Available in iOS 15.0 and later. */ @@ -113,6 +117,14 @@ public enum /**/PHPhotosError/**/ implements NSErrorCode { * @since Available in iOS 15.4 and later. */ LibraryInFileProviderSyncRoot(5423L), + /** + * @since Available in iOS 16.0 and later. + */ + PersistentChangeTokenExpired(3105L), + /** + * @since Available in iOS 16.0 and later. + */ + PersistentChangeDetailsUnavailable(3210L), /** * @since Available in iOS 13.0 and later. * @deprecated Deprecated in iOS 15.0. Use PHPhotosErrorInternalError From 69b061b154c181942f1a94d70b3981129d550fc0 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:16:54 +0300 Subject: [PATCH 51/73] * ios16 bindings: LocalAuthentication updated --- .../src/main/bro-gen/localauthentication.yaml | 57 ++++++++++++++- .../LAAuthenticationRequirement.java | 66 +++++++++++++++++ .../LABiometryFallbackRequirement.java | 62 ++++++++++++++++ .../localauthentication/LAPersistedRight.java | 64 ++++++++++++++++ .../localauthentication/LAPrivateKey.java | 71 ++++++++++++++++++ .../localauthentication/LAPublicKey.java | 68 +++++++++++++++++ .../apple/localauthentication/LARight.java | 73 +++++++++++++++++++ .../localauthentication/LARightState.java | 66 +++++++++++++++++ .../localauthentication/LARightStore.java | 71 ++++++++++++++++++ .../apple/localauthentication/LASecret.java | 60 +++++++++++++++ 10 files changed, 655 insertions(+), 3 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAAuthenticationRequirement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LABiometryFallbackRequirement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPersistedRight.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPrivateKey.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPublicKey.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARight.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightStore.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LASecret.java diff --git a/compiler/cocoatouch/src/main/bro-gen/localauthentication.yaml b/compiler/cocoatouch/src/main/bro-gen/localauthentication.yaml index 9c8d8ef22..4ba1d647f 100755 --- a/compiler/cocoatouch/src/main/bro-gen/localauthentication.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/localauthentication.yaml @@ -5,14 +5,15 @@ framework: LocalAuthentication clang_args: ['-x', 'objective-c'] headers: - /System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h - +private_typedefs: + '__CFString *': String enums: LAPolicy: {prefix: LAPolicy} LAError: {nserror: true, name: LAError} LAAccessControlOperation: {} LACredentialType: {prefix: LACredentialType} LABiometryType: {prefix: LABiometry} #since 11.0 - + LARightState: {} #since 16.0 classes: LAContext: # DONE methods: @@ -27,7 +28,57 @@ classes: trim_after_first_colon: true '-evaluateAccessControl:operation:localizedReason:reply:': trim_after_first_colon: true - + LAAuthenticationRequirement: #since 16.0 + methods: + '+biometryRequirementWithFallback:': + name: create + constructor: true + LABiometryFallbackRequirement: {} #since 16.0 + LAPersistedRight: {} #since 16.0 + LAPrivateKey: #since 16.0 + methods: + '-signData:secKeyAlgorithm:completion:': + name: signData + '-decryptData:secKeyAlgorithm:completion:': + name: decryptData + '-exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:': + name: exchangeKeys + LAPublicKey: #since 16.0 + methods: + '-exportBytesWithCompletion:': + name: exportBytes + '-encryptData:secKeyAlgorithm:completion:': + name: encryptData + '-verifyData:signature:secKeyAlgorithm:completion:': + name: verifyData + LARight: #since 16.0 + methods: + '-initWithRequirement:': + name: init + '-authorizeWithLocalizedReason:completion:': + name: authorizeWithLocalizedReason + '-checkCanAuthorizeWithCompletion:': + name: checkCanAuthorize + '-deauthorizeWithCompletion:': + name: deauthorize + LARightStore: #since 16.0 + methods: + '-rightForIdentifier:completion:': + name: rightForIdentifier + '-saveRight:identifier:completion:': + name: saveRight + '-saveRight:identifier:secret:completion:': + name: saveRight + '-removeRight:completion:': + name: removeRight + '-removeRightForIdentifier:completion:': + name: removeRightForIdentifier + '-removeAllRightsWithCompletion:': + name: removeAllRights + LASecret: #since 16.0 + methods: + '-loadDataWithCompletion:': + name: loadData protocols: {} functions: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAAuthenticationRequirement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAAuthenticationRequirement.java new file mode 100644 index 000000000..164190241 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAAuthenticationRequirement.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LAAuthenticationRequirement/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LAAuthenticationRequirementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LAAuthenticationRequirement.class); }/**/ + /**//**/ + /**/ + public LAAuthenticationRequirement() {} + protected LAAuthenticationRequirement(Handle h, long handle) { super(h, handle); } + protected LAAuthenticationRequirement(SkipInit skipInit) { super(skipInit); } + public LAAuthenticationRequirement(LABiometryFallbackRequirement fallback) { super((Handle) null, create(fallback)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "defaultRequirement") + public static native LAAuthenticationRequirement getDefaultRequirement(); + @Property(selector = "biometryRequirement") + public static native LAAuthenticationRequirement getBiometryRequirement(); + @Property(selector = "biometryCurrentSetRequirement") + public static native LAAuthenticationRequirement getBiometryCurrentSetRequirement(); + /**/ + /**//**/ + /**/ + @Method(selector = "biometryRequirementWithFallback:") + protected static native @Pointer long create(LABiometryFallbackRequirement fallback); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LABiometryFallbackRequirement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LABiometryFallbackRequirement.java new file mode 100644 index 000000000..1bb86bbd7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LABiometryFallbackRequirement.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LABiometryFallbackRequirement/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LABiometryFallbackRequirementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LABiometryFallbackRequirement.class); }/**/ + /**//**/ + /**/ + public LABiometryFallbackRequirement() {} + protected LABiometryFallbackRequirement(Handle h, long handle) { super(h, handle); } + protected LABiometryFallbackRequirement(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "defaultRequirement") + public static native LABiometryFallbackRequirement getDefaultRequirement(); + @Property(selector = "devicePasscodeRequirement") + public static native LABiometryFallbackRequirement getDevicePasscodeRequirement(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPersistedRight.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPersistedRight.java new file mode 100644 index 000000000..b6975dd5a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPersistedRight.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LAPersistedRight/**/ + extends /**/LARight/**/ + /**//**/ { + + /**/public static class LAPersistedRightPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LAPersistedRight.class); }/**/ + /**//**/ + /**/ + protected LAPersistedRight() {} + protected LAPersistedRight(Handle h, long handle) { super(h, handle); } + protected LAPersistedRight(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithRequirement:") + public LAPersistedRight(LAAuthenticationRequirement requirement) { super(requirement); } + /**/ + /**/ + @Property(selector = "key") + public native LAPrivateKey getKey(); + @Property(selector = "secret") + public native LASecret getSecret(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPrivateKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPrivateKey.java new file mode 100644 index 000000000..b6126dc5a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPrivateKey.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LAPrivateKey/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LAPrivateKeyPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LAPrivateKey.class); }/**/ + /**//**/ + /**/ + protected LAPrivateKey() {} + protected LAPrivateKey(Handle h, long handle) { super(h, handle); } + protected LAPrivateKey(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "publicKey") + public native LAPublicKey getPublicKey(); + /**/ + /**//**/ + /**/ + @Method(selector = "signData:secKeyAlgorithm:completion:") + public native void signData(NSData data, String algorithm, @Block VoidBlock2 handler); + @Method(selector = "canSignUsingSecKeyAlgorithm:") + public native boolean canSignUsingSecKeyAlgorithm(String algorithm); + @Method(selector = "decryptData:secKeyAlgorithm:completion:") + public native void decryptData(NSData data, String algorithm, @Block VoidBlock2 handler); + @Method(selector = "canDecryptUsingSecKeyAlgorithm:") + public native boolean canDecryptUsingSecKeyAlgorithm(String algorithm); + @Method(selector = "exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:") + public native void exchangeKeys(NSData publicKey, String algorithm, NSDictionary parameters, @Block VoidBlock2 handler); + @Method(selector = "canExchangeKeysUsingSecKeyAlgorithm:") + public native boolean canExchangeKeysUsingSecKeyAlgorithm(String algorithm); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPublicKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPublicKey.java new file mode 100644 index 000000000..8c0f6defd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LAPublicKey.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LAPublicKey/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LAPublicKeyPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LAPublicKey.class); }/**/ + /**//**/ + /**/ + protected LAPublicKey() {} + protected LAPublicKey(Handle h, long handle) { super(h, handle); } + protected LAPublicKey(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "exportBytesWithCompletion:") + public native void exportBytes(@Block VoidBlock2 handler); + @Method(selector = "encryptData:secKeyAlgorithm:completion:") + public native void encryptData(NSData data, String algorithm, @Block VoidBlock2 handler); + @Method(selector = "canEncryptUsingSecKeyAlgorithm:") + public native boolean canEncryptUsingSecKeyAlgorithm(String algorithm); + @Method(selector = "verifyData:signature:secKeyAlgorithm:completion:") + public native void verifyData(NSData signedData, NSData signature, String algorithm, @Block VoidBlock1 handler); + @Method(selector = "canVerifyUsingSecKeyAlgorithm:") + public native boolean canVerifyUsingSecKeyAlgorithm(String algorithm); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARight.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARight.java new file mode 100644 index 000000000..4ec18b58a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARight.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LARight/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LARightPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LARight.class); }/**/ + /**//**/ + /**/ + public LARight() {} + protected LARight(Handle h, long handle) { super(h, handle); } + protected LARight(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithRequirement:") + public LARight(LAAuthenticationRequirement requirement) { super((SkipInit) null); initObject(init(requirement)); } + /**/ + /**/ + @Property(selector = "state") + public native LARightState getState(); + @Property(selector = "tag") + public native @MachineSizedSInt long getTag(); + @Property(selector = "setTag:") + public native void setTag(@MachineSizedSInt long v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithRequirement:") + protected native @Pointer long init(LAAuthenticationRequirement requirement); + @Method(selector = "authorizeWithLocalizedReason:completion:") + public native void authorizeWithLocalizedReason(String localizedReason, @Block VoidBlock1 handler); + @Method(selector = "checkCanAuthorizeWithCompletion:") + public native void checkCanAuthorize(@Block VoidBlock1 handler); + @Method(selector = "deauthorizeWithCompletion:") + public native void deauthorize(@Block Runnable handler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightState.java new file mode 100644 index 000000000..de81904af --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightState.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/LARightState/**/ implements ValuedEnum { + /**/ + Unknown(0L), + Authorizing(1L), + Authorized(2L), + NotAuthorized(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/LARightState/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/LARightState/**/ valueOf(long n) { + for (/**/LARightState/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/LARightState/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightStore.java new file mode 100644 index 000000000..e81cd6b94 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LARightStore.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LARightStore/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LARightStorePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LARightStore.class); }/**/ + /**//**/ + /**/ + protected LARightStore() {} + protected LARightStore(Handle h, long handle) { super(h, handle); } + protected LARightStore(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "sharedStore") + public static native LARightStore getSharedStore(); + /**/ + /**//**/ + /**/ + @Method(selector = "rightForIdentifier:completion:") + public native void rightForIdentifier(String identifier, @Block VoidBlock2 handler); + @Method(selector = "saveRight:identifier:completion:") + public native void saveRight(LARight right, String identifier, @Block VoidBlock2 handler); + @Method(selector = "saveRight:identifier:secret:completion:") + public native void saveRight(LARight right, String identifier, NSData secret, @Block VoidBlock2 handler); + @Method(selector = "removeRight:completion:") + public native void removeRight(LAPersistedRight right, @Block VoidBlock1 handler); + @Method(selector = "removeRightForIdentifier:completion:") + public native void removeRightForIdentifier(String identifier, @Block VoidBlock1 handler); + @Method(selector = "removeAllRightsWithCompletion:") + public native void removeAllRights(@Block VoidBlock1 handler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LASecret.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LASecret.java new file mode 100644 index 000000000..7ce05da03 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/localauthentication/LASecret.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.localauthentication; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.security.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("LocalAuthentication") @NativeClass/**/ +/**/public/**/ class /**/LASecret/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class LASecretPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(LASecret.class); }/**/ + /**//**/ + /**/ + protected LASecret() {} + protected LASecret(Handle h, long handle) { super(h, handle); } + protected LASecret(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "loadDataWithCompletion:") + public native void loadData(@Block VoidBlock2 handler); + /**/ +} From ee201cadf3c4ba712013ede4699be3f20cbc4959 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:24:06 +0300 Subject: [PATCH 52/73] * ios16 bindings: MapKit updated --- .../cocoatouch/src/main/bro-gen/mapkit.yaml | 62 +++++++++++- .../apple/mapkit/MKDirectionsRequest.java | 20 ++++ .../mapkit/MKDirectionsRoutePreference.java | 66 +++++++++++++ .../mapkit/MKHybridMapConfiguration.java | 75 ++++++++++++++ .../org/robovm/apple/mapkit/MKIconStyle.java | 66 +++++++++++++ .../mapkit/MKImageryMapConfiguration.java | 67 +++++++++++++ .../mapkit/MKLookAroundBadgePosition.java | 69 +++++++++++++ .../apple/mapkit/MKLookAroundScene.java | 63 ++++++++++++ .../mapkit/MKLookAroundSceneRequest.java | 81 +++++++++++++++ .../apple/mapkit/MKLookAroundSnapshot.java | 64 ++++++++++++ .../mapkit/MKLookAroundSnapshotOptions.java | 74 ++++++++++++++ .../apple/mapkit/MKLookAroundSnapshotter.java | 71 +++++++++++++ .../mapkit/MKLookAroundViewController.java | 99 +++++++++++++++++++ .../MKLookAroundViewControllerDelegate.java | 71 +++++++++++++ ...okAroundViewControllerDelegateAdapter.java | 69 +++++++++++++ .../org/robovm/apple/mapkit/MKMapCamera.java | 9 ++ .../apple/mapkit/MKMapConfiguration.java | 73 ++++++++++++++ .../apple/mapkit/MKMapElevationStyle.java | 66 +++++++++++++ .../apple/mapkit/MKMapFeatureAnnotation.java | 76 ++++++++++++++ .../apple/mapkit/MKMapFeatureOptions.java | 70 +++++++++++++ .../robovm/apple/mapkit/MKMapFeatureType.java | 69 +++++++++++++ .../robovm/apple/mapkit/MKMapItemRequest.java | 75 ++++++++++++++ .../org/robovm/apple/mapkit/MKMapView.java | 44 +++++++++ .../apple/mapkit/MKMapViewDelegate.java | 10 ++ .../mapkit/MKMapViewDelegateAdapter.java | 10 ++ .../apple/mapkit/MKOverlayRenderer.java | 10 ++ .../apple/mapkit/MKPinAnnotationView.java | 2 +- .../java/org/robovm/apple/mapkit/MKRoute.java | 10 ++ .../mapkit/MKStandardMapConfiguration.java | 87 ++++++++++++++++ .../mapkit/MKStandardMapEmphasisStyle.java | 66 +++++++++++++ .../mapkit/MKUserTrackingBarButtonItem.java | 15 +++ 31 files changed, 1706 insertions(+), 3 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRoutePreference.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKHybridMapConfiguration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKIconStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKImageryMapConfiguration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundBadgePosition.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundScene.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSceneRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshot.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewController.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapConfiguration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapElevationStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureAnnotation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapItemRequest.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapConfiguration.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapEmphasisStyle.java diff --git a/compiler/cocoatouch/src/main/bro-gen/mapkit.yaml b/compiler/cocoatouch/src/main/bro-gen/mapkit.yaml index 042fdf41c..ec74d46ca 100755 --- a/compiler/cocoatouch/src/main/bro-gen/mapkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/mapkit.yaml @@ -25,7 +25,12 @@ enums: MKScaleViewAlignment: {} #since 11.0 MKLocalSearchResultType: {} #since 13.0 MKLocalSearchCompleterResultType: {} #since 13.0 - + MKMapFeatureType: {} #since 16.0 + MKMapFeatureOptions: {prefix: MKMapFeatureOption} #since 16.0 + MKDirectionsRoutePreference: {} + MKMapElevationStyle: {} + MKStandardMapEmphasisStyle: {} + MKLookAroundBadgePosition: {} #since 16.0 typed_enums: MKPointOfInterestCategory: enum: MKPointOfInterestCategory @@ -152,6 +157,9 @@ classes: '+cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:': name: create constructor: true + '+cameraLookingAtMapItem:forViewSize:allowPitch:': + name: create + constructor: true MKMapItem: # DONE properties: 'isCurrentLocation': @@ -585,6 +593,52 @@ classes: '-initWithCoordinateRegion:': name: init MKUserLocationView: {} #since 14.0 + MKHybridMapConfiguration: #since 16.0 + methods: + '-initWithElevationStyle:': + name: init + MKIconStyle: {} #since 16.0 + MKImageryMapConfiguration: #since 16.0 + methods: + '-initWithElevationStyle:': + name: init + MKLookAroundScene: {} #since 16.0 + MKLookAroundSceneRequest: #since 16.0 + methods: + '-initWithCoordinate:': + name: init + '-initWithMapItem:': + name: init + '-getSceneWithCompletionHandler:': + name: getScene + MKLookAroundSnapshot: {} #since 16.0 + MKLookAroundSnapshotOptions: {} #since 16.0 + MKLookAroundSnapshotter: #since 16.0 + methods: + '-initWithScene:options:': + name: init + '-getSnapshotWithCompletionHandler:': + name: getSnapshot + MKLookAroundViewController: #since 16.0 + methods: + '-initWithScene:': + name: init + MKMapConfiguration: {} #since 16.0 + MKMapFeatureAnnotation: {} #since 16.0 + MKMapItemRequest: #since 16.0 + methods: + '-initWithMapFeatureAnnotation:': + name: init + '-getMapItemWithCompletionHandler:': + name: getMapItem + MKStandardMapConfiguration: #since 16.0 + methods: + '-initWithElevationStyle:': + name: init + '-initWithElevationStyle:emphasisStyle:': + name: init + '-initWithEmphasisStyle:': + name: init protocols: MKAnnotation: {} # DONE MKMapViewDelegate: # DONE @@ -644,6 +698,10 @@ protocols: type: NSArray '-mapView:clusterAnnotationForMemberAnnotations:': name: getClusterAnnotationForMemberAnnotations + '-mapView:didSelectAnnotation:': + name: didSelectAnnotation + '-mapView:didDeselectAnnotation:': + name: didDeselectAnnotation MKOverlay: # DONE methods: '-intersectsMapRect:': @@ -656,7 +714,7 @@ protocols: name: didFailWithError MKGeoJSONObject: #since 13.0 skip_adapter: true - + MKLookAroundViewControllerDelegate: {} #since 16.0 functions: # MKCoordinateRegion MKCoordinateRegionMake: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRequest.java index 8b758976f..60a914026 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRequest.java @@ -78,6 +78,26 @@ public MKDirectionsRequest() {} public native NSDate getArrivalDate(); @Property(selector = "setArrivalDate:") public native void setArrivalDate(NSDate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "tollPreference") + public native MKDirectionsRoutePreference getTollPreference(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTollPreference:") + public native void setTollPreference(MKDirectionsRoutePreference v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "highwayPreference") + public native MKDirectionsRoutePreference getHighwayPreference(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setHighwayPreference:") + public native void setHighwayPreference(MKDirectionsRoutePreference v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRoutePreference.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRoutePreference.java new file mode 100644 index 000000000..489d6f94a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKDirectionsRoutePreference.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MKDirectionsRoutePreference/**/ implements ValuedEnum { + /**/ + Any(0L), + Avoid(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MKDirectionsRoutePreference/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MKDirectionsRoutePreference/**/ valueOf(long n) { + for (/**/MKDirectionsRoutePreference/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MKDirectionsRoutePreference/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKHybridMapConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKHybridMapConfiguration.java new file mode 100644 index 000000000..84e2de048 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKHybridMapConfiguration.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKHybridMapConfiguration/**/ + extends /**/MKMapConfiguration/**/ + /**//**/ { + + /**/public static class MKHybridMapConfigurationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKHybridMapConfiguration.class); }/**/ + /**//**/ + /**/ + public MKHybridMapConfiguration() {} + protected MKHybridMapConfiguration(Handle h, long handle) { super(h, handle); } + protected MKHybridMapConfiguration(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithElevationStyle:") + public MKHybridMapConfiguration(MKMapElevationStyle elevationStyle) { super((SkipInit) null); initObject(init(elevationStyle)); } + /**/ + /**/ + @Property(selector = "pointOfInterestFilter") + public native MKPointOfInterestFilter getPointOfInterestFilter(); + @Property(selector = "setPointOfInterestFilter:") + public native void setPointOfInterestFilter(MKPointOfInterestFilter v); + @Property(selector = "showsTraffic") + public native boolean showsTraffic(); + @Property(selector = "setShowsTraffic:") + public native void setShowsTraffic(boolean v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithElevationStyle:") + protected native @Pointer long init(MKMapElevationStyle elevationStyle); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKIconStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKIconStyle.java new file mode 100644 index 000000000..ab85ca07b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKIconStyle.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKIconStyle/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKIconStylePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKIconStyle.class); }/**/ + /**//**/ + /**/ + protected MKIconStyle() {} + protected MKIconStyle(Handle h, long handle) { super(h, handle); } + protected MKIconStyle(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "backgroundColor") + public native UIColor getBackgroundColor(); + @Property(selector = "image") + public native UIImage getImage(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKImageryMapConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKImageryMapConfiguration.java new file mode 100644 index 000000000..8c46ebb48 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKImageryMapConfiguration.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKImageryMapConfiguration/**/ + extends /**/MKMapConfiguration/**/ + /**//**/ { + + /**/public static class MKImageryMapConfigurationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKImageryMapConfiguration.class); }/**/ + /**//**/ + /**/ + public MKImageryMapConfiguration() {} + protected MKImageryMapConfiguration(Handle h, long handle) { super(h, handle); } + protected MKImageryMapConfiguration(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithElevationStyle:") + public MKImageryMapConfiguration(MKMapElevationStyle elevationStyle) { super((SkipInit) null); initObject(init(elevationStyle)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithElevationStyle:") + protected native @Pointer long init(MKMapElevationStyle elevationStyle); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundBadgePosition.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundBadgePosition.java new file mode 100644 index 000000000..953569a25 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundBadgePosition.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MKLookAroundBadgePosition/**/ implements ValuedEnum { + /**/ + TopLeading(0L), + TopTrailing(1L), + BottomTrailing(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MKLookAroundBadgePosition/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MKLookAroundBadgePosition/**/ valueOf(long n) { + for (/**/MKLookAroundBadgePosition/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MKLookAroundBadgePosition/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundScene.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundScene.java new file mode 100644 index 000000000..78b53e353 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundScene.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKLookAroundScene/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKLookAroundScenePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKLookAroundScene.class); }/**/ + /**//**/ + /**/ + protected MKLookAroundScene() {} + protected MKLookAroundScene(Handle h, long handle) { super(h, handle); } + protected MKLookAroundScene(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSceneRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSceneRequest.java new file mode 100644 index 000000000..d17869135 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSceneRequest.java @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKLookAroundSceneRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKLookAroundSceneRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKLookAroundSceneRequest.class); }/**/ + /**//**/ + /**/ + protected MKLookAroundSceneRequest() {} + protected MKLookAroundSceneRequest(Handle h, long handle) { super(h, handle); } + protected MKLookAroundSceneRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoordinate:") + public MKLookAroundSceneRequest(@ByVal CLLocationCoordinate2D coordinate) { super((SkipInit) null); initObject(init(coordinate)); } + @Method(selector = "initWithMapItem:") + public MKLookAroundSceneRequest(MKMapItem mapItem) { super((SkipInit) null); initObject(init(mapItem)); } + /**/ + /**/ + @Property(selector = "coordinate") + public native @ByVal CLLocationCoordinate2D getCoordinate(); + @Property(selector = "mapItem") + public native MKMapItem getMapItem(); + @Property(selector = "isCancelled") + public native boolean isCancelled(); + @Property(selector = "isLoading") + public native boolean isLoading(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithCoordinate:") + protected native @Pointer long init(@ByVal CLLocationCoordinate2D coordinate); + @Method(selector = "initWithMapItem:") + protected native @Pointer long init(MKMapItem mapItem); + @Method(selector = "getSceneWithCompletionHandler:") + public native void getScene(@Block VoidBlock2 completionHandler); + @Method(selector = "cancel") + public native void cancel(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshot.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshot.java new file mode 100644 index 000000000..ca28979b6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshot.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKLookAroundSnapshot/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKLookAroundSnapshotPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKLookAroundSnapshot.class); }/**/ + /**//**/ + /**/ + public MKLookAroundSnapshot() {} + protected MKLookAroundSnapshot(Handle h, long handle) { super(h, handle); } + protected MKLookAroundSnapshot(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "image") + public native UIImage getImage(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotOptions.java new file mode 100644 index 000000000..8b06b0d4a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotOptions.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKLookAroundSnapshotOptions/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKLookAroundSnapshotOptionsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKLookAroundSnapshotOptions.class); }/**/ + /**//**/ + /**/ + public MKLookAroundSnapshotOptions() {} + protected MKLookAroundSnapshotOptions(Handle h, long handle) { super(h, handle); } + protected MKLookAroundSnapshotOptions(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "pointOfInterestFilter") + public native MKPointOfInterestFilter getPointOfInterestFilter(); + @Property(selector = "setPointOfInterestFilter:") + public native void setPointOfInterestFilter(MKPointOfInterestFilter v); + @Property(selector = "size") + public native @ByVal CGSize getSize(); + @Property(selector = "setSize:") + public native void setSize(@ByVal CGSize v); + @Property(selector = "traitCollection") + public native UITraitCollection getTraitCollection(); + @Property(selector = "setTraitCollection:") + public native void setTraitCollection(UITraitCollection v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotter.java new file mode 100644 index 000000000..8a5d8fdcc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundSnapshotter.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKLookAroundSnapshotter/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKLookAroundSnapshotterPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKLookAroundSnapshotter.class); }/**/ + /**//**/ + /**/ + protected MKLookAroundSnapshotter() {} + protected MKLookAroundSnapshotter(Handle h, long handle) { super(h, handle); } + protected MKLookAroundSnapshotter(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithScene:options:") + public MKLookAroundSnapshotter(MKLookAroundScene scene, MKLookAroundSnapshotOptions options) { super((SkipInit) null); initObject(init(scene, options)); } + /**/ + /**/ + @Property(selector = "isLoading") + public native boolean isLoading(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithScene:options:") + protected native @Pointer long init(MKLookAroundScene scene, MKLookAroundSnapshotOptions options); + @Method(selector = "getSnapshotWithCompletionHandler:") + public native void getSnapshot(@Block VoidBlock2 completionHandler); + @Method(selector = "cancel") + public native void cancel(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewController.java new file mode 100644 index 000000000..fdc2f1ca6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewController.java @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKLookAroundViewController/**/ + extends /**/UIViewController/**/ + /**/implements NSSecureCoding, NSCoding/**/ { + + /**/public static class MKLookAroundViewControllerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKLookAroundViewController.class); }/**/ + /**//**/ + /**/ + public MKLookAroundViewController() {} + protected MKLookAroundViewController(Handle h, long handle) { super(h, handle); } + protected MKLookAroundViewController(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithScene:") + public MKLookAroundViewController(MKLookAroundScene scene) { super((SkipInit) null); initObject(init(scene)); } + @Method(selector = "initWithNibName:bundle:") + public MKLookAroundViewController(String nibNameOrNil, NSBundle nibBundleOrNil) { super((SkipInit) null); initObject(init(nibNameOrNil, nibBundleOrNil)); } + @Method(selector = "initWithCoder:") + public MKLookAroundViewController(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "delegate") + public native MKLookAroundViewControllerDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(MKLookAroundViewControllerDelegate v); + @Property(selector = "scene") + public native MKLookAroundScene getScene(); + @Property(selector = "setScene:") + public native void setScene(MKLookAroundScene v); + @Property(selector = "isNavigationEnabled") + public native boolean isNavigationEnabled(); + @Property(selector = "setNavigationEnabled:") + public native void setNavigationEnabled(boolean v); + @Property(selector = "showsRoadLabels") + public native boolean showsRoadLabels(); + @Property(selector = "setShowsRoadLabels:") + public native void setShowsRoadLabels(boolean v); + @Property(selector = "pointOfInterestFilter") + public native MKPointOfInterestFilter getPointOfInterestFilter(); + @Property(selector = "setPointOfInterestFilter:") + public native void setPointOfInterestFilter(MKPointOfInterestFilter v); + @Property(selector = "badgePosition") + public native MKLookAroundBadgePosition getBadgePosition(); + @Property(selector = "setBadgePosition:") + public native void setBadgePosition(MKLookAroundBadgePosition v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithScene:") + protected native @Pointer long init(MKLookAroundScene scene); + @Method(selector = "initWithNibName:bundle:") + protected native @Pointer long init(String nibNameOrNil, NSBundle nibBundleOrNil); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegate.java new file mode 100644 index 000000000..b8fe995aa --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegate.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MKLookAroundViewControllerDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "lookAroundViewControllerWillUpdateScene:") + void lookAroundViewControllerWillUpdateScene(MKLookAroundViewController viewController); + @Method(selector = "lookAroundViewControllerDidUpdateScene:") + void lookAroundViewControllerDidUpdateScene(MKLookAroundViewController viewController); + @Method(selector = "lookAroundViewControllerWillPresentFullScreen:") + void lookAroundViewControllerWillPresentFullScreen(MKLookAroundViewController viewController); + @Method(selector = "lookAroundViewControllerDidPresentFullScreen:") + void lookAroundViewControllerDidPresentFullScreen(MKLookAroundViewController viewController); + @Method(selector = "lookAroundViewControllerWillDismissFullScreen:") + void lookAroundViewControllerWillDismissFullScreen(MKLookAroundViewController viewController); + @Method(selector = "lookAroundViewControllerDidDismissFullScreen:") + void lookAroundViewControllerDidDismissFullScreen(MKLookAroundViewController viewController); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegateAdapter.java new file mode 100644 index 000000000..b40037af3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKLookAroundViewControllerDelegateAdapter.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MKLookAroundViewControllerDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements MKLookAroundViewControllerDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("lookAroundViewControllerWillUpdateScene:") + public void lookAroundViewControllerWillUpdateScene(MKLookAroundViewController viewController) {} + @NotImplemented("lookAroundViewControllerDidUpdateScene:") + public void lookAroundViewControllerDidUpdateScene(MKLookAroundViewController viewController) {} + @NotImplemented("lookAroundViewControllerWillPresentFullScreen:") + public void lookAroundViewControllerWillPresentFullScreen(MKLookAroundViewController viewController) {} + @NotImplemented("lookAroundViewControllerDidPresentFullScreen:") + public void lookAroundViewControllerDidPresentFullScreen(MKLookAroundViewController viewController) {} + @NotImplemented("lookAroundViewControllerWillDismissFullScreen:") + public void lookAroundViewControllerWillDismissFullScreen(MKLookAroundViewController viewController) {} + @NotImplemented("lookAroundViewControllerDidDismissFullScreen:") + public void lookAroundViewControllerDidDismissFullScreen(MKLookAroundViewController viewController) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapCamera.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapCamera.java index 681e3d031..e1b1170e9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapCamera.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapCamera.java @@ -55,6 +55,10 @@ public MKMapCamera() {} * @since Available in iOS 9.0 and later. */ public MKMapCamera(@ByVal CLLocationCoordinate2D centerCoordinate, double distance, @MachineSizedFloat double pitch, double heading) { super((Handle) null, create(centerCoordinate, distance, pitch, heading)); retain(getHandle()); } + /** + * @since Available in iOS 16.0 and later. + */ + public MKMapCamera(MKMapItem mapItem, @ByVal CGSize viewSize, boolean allowPitch) { super((Handle) null, create(mapItem, viewSize, allowPitch)); retain(getHandle()); } @Method(selector = "initWithCoder:") public MKMapCamera(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ @@ -105,6 +109,11 @@ public MKMapCamera() {} */ @Method(selector = "cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:") protected static native @Pointer long create(@ByVal CLLocationCoordinate2D centerCoordinate, double distance, @MachineSizedFloat double pitch, double heading); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cameraLookingAtMapItem:forViewSize:allowPitch:") + protected static native @Pointer long create(MKMapItem mapItem, @ByVal CGSize viewSize, boolean allowPitch); @Method(selector = "encodeWithCoder:") public native void encode(NSCoder coder); @Method(selector = "initWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapConfiguration.java new file mode 100644 index 000000000..e12811f45 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapConfiguration.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKMapConfiguration/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class MKMapConfigurationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKMapConfiguration.class); }/**/ + /**//**/ + /**/ + protected MKMapConfiguration() {} + protected MKMapConfiguration(Handle h, long handle) { super(h, handle); } + protected MKMapConfiguration(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public MKMapConfiguration(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "elevationStyle") + public native MKMapElevationStyle getElevationStyle(); + @Property(selector = "setElevationStyle:") + public native void setElevationStyle(MKMapElevationStyle v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapElevationStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapElevationStyle.java new file mode 100644 index 000000000..4daa527f2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapElevationStyle.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MKMapElevationStyle/**/ implements ValuedEnum { + /**/ + Flat(0L), + Realistic(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MKMapElevationStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MKMapElevationStyle/**/ valueOf(long n) { + for (/**/MKMapElevationStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MKMapElevationStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureAnnotation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureAnnotation.java new file mode 100644 index 000000000..4e464e276 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureAnnotation.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKMapFeatureAnnotation/**/ + extends /**/NSObject/**/ + /**/implements MKAnnotation/**/ { + + /**/public static class MKMapFeatureAnnotationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKMapFeatureAnnotation.class); }/**/ + /**//**/ + /**/ + protected MKMapFeatureAnnotation() {} + protected MKMapFeatureAnnotation(Handle h, long handle) { super(h, handle); } + protected MKMapFeatureAnnotation(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "featureType") + public native MKMapFeatureType getFeatureType(); + @Property(selector = "iconStyle") + public native MKIconStyle getIconStyle(); + @Property(selector = "pointOfInterestCategory") + public native MKPointOfInterestCategory getPointOfInterestCategory(); + @Property(selector = "coordinate") + public native @ByVal CLLocationCoordinate2D getCoordinate(); + @Property(selector = "setCoordinate:") + public native void setCoordinate(@ByVal CLLocationCoordinate2D v); + @Property(selector = "title") + public native String getTitle(); + @Property(selector = "subtitle") + public native String getSubtitle(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureOptions.java new file mode 100644 index 000000000..d375fe024 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureOptions.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/MKMapFeatureOptions/**/ extends Bits*/MKMapFeatureOptions/**/> { + /**/ + public static final MKMapFeatureOptions None = new MKMapFeatureOptions(0L); + public static final MKMapFeatureOptions PointsOfInterest = new MKMapFeatureOptions(1L); + public static final MKMapFeatureOptions Territories = new MKMapFeatureOptions(2L); + public static final MKMapFeatureOptions PhysicalFeatures = new MKMapFeatureOptions(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/MKMapFeatureOptions/**/[] values = _values(/**/MKMapFeatureOptions/**/.class); + + public /**/MKMapFeatureOptions/**/(long value) { super(value); } + private /**/MKMapFeatureOptions/**/(long value, long mask) { super(value, mask); } + protected /**/MKMapFeatureOptions/**/ wrap(long value, long mask) { + return new /**/MKMapFeatureOptions/**/(value, mask); + } + protected /**/MKMapFeatureOptions/**/[] _values() { + return values; + } + public static /**/MKMapFeatureOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureType.java new file mode 100644 index 000000000..38a9081f4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapFeatureType.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MKMapFeatureType/**/ implements ValuedEnum { + /**/ + PointOfInterest(0L), + Territory(1L), + PhysicalFeature(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MKMapFeatureType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MKMapFeatureType/**/ valueOf(long n) { + for (/**/MKMapFeatureType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MKMapFeatureType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapItemRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapItemRequest.java new file mode 100644 index 000000000..faeca8df1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapItemRequest.java @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKMapItemRequest/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MKMapItemRequestPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKMapItemRequest.class); }/**/ + /**//**/ + /**/ + protected MKMapItemRequest() {} + protected MKMapItemRequest(Handle h, long handle) { super(h, handle); } + protected MKMapItemRequest(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithMapFeatureAnnotation:") + public MKMapItemRequest(MKMapFeatureAnnotation mapFeatureAnnotation) { super((SkipInit) null); initObject(init(mapFeatureAnnotation)); } + /**/ + /**/ + @Property(selector = "featureAnnotation") + public native MKMapFeatureAnnotation getFeatureAnnotation(); + @Property(selector = "isCancelled") + public native boolean isCancelled(); + @Property(selector = "isLoading") + public native boolean isLoading(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithMapFeatureAnnotation:") + protected native @Pointer long init(MKMapFeatureAnnotation mapFeatureAnnotation); + @Method(selector = "getMapItemWithCompletionHandler:") + public native void getMapItem(@Block VoidBlock2 completionHandler); + @Method(selector = "cancel") + public native void cancel(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapView.java index b1ef37fa9..319cf6071 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapView.java @@ -60,10 +60,38 @@ public MKMapView() {} public native MKMapViewDelegate getDelegate(); @Property(selector = "setDelegate:", strongRef = true) public native void setDelegate(MKMapViewDelegate v); + /** + * @deprecated Use respective MKMapConfiguration + */ + @Deprecated @Property(selector = "mapType") public native MKMapType getMapType(); + /** + * @deprecated Use respective MKMapConfiguration + */ + @Deprecated @Property(selector = "setMapType:") public native void setMapType(MKMapType v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "preferredConfiguration") + public native MKMapConfiguration getPreferredConfiguration(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPreferredConfiguration:") + public native void setPreferredConfiguration(MKMapConfiguration v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "selectableMapFeatures") + public native MKMapFeatureOptions getSelectableMapFeatures(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSelectableMapFeatures:") + public native void setSelectableMapFeatures(MKMapFeatureOptions v); @Property(selector = "region") public native @ByVal MKCoordinateRegion getRegion(); @Property(selector = "setRegion:") @@ -138,12 +166,16 @@ public MKMapView() {} public native void setShowsScale(boolean v); /** * @since Available in iOS 13.0 and later. + * @deprecated Use pointOfInterestFilter on respective MKMapConfiguration */ + @Deprecated @Property(selector = "pointOfInterestFilter") public native MKPointOfInterestFilter getPointOfInterestFilter(); /** * @since Available in iOS 13.0 and later. + * @deprecated Use pointOfInterestFilter on respective MKMapConfiguration */ + @Deprecated @Property(selector = "setPointOfInterestFilter:") public native void setPointOfInterestFilter(MKPointOfInterestFilter v); /** @@ -158,18 +190,30 @@ public MKMapView() {} @Deprecated @Property(selector = "setShowsPointsOfInterest:") public native void setShowsPointsOfInterest(boolean v); + /** + * @deprecated None + */ + @Deprecated @Property(selector = "showsBuildings") public native boolean showsBuildings(); + /** + * @deprecated None + */ + @Deprecated @Property(selector = "setShowsBuildings:") public native void setShowsBuildings(boolean v); /** * @since Available in iOS 9.0 and later. + * @deprecated Use showsTraffic on respective MKMapConfiguration */ + @Deprecated @Property(selector = "showsTraffic") public native boolean showsTraffic(); /** * @since Available in iOS 9.0 and later. + * @deprecated Use showsTraffic on respective MKMapConfiguration */ + @Deprecated @Property(selector = "setShowsTraffic:") public native void setShowsTraffic(boolean v); @Property(selector = "showsUserLocation") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegate.java index a8228b63d..5f65f5269 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegate.java @@ -80,6 +80,16 @@ void didSelectAnnotationView(MKMapView mapView, MKAnnotationView view); @Method(selector = "mapView:didDeselectAnnotationView:") void didDeselectAnnotationView(MKMapView mapView, MKAnnotationView view); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "mapView:didSelectAnnotation:") + void didSelectAnnotation(MKMapView mapView, MKAnnotation annotation); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "mapView:didDeselectAnnotation:") + void didDeselectAnnotation(MKMapView mapView, MKAnnotation annotation); @Method(selector = "mapViewWillStartLocatingUser:") void willStartLocatingUser(MKMapView mapView); @Method(selector = "mapViewDidStopLocatingUser:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegateAdapter.java index db8c788db..ccc968a39 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKMapViewDelegateAdapter.java @@ -82,6 +82,16 @@ public void calloutAccessoryControlTapped(MKMapView mapView, MKAnnotationView vi public void didSelectAnnotationView(MKMapView mapView, MKAnnotationView view) {} @NotImplemented("mapView:didDeselectAnnotationView:") public void didDeselectAnnotationView(MKMapView mapView, MKAnnotationView view) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("mapView:didSelectAnnotation:") + public void didSelectAnnotation(MKMapView mapView, MKAnnotation annotation) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("mapView:didDeselectAnnotation:") + public void didDeselectAnnotation(MKMapView mapView, MKAnnotation annotation) {} @NotImplemented("mapViewWillStartLocatingUser:") public void willStartLocatingUser(MKMapView mapView) {} @NotImplemented("mapViewDidStopLocatingUser:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKOverlayRenderer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKOverlayRenderer.java index a90107863..b253306fd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKOverlayRenderer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKOverlayRenderer.java @@ -62,6 +62,16 @@ public MKOverlayRenderer() {} public native void setAlpha(@MachineSizedFloat double v); @Property(selector = "contentScaleFactor") public native @MachineSizedFloat double getContentScaleFactor(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "blendMode") + public native CGBlendMode getBlendMode(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setBlendMode:") + public native void setBlendMode(CGBlendMode v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKPinAnnotationView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKPinAnnotationView.java index 45215c7a2..fbd2f45eb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKPinAnnotationView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKPinAnnotationView.java @@ -37,7 +37,7 @@ /**/ /** - * @deprecated Use MKMarkerAnnotationView + * @deprecated Deprecated in iOS 16.0. Use MKMarkerAnnotationView */ /**/ /**/@Library("MapKit") @NativeClass @Deprecated/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKRoute.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKRoute.java index 888f073e5..c733db81b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKRoute.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKRoute.java @@ -66,6 +66,16 @@ public MKRoute() {} public native MKPolyline getPolyline(); @Property(selector = "steps") public native NSArray getSteps(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "hasTolls") + public native boolean hasTolls(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "hasHighways") + public native boolean hasHighways(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapConfiguration.java new file mode 100644 index 000000000..bbe5930a9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapConfiguration.java @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MapKit") @NativeClass/**/ +/**/public/**/ class /**/MKStandardMapConfiguration/**/ + extends /**/MKMapConfiguration/**/ + /**//**/ { + + /**/public static class MKStandardMapConfigurationPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MKStandardMapConfiguration.class); }/**/ + /**//**/ + /**/ + public MKStandardMapConfiguration() {} + protected MKStandardMapConfiguration(Handle h, long handle) { super(h, handle); } + protected MKStandardMapConfiguration(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithElevationStyle:") + public MKStandardMapConfiguration(MKMapElevationStyle elevationStyle) { super((SkipInit) null); initObject(init(elevationStyle)); } + @Method(selector = "initWithElevationStyle:emphasisStyle:") + public MKStandardMapConfiguration(MKMapElevationStyle elevationStyle, MKStandardMapEmphasisStyle emphasisStyle) { super((SkipInit) null); initObject(init(elevationStyle, emphasisStyle)); } + @Method(selector = "initWithEmphasisStyle:") + public MKStandardMapConfiguration(MKStandardMapEmphasisStyle emphasisStyle) { super((SkipInit) null); initObject(init(emphasisStyle)); } + /**/ + /**/ + @Property(selector = "emphasisStyle") + public native MKStandardMapEmphasisStyle getEmphasisStyle(); + @Property(selector = "setEmphasisStyle:") + public native void setEmphasisStyle(MKStandardMapEmphasisStyle v); + @Property(selector = "pointOfInterestFilter") + public native MKPointOfInterestFilter getPointOfInterestFilter(); + @Property(selector = "setPointOfInterestFilter:") + public native void setPointOfInterestFilter(MKPointOfInterestFilter v); + @Property(selector = "showsTraffic") + public native boolean showsTraffic(); + @Property(selector = "setShowsTraffic:") + public native void setShowsTraffic(boolean v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithElevationStyle:") + protected native @Pointer long init(MKMapElevationStyle elevationStyle); + @Method(selector = "initWithElevationStyle:emphasisStyle:") + protected native @Pointer long init(MKMapElevationStyle elevationStyle, MKStandardMapEmphasisStyle emphasisStyle); + @Method(selector = "initWithEmphasisStyle:") + protected native @Pointer long init(MKStandardMapEmphasisStyle emphasisStyle); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapEmphasisStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapEmphasisStyle.java new file mode 100644 index 000000000..9a092ecad --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKStandardMapEmphasisStyle.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mapkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.dispatch.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MKStandardMapEmphasisStyle/**/ implements ValuedEnum { + /**/ + Default(0L), + Muted(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MKStandardMapEmphasisStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MKStandardMapEmphasisStyle/**/ valueOf(long n) { + for (/**/MKStandardMapEmphasisStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MKStandardMapEmphasisStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKUserTrackingBarButtonItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKUserTrackingBarButtonItem.java index 50dbbf42e..97499b647 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKUserTrackingBarButtonItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mapkit/MKUserTrackingBarButtonItem.java @@ -89,6 +89,21 @@ public MKUserTrackingBarButtonItem() {} */ @Method(selector = "initWithImage:menu:") public MKUserTrackingBarButtonItem(UIImage image, UIMenu menu) { super(image, menu); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithPrimaryAction:menu:") + public MKUserTrackingBarButtonItem(UIAction primaryAction, UIMenu menu) { super(primaryAction, menu); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithBarButtonSystemItem:primaryAction:menu:") + public MKUserTrackingBarButtonItem(UIBarButtonSystemItem systemItem, UIAction primaryAction, UIMenu menu) { super(systemItem, primaryAction, menu); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithTitle:image:target:action:menu:") + public MKUserTrackingBarButtonItem(String title, UIImage image, NSObject target, Selector action, UIMenu menu) { super(title, image, target, action, menu); } /**/ /**/ @Property(selector = "mapView") From db0de56a3a940be16465ebfba0debd14b02021df Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:27:52 +0300 Subject: [PATCH 53/73] * ios16 bindings: PhotosUI updated --- .../cocoatouch/src/main/bro-gen/photosui.yaml | 6 ++ .../photosui/PHLivePhotoViewDelegate.java | 5 ++ .../PHLivePhotoViewDelegateAdapter.java | 5 ++ ...rConfigurationAssetRepresentationMode.java | 9 --- .../PHPickerConfigurationSelection.java | 6 -- .../robovm/apple/photosui/PHPickerFilter.java | 55 +++++++++++++++++++ .../photosui/PHPickerViewController.java | 10 ++++ 7 files changed, 81 insertions(+), 15 deletions(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/photosui.yaml b/compiler/cocoatouch/src/main/bro-gen/photosui.yaml index 5103076ec..3a4396a4a 100755 --- a/compiler/cocoatouch/src/main/bro-gen/photosui.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/photosui.yaml @@ -34,6 +34,10 @@ classes: methods: '-initWithConfiguration:': name: init + '-deselectAssetsWithIdentifiers:': + name: deselectAssets + '-moveAssetWithIdentifier:afterAssetWithIdentifier:': + name: moveAsset protocols: PHLivePhotoViewDelegate: methods: @@ -43,6 +47,8 @@ protocols: name: didEndPlayback '-livePhotoView:canBeginPlaybackWithStyle:': name: canBeginPlayback + '-livePhotoView:extraMinimumTouchDurationForTouch:withStyle:': + name: getExtraMinimumTouchDuration PHContentEditingController: # DONE properties: 'shouldShowCancelConfirmation': diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegate.java index 7ffeb459b..9b81815f7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegate.java @@ -66,6 +66,11 @@ */ @Method(selector = "livePhotoView:didEndPlaybackWithStyle:") void didEndPlayback(PHLivePhotoView livePhotoView, PHLivePhotoViewPlaybackStyle playbackStyle); + /** + * @since Available in iOS 9.1 and later. + */ + @Method(selector = "livePhotoView:extraMinimumTouchDurationForTouch:withStyle:") + double getExtraMinimumTouchDuration(PHLivePhotoView livePhotoView, UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegateAdapter.java index f5cbbba9f..ebddbc2a5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHLivePhotoViewDelegateAdapter.java @@ -66,5 +66,10 @@ public void willBeginPlayback(PHLivePhotoView livePhotoView, PHLivePhotoViewPlay */ @NotImplemented("livePhotoView:didEndPlaybackWithStyle:") public void didEndPlayback(PHLivePhotoView livePhotoView, PHLivePhotoViewPlaybackStyle playbackStyle) {} + /** + * @since Available in iOS 9.1 and later. + */ + @NotImplemented("livePhotoView:extraMinimumTouchDurationForTouch:withStyle:") + public double getExtraMinimumTouchDuration(PHLivePhotoView livePhotoView, UITouch touch, PHLivePhotoViewPlaybackStyle playbackStyle) { return 0; } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationAssetRepresentationMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationAssetRepresentationMode.java index 3b01f8907..40ba18a2a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationAssetRepresentationMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationAssetRepresentationMode.java @@ -41,17 +41,8 @@ /**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ public enum /**/PHPickerConfigurationAssetRepresentationMode/**/ implements ValuedEnum { /**/ - /** - * @since Available in iOS 14.0 and later. - */ Automatic(0L), - /** - * @since Available in iOS 14.0 and later. - */ Current(1L), - /** - * @since Available in iOS 14.0 and later. - */ Compatible(2L); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationSelection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationSelection.java index f931b347f..ed4259dcf 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationSelection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerConfigurationSelection.java @@ -41,13 +41,7 @@ /**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ public enum /**/PHPickerConfigurationSelection/**/ implements ValuedEnum { /**/ - /** - * @since Available in iOS 14.0 and later. - */ Default(0L), - /** - * @since Available in iOS 14.0 and later. - */ Ordered(1L); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerFilter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerFilter.java index 654856dde..e1fc85172 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerFilter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerFilter.java @@ -67,13 +67,68 @@ protected PHPickerFilter() {} */ @Property(selector = "livePhotosFilter") public static native PHPickerFilter getLivePhotosFilter(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "depthEffectPhotosFilter") + public static native PHPickerFilter getDepthEffectPhotosFilter(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "burstsFilter") + public static native PHPickerFilter getBurstsFilter(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "panoramasFilter") + public static native PHPickerFilter getPanoramasFilter(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "screenshotsFilter") + public static native PHPickerFilter getScreenshotsFilter(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "screenRecordingsFilter") + public static native PHPickerFilter getScreenRecordingsFilter(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "cinematicVideosFilter") + public static native PHPickerFilter getCinematicVideosFilter(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "slomoVideosFilter") + public static native PHPickerFilter getSlomoVideosFilter(); + /** + * @since Available in iOS 15.0 and later. + */ + @Property(selector = "timelapseVideosFilter") + public static native PHPickerFilter getTimelapseVideosFilter(); /**/ /**//**/ /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "playbackStyleFilter:") + public static native PHPickerFilter playbackStyleFilter(PHAssetPlaybackStyle playbackStyle); /** * @since Available in iOS 14.0 and later. */ @Method(selector = "anyFilterMatchingSubfilters:") public static native PHPickerFilter anyFilterMatchingSubfilters(NSArray subfilters); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "allFilterMatchingSubfilters:") + public static native PHPickerFilter allFilterMatchingSubfilters(NSArray subfilters); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "notFilterOfSubfilter:") + public static native PHPickerFilter notFilterOfSubfilter(PHPickerFilter subfilter); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerViewController.java index 1bfd273d7..8e639798d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/photosui/PHPickerViewController.java @@ -80,5 +80,15 @@ protected PHPickerViewController() {} */ @Method(selector = "initWithConfiguration:") protected native @Pointer long init(PHPickerConfiguration configuration); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "deselectAssetsWithIdentifiers:") + public native void deselectAssets(NSArray identifiers); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "moveAssetWithIdentifier:afterAssetWithIdentifier:") + public native void moveAsset(String identifier, String afterIdentifier); /**/ } From d553633ff47236aacc5f8d11c84c8906d588eb61 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:40:33 +0300 Subject: [PATCH 54/73] * ios16 bindings: MediaPlayer updated --- .../src/main/bro-gen/mediaplayer.yaml | 14 ++- .../apple/mediaplayer/MPAdTimeRange.java | 69 ++++++++++++++ .../MPChangeLanguageOptionCommandEvent.java | 2 + .../MPChangeLanguageOptionSetting.java | 2 + .../MPChangePlaybackPositionCommand.java | 2 + .../MPChangePlaybackPositionCommandEvent.java | 2 + .../MPChangePlaybackRateCommand.java | 2 + .../MPChangePlaybackRateCommandEvent.java | 2 + .../MPChangeRepeatModeCommand.java | 2 + .../MPChangeRepeatModeCommandEvent.java | 2 + .../MPChangeShuffleModeCommand.java | 2 + .../MPChangeShuffleModeCommandEvent.java | 2 + .../apple/mediaplayer/MPContentItem.java | 2 + .../robovm/apple/mediaplayer/MPErrorCode.java | 2 + .../apple/mediaplayer/MPFeedbackCommand.java | 2 + .../mediaplayer/MPFeedbackCommandEvent.java | 2 + .../MPLanguageOptionCharacteristic.java | 2 + .../apple/mediaplayer/MPMediaEntity.java | 2 + .../mediaplayer/MPMediaEntityProperty.java | 2 + .../apple/mediaplayer/MPMediaGrouping.java | 2 + .../robovm/apple/mediaplayer/MPMediaItem.java | 2 + .../apple/mediaplayer/MPMediaItemArtwork.java | 2 + .../mediaplayer/MPMediaItemCollection.java | 2 + .../mediaplayer/MPMediaItemProperty.java | 2 + .../apple/mediaplayer/MPMediaLibrary.java | 2 + .../MPMediaLibraryAuthorizationStatus.java | 2 + .../mediaplayer/MPMediaPickerController.java | 2 + .../MPMediaPickerControllerDelegate.java | 2 + ...PMediaPickerControllerDelegateAdapter.java | 2 + .../apple/mediaplayer/MPMediaPlayback.java | 2 + .../mediaplayer/MPMediaPlaybackAdapter.java | 2 + .../apple/mediaplayer/MPMediaPlaylist.java | 2 + .../mediaplayer/MPMediaPlaylistAttribute.java | 2 + .../MPMediaPlaylistCreationMetadata.java | 2 + .../mediaplayer/MPMediaPlaylistProperty.java | 2 + .../apple/mediaplayer/MPMediaPredicate.java | 2 + .../MPMediaPredicateComparison.java | 2 + .../mediaplayer/MPMediaPropertyPredicate.java | 2 + .../apple/mediaplayer/MPMediaQuery.java | 2 + .../mediaplayer/MPMediaQuerySection.java | 2 + .../robovm/apple/mediaplayer/MPMediaType.java | 2 + .../apple/mediaplayer/MPMovieAccessLog.java | 2 + .../mediaplayer/MPMovieAccessLogEvent.java | 2 + .../mediaplayer/MPMovieControlStyle.java | 2 + .../apple/mediaplayer/MPMovieErrorLog.java | 2 + .../mediaplayer/MPMovieErrorLogEvent.java | 2 + .../mediaplayer/MPMovieFinishReason.java | 2 + .../apple/mediaplayer/MPMovieLoadState.java | 2 + .../mediaplayer/MPMovieMediaTypeMask.java | 2 + .../mediaplayer/MPMoviePlaybackState.java | 2 + .../mediaplayer/MPMoviePlayerController.java | 2 + .../MPMoviePlayerFullscreenAnimation.java | 2 + .../MPMoviePlayerThumbnailRequest.java | 2 + .../MPMoviePlayerViewController.java | 2 + .../apple/mediaplayer/MPMovieRepeatMode.java | 2 + .../apple/mediaplayer/MPMovieScalingMode.java | 2 + .../apple/mediaplayer/MPMovieSourceType.java | 2 + .../apple/mediaplayer/MPMovieTimeOption.java | 2 + .../mediaplayer/MPMusicPlaybackState.java | 2 + .../MPMusicPlayerApplicationController.java | 2 + .../mediaplayer/MPMusicPlayerController.java | 2 + .../MPMusicPlayerControllerMutableQueue.java | 2 + .../MPMusicPlayerControllerQueue.java | 2 + ...MPMusicPlayerMediaItemQueueDescriptor.java | 2 + .../MPMusicPlayerPlayParameters.java | 2 + ...icPlayerPlayParametersQueueDescriptor.java | 2 + .../MPMusicPlayerQueueDescriptor.java | 2 + .../MPMusicPlayerStoreQueueDescriptor.java | 2 + .../apple/mediaplayer/MPMusicRepeatMode.java | 2 + .../apple/mediaplayer/MPMusicShuffleMode.java | 2 + .../apple/mediaplayer/MPNowPlayingInfo.java | 12 +++ .../mediaplayer/MPNowPlayingInfoCenter.java | 2 + .../MPNowPlayingInfoLanguageOption.java | 2 + .../MPNowPlayingInfoLanguageOptionGroup.java | 2 + .../MPNowPlayingInfoLanguageOptionType.java | 2 + .../MPNowPlayingInfoMediaType.java | 2 + .../MPNowPlayingPlaybackState.java | 2 + .../mediaplayer/MPNowPlayingSession.java | 95 +++++++++++++++++++ .../MPNowPlayingSessionDelegate.java | 63 ++++++++++++ .../MPNowPlayingSessionDelegateAdapter.java | 61 ++++++++++++ .../MPPlayableContentDataSource.java | 2 + .../MPPlayableContentDataSourceAdapter.java | 2 + .../MPPlayableContentDelegate.java | 2 + .../MPPlayableContentDelegateAdapter.java | 2 + .../mediaplayer/MPPlayableContentManager.java | 2 + .../MPPlayableContentManagerContext.java | 2 + .../apple/mediaplayer/MPRatingCommand.java | 2 + .../mediaplayer/MPRatingCommandEvent.java | 2 + .../apple/mediaplayer/MPRemoteCommand.java | 2 + .../mediaplayer/MPRemoteCommandCenter.java | 2 + .../mediaplayer/MPRemoteCommandEvent.java | 2 + .../MPRemoteCommandHandlerStatus.java | 2 + .../apple/mediaplayer/MPRepeatType.java | 2 + .../apple/mediaplayer/MPSeekCommandEvent.java | 2 + .../mediaplayer/MPSeekCommandEventType.java | 2 + .../apple/mediaplayer/MPShuffleType.java | 2 + .../mediaplayer/MPSkipIntervalCommand.java | 2 + .../MPSkipIntervalCommandEvent.java | 2 + .../MPSystemMusicPlayerController.java | 2 + .../MPSystemMusicPlayerControllerAdapter.java | 2 + .../apple/mediaplayer/MPTimedMetadata.java | 2 + .../apple/mediaplayer/MPVolumeSettings.java | 2 + .../apple/mediaplayer/MPVolumeView.java | 2 + .../UIViewControllerExtensions.java | 2 + 104 files changed, 508 insertions(+), 2 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPAdTimeRange.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSession.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegateAdapter.java diff --git a/compiler/cocoatouch/src/main/bro-gen/mediaplayer.yaml b/compiler/cocoatouch/src/main/bro-gen/mediaplayer.yaml index dbcbbf0c8..2b6e2b90e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/mediaplayer.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/mediaplayer.yaml @@ -1,5 +1,5 @@ package: org.robovm.apple.mediaplayer -include: [foundation, uikit, coregraphics, coreanimation] +include: [foundation, uikit, coregraphics, coreanimation, coremedia, avfoundation] library: MediaPlayer framework: MediaPlayer clang_args: ['-x', 'objective-c'] @@ -347,6 +347,16 @@ classes: trim_after_first_colon: true '-initWithPlayParametersQueue:': name: init + MPAdTimeRange: #since 16.0 + methods: + '-initWithTimeRange:': + name: init + MPNowPlayingSession: #since 16.0 + methods: + '-initWithPlayers:': + name: init + '-becomeActiveIfPossibleWithCompletion:': + name: becomeActiveIfPossible protocols: MPMediaPickerControllerDelegate: # DONE methods: @@ -378,7 +388,7 @@ protocols: '-playableContentManager:initializePlaybackQueueWithContentItems:completionHandler:': name: initializePlaybackQueueWithContent MPSystemMusicPlayerController: {} - + MPNowPlayingSessionDelegate: {} #since 16.0 functions: MPVolumeSettingsAlert(Show|Hide): class: MPVolumeSettings diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPAdTimeRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPAdTimeRange.java new file mode 100644 index 000000000..c9508e9fa --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPAdTimeRange.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mediaplayer; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MediaPlayer") @NativeClass/**/ +/**/public/**/ class /**/MPAdTimeRange/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MPAdTimeRangePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MPAdTimeRange.class); }/**/ + /**//**/ + /**/ + protected MPAdTimeRange() {} + protected MPAdTimeRange(Handle h, long handle) { super(h, handle); } + protected MPAdTimeRange(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithTimeRange:") + public MPAdTimeRange(@ByVal CMTimeRange timeRange) { super((SkipInit) null); initObject(init(timeRange)); } + /**/ + /**/ + @Property(selector = "timeRange") + public native @ByVal CMTimeRange getTimeRange(); + @Property(selector = "setTimeRange:") + public native void setTimeRange(@ByVal CMTimeRange v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithTimeRange:") + protected native @Pointer long init(@ByVal CMTimeRange timeRange); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionCommandEvent.java index 59dca4a82..c60a94624 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionSetting.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionSetting.java index 6a2f39c1d..b0e66dd7f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionSetting.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeLanguageOptionSetting.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommand.java index d32561218..4f8420f41 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommandEvent.java index ff3b15a2f..aa9ba30c7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackPositionCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommand.java index 0e92ca2de..a6ac47b95 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommandEvent.java index 8e654c202..19bc1ed92 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangePlaybackRateCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommand.java index 9da2d7977..965f26ff6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommandEvent.java index 66546543d..148c5ae78 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeRepeatModeCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommand.java index 41d5d56a7..a72b1cf5d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommandEvent.java index 90f7580e2..429a673c9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPChangeShuffleModeCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPContentItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPContentItem.java index 89a20a495..21c3718be 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPContentItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPContentItem.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPErrorCode.java index d524259e9..ac06504de 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPErrorCode.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommand.java index 3f0889a34..ab9ed0c5a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommandEvent.java index 035f22616..78d7ced71 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPFeedbackCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPLanguageOptionCharacteristic.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPLanguageOptionCharacteristic.java index 055eeadee..dd422b2da 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPLanguageOptionCharacteristic.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPLanguageOptionCharacteristic.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntity.java index 866789faf..42436ed51 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntity.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntity.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntityProperty.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntityProperty.java index e88b8e433..0ba41b1f0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntityProperty.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaEntityProperty.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaGrouping.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaGrouping.java index f377f3030..9201603a0 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaGrouping.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaGrouping.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItem.java index 627817514..ab397ef7f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItem.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemArtwork.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemArtwork.java index 4a9718d32..8e229630f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemArtwork.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemArtwork.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemCollection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemCollection.java index 7a999e1bb..a56f5cc47 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemCollection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemCollection.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemProperty.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemProperty.java index 59d15b846..5603e8f86 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemProperty.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaItemProperty.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibrary.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibrary.java index 176e76051..79ad93646 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibrary.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibrary.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibraryAuthorizationStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibraryAuthorizationStatus.java index a81c2f77e..79987d85b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibraryAuthorizationStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaLibraryAuthorizationStatus.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerController.java index e514b1dcf..92a3d906f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerController.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegate.java index 340c2e8e4..5081cccab 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegate.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegateAdapter.java index 19892f94c..44f43a540 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPickerControllerDelegateAdapter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlayback.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlayback.java index 237d24d78..487d9bf76 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlayback.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlayback.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaybackAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaybackAdapter.java index 9df9554e3..bfd904548 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaybackAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaybackAdapter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylist.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylist.java index c5db54e37..17f5825af 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylist.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylist.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistAttribute.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistAttribute.java index eba1bd147..0c41eaeb7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistAttribute.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistAttribute.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistCreationMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistCreationMetadata.java index b4d4000ca..08bebba64 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistCreationMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistCreationMetadata.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistProperty.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistProperty.java index efc894f2b..4fa44f40c 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistProperty.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPlaylistProperty.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicate.java index da14fd1f5..26e91cc44 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicate.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicateComparison.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicateComparison.java index e93875efa..31672008a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicateComparison.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPredicateComparison.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPropertyPredicate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPropertyPredicate.java index e5dba6074..57855a1d1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPropertyPredicate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaPropertyPredicate.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuery.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuery.java index 31ee8531a..3b757a234 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuery.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuery.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuerySection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuerySection.java index d544faec8..f757fb0bd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuerySection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaQuerySection.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaType.java index 6114abfaa..aae9c7d55 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMediaType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLog.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLog.java index 7c8ba54fb..e2b058919 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLog.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLog.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLogEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLogEvent.java index 4d0e61986..24789877a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLogEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieAccessLogEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieControlStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieControlStyle.java index 18f1e8f9e..5db7bfdec 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieControlStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieControlStyle.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLog.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLog.java index eb76b76fa..e107abc23 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLog.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLog.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLogEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLogEvent.java index a79db8b1f..0b7373f93 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLogEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieErrorLogEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieFinishReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieFinishReason.java index 4161ed41e..d9a1910b5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieFinishReason.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieFinishReason.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieLoadState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieLoadState.java index 79d275ef7..ca50e4060 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieLoadState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieLoadState.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieMediaTypeMask.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieMediaTypeMask.java index ee0d55100..d5842f3c6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieMediaTypeMask.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieMediaTypeMask.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlaybackState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlaybackState.java index e4283be2b..3dd8ea661 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlaybackState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlaybackState.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerController.java index 71a8f7ab4..bc79af4e6 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerController.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ import org.robovm.rt.annotation.WeaklyLinked; diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerFullscreenAnimation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerFullscreenAnimation.java index eaad58400..ae504d55f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerFullscreenAnimation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerFullscreenAnimation.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerThumbnailRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerThumbnailRequest.java index e13220c26..cc0f1cf81 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerThumbnailRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerThumbnailRequest.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerViewController.java index cdebbea68..738897284 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMoviePlayerViewController.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieRepeatMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieRepeatMode.java index 6679c323a..9874afd0e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieRepeatMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieRepeatMode.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieScalingMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieScalingMode.java index 91fbadd28..00645cb27 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieScalingMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieScalingMode.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieSourceType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieSourceType.java index 0dc87cf6b..7b23452e8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieSourceType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieSourceType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieTimeOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieTimeOption.java index fa5c1bf0d..c8d03e3b3 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieTimeOption.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMovieTimeOption.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlaybackState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlaybackState.java index 133bd544b..cb4131e60 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlaybackState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlaybackState.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerApplicationController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerApplicationController.java index 7be77c321..d8420a3bc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerApplicationController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerApplicationController.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerController.java index 396e2ea72..f9f78ec94 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerController.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerMutableQueue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerMutableQueue.java index 2dd97f63c..d3117802d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerMutableQueue.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerMutableQueue.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerQueue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerQueue.java index 84f6ab35b..c537a713d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerQueue.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerControllerQueue.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerMediaItemQueueDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerMediaItemQueueDescriptor.java index 99652625f..e8c1be126 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerMediaItemQueueDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerMediaItemQueueDescriptor.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParameters.java index 4879ff060..6e685e15d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParameters.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParametersQueueDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParametersQueueDescriptor.java index 5bc4e2901..8703d64a4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParametersQueueDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerPlayParametersQueueDescriptor.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerQueueDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerQueueDescriptor.java index ca8ed2e7b..6e9be912f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerQueueDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerQueueDescriptor.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerStoreQueueDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerStoreQueueDescriptor.java index 0e678f6ab..6e0d4c9fd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerStoreQueueDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicPlayerStoreQueueDescriptor.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicRepeatMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicRepeatMode.java index cd3db3bbe..811b4a1bf 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicRepeatMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicRepeatMode.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicShuffleMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicShuffleMode.java index 21ad676e5..03b638f92 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicShuffleMode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPMusicShuffleMode.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfo.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfo.java index 666ea5221..6bdb142f5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfo.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfo.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ @@ -407,6 +409,16 @@ public static class Keys { */ @GlobalValue(symbol="MPNowPlayingInfoPropertyCurrentPlaybackDate", optional=true) public static native NSString CurrentPlaybackDate(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="MPNowPlayingInfoPropertyAdTimeRanges", optional=true) + public static native NSString AdTimeRanges(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="MPNowPlayingInfoPropertyCreditsStartTime", optional=true) + public static native NSString CreditsStartTime(); } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoCenter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoCenter.java index 51544c64b..810e82905 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoCenter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoCenter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOption.java index 574f63af1..85aa79e8b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOption.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOption.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionGroup.java index 09ba26754..d280fb1b0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionGroup.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionGroup.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionType.java index 9f9e15202..3330cad4b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoLanguageOptionType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoMediaType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoMediaType.java index 1bc5ebd9e..4cd8bc356 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoMediaType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingInfoMediaType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingPlaybackState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingPlaybackState.java index cf70fbf22..548f06d86 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingPlaybackState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingPlaybackState.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSession.java new file mode 100644 index 000000000..42045491c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSession.java @@ -0,0 +1,95 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mediaplayer; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MediaPlayer") @NativeClass/**/ +/**/public/**/ class /**/MPNowPlayingSession/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MPNowPlayingSessionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MPNowPlayingSession.class); }/**/ + /**//**/ + /**/ + protected MPNowPlayingSession() {} + protected MPNowPlayingSession(Handle h, long handle) { super(h, handle); } + protected MPNowPlayingSession(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithPlayers:") + public MPNowPlayingSession(NSArray players) { super((SkipInit) null); initObject(init(players)); } + /**/ + /**/ + @Property(selector = "players") + public native NSArray getPlayers(); + @Property(selector = "delegate") + public native MPNowPlayingSessionDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(MPNowPlayingSessionDelegate v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "automaticallyPublishesNowPlayingInfo") + public native boolean automaticallyPublishesNowPlayingInfo(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAutomaticallyPublishesNowPlayingInfo:") + public native void setAutomaticallyPublishesNowPlayingInfo(boolean v); + @Property(selector = "nowPlayingInfoCenter") + public native MPNowPlayingInfoCenter getNowPlayingInfoCenter(); + @Property(selector = "remoteCommandCenter") + public native MPRemoteCommandCenter getRemoteCommandCenter(); + @Property(selector = "canBecomeActive") + public native boolean canBecomeActive(); + @Property(selector = "isActive") + public native boolean isActive(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithPlayers:") + protected native @Pointer long init(NSArray players); + @Method(selector = "becomeActiveIfPossibleWithCompletion:") + public native void becomeActiveIfPossible(@Block VoidBooleanBlock completion); + @Method(selector = "addPlayer:") + public native void addPlayer(AVPlayer player); + @Method(selector = "removePlayer:") + public native void removePlayer(AVPlayer player); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegate.java new file mode 100644 index 000000000..3a913f932 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegate.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mediaplayer; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MPNowPlayingSessionDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "nowPlayingSessionDidChangeActive:") + void nowPlayingSessionDidChangeActive(MPNowPlayingSession nowPlayingSession); + @Method(selector = "nowPlayingSessionDidChangeCanBecomeActive:") + void nowPlayingSessionDidChangeCanBecomeActive(MPNowPlayingSession nowPlayingSession); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegateAdapter.java new file mode 100644 index 000000000..4126cc761 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPNowPlayingSessionDelegateAdapter.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.mediaplayer; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MPNowPlayingSessionDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements MPNowPlayingSessionDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("nowPlayingSessionDidChangeActive:") + public void nowPlayingSessionDidChangeActive(MPNowPlayingSession nowPlayingSession) {} + @NotImplemented("nowPlayingSessionDidChangeCanBecomeActive:") + public void nowPlayingSessionDidChangeCanBecomeActive(MPNowPlayingSession nowPlayingSession) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSource.java index 2850658ef..50d593718 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSource.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSource.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSourceAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSourceAdapter.java index 9780eaa91..01dce48c9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSourceAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDataSourceAdapter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegate.java index d803f157d..de398c97d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegate.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegateAdapter.java index ca2266336..d722cd2f5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentDelegateAdapter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManager.java index 51355a917..9794576a4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManager.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManagerContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManagerContext.java index a353b8184..630102e1d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManagerContext.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPPlayableContentManagerContext.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommand.java index 52987765b..a797fad2f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommandEvent.java index 49c654e8f..fddd0b870 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRatingCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommand.java index 5aaf392f4..c8de943b9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandCenter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandCenter.java index 098a4af2b..b194ecd53 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandCenter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandCenter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandEvent.java index 3eea57ff8..1cc2a5a14 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandHandlerStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandHandlerStatus.java index 770d643d1..f725c8fb2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandHandlerStatus.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRemoteCommandHandlerStatus.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRepeatType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRepeatType.java index 9ef80c02b..3fa4ab2e0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRepeatType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPRepeatType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEvent.java index 5466ef0a6..b78a0501f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEventType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEventType.java index 2b0600cda..606f2da47 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEventType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSeekCommandEventType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPShuffleType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPShuffleType.java index b16647078..0dd9dbf29 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPShuffleType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPShuffleType.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommand.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommand.java index babe5ea50..64e0ee7b5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommand.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommand.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommandEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommandEvent.java index 62cf81a32..2c78c80fe 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommandEvent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSkipIntervalCommandEvent.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerController.java index 9edfec3ac..4114eea45 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerController.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerControllerAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerControllerAdapter.java index f12807307..c6101379c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerControllerAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPSystemMusicPlayerControllerAdapter.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPTimedMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPTimedMetadata.java index d0349eca9..787175ea8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPTimedMetadata.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPTimedMetadata.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeSettings.java index c165748f5..c2a08a6d8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeSettings.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeView.java index 2affdb26c..1c5d37360 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/MPVolumeView.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/UIViewControllerExtensions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/UIViewControllerExtensions.java index 3a05d6c81..8907b4db8 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/UIViewControllerExtensions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/mediaplayer/UIViewControllerExtensions.java @@ -31,6 +31,8 @@ import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coremedia.*; +import org.robovm.apple.avfoundation.*; /**/ /**/ From 7a09ef3c1bf938d4a5b3e86a1baea8a185a4a365 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:40:47 +0300 Subject: [PATCH 55/73] * ios16 bindings: SafariServices updated --- .../src/main/bro-gen/safariservices.yaml | 4 ++ .../SFSafariViewControllerDataStore.java | 61 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/safariservices/SFSafariViewControllerDataStore.java diff --git a/compiler/cocoatouch/src/main/bro-gen/safariservices.yaml b/compiler/cocoatouch/src/main/bro-gen/safariservices.yaml index 755b41001..0c942d5ab 100755 --- a/compiler/cocoatouch/src/main/bro-gen/safariservices.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/safariservices.yaml @@ -57,6 +57,10 @@ classes: '-initWithTemplateImage:extensionIdentifier:': name: init SFSafariViewControllerPrewarmingToken: {} #since 15.0 + SFSafariViewControllerDataStore: #since 16.0 + methods: + '-clearWebsiteDataWithCompletionHandler:': + name: clearWebsiteData protocols: SFSafariViewControllerDelegate: # DONE methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/safariservices/SFSafariViewControllerDataStore.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/safariservices/SFSafariViewControllerDataStore.java new file mode 100644 index 000000000..bc65b47f7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/safariservices/SFSafariViewControllerDataStore.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.safariservices; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SafariServices") @NativeClass/**/ +/**/public/**/ class /**/SFSafariViewControllerDataStore/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class SFSafariViewControllerDataStorePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SFSafariViewControllerDataStore.class); }/**/ + /**//**/ + /**/ + protected SFSafariViewControllerDataStore() {} + protected SFSafariViewControllerDataStore(Handle h, long handle) { super(h, handle); } + protected SFSafariViewControllerDataStore(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "defaultDataStore") + public static native SFSafariViewControllerDataStore getDefaultDataStore(); + /**/ + /**//**/ + /**/ + @Method(selector = "clearWebsiteDataWithCompletionHandler:") + public native void clearWebsiteData(@Block Runnable completion); + /**/ +} From 160e5715179623c073675defa55a8eea8878d79c Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 08:42:46 +0300 Subject: [PATCH 56/73] * ios16 bindings: MessagesUI updated --- .../apple/messageui/MFMessageComposeViewController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/messageui/MFMessageComposeViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/messageui/MFMessageComposeViewController.java index 2cf0526ec..046920ccb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/messageui/MFMessageComposeViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/messageui/MFMessageComposeViewController.java @@ -118,6 +118,11 @@ public MFMessageComposeViewController() {} public native boolean addAttachment(NSURL attachmentURL, String alternateFilename); @Method(selector = "addAttachmentData:typeIdentifier:filename:") public native boolean addAttachment(NSData attachmentData, String uti, String filename); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "insertCollaborationItemProvider:") + public native boolean insertCollaborationItemProvider(NSItemProvider itemProvider); @Method(selector = "canSendText") public static native boolean canSendText(); @Method(selector = "canSendSubject") From 5d468ee8df3b80e7ecb63e624fdad620a0f44a11 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 09:13:28 +0300 Subject: [PATCH 57/73] * ios16 bindings: Metal, MetalKit, MetalPS updated --- .../cocoatouch/src/main/bro-gen/metal.yaml | 151 ++++++++++++++++++ .../apple/metal/MTLAccelerationStructure.java | 5 + .../MTLAccelerationStructureAdapter.java | 5 + ...TLAccelerationStructureCommandEncoder.java | 5 + ...erationStructureCommandEncoderAdapter.java | 5 + ...celerationStructureGeometryDescriptor.java | 40 +++++ ...ctureMotionTriangleGeometryDescriptor.java | 30 ++++ ...TLAccelerationStructurePassDescriptor.java | 61 +++++++ ...ePassSampleBufferAttachmentDescriptor.java | 70 ++++++++ ...SampleBufferAttachmentDescriptorArray.java | 62 +++++++ .../MTLAccelerationStructureRefitOptions.java | 65 ++++++++ ...onStructureTriangleGeometryDescriptor.java | 30 ++++ .../org/robovm/apple/metal/MTLArgument.java | 6 +- .../robovm/apple/metal/MTLArgumentType.java | 6 +- .../apple/metal/MTLBinaryArchiveError.java | 6 +- .../org/robovm/apple/metal/MTLBinding.java | 67 ++++++++ .../robovm/apple/metal/MTLBindingAdapter.java | 65 ++++++++ .../robovm/apple/metal/MTLBindingType.java | 73 +++++++++ .../org/robovm/apple/metal/MTLBuffer.java | 5 + .../robovm/apple/metal/MTLBufferBinding.java | 65 ++++++++ .../apple/metal/MTLBufferBindingAdapter.java | 63 ++++++++ .../robovm/apple/metal/MTLCommandBuffer.java | 5 + .../metal/MTLCommandBufferErrorCode.java | 4 + .../robovm/apple/metal/MTLCompileOptions.java | 14 +- .../metal/MTLComputePipelineReflection.java | 9 ++ .../apple/metal/MTLComputePipelineState.java | 5 + .../org/robovm/apple/metal/MTLDevice.java | 95 +++++++++-- .../org/robovm/apple/metal/MTLFeatureSet.java | 6 +- .../robovm/apple/metal/MTLFunctionType.java | 10 +- .../org/robovm/apple/metal/MTLGPUFamily.java | 21 ++- .../java/org/robovm/apple/metal/MTLHeap.java | 20 +++ .../robovm/apple/metal/MTLHeapAdapter.java | 20 +++ .../robovm/apple/metal/MTLHeapDescriptor.java | 10 ++ .../apple/metal/MTLIOCommandBuffer.java | 90 +++++++++++ .../metal/MTLIOCommandBufferAdapter.java | 88 ++++++++++ .../robovm/apple/metal/MTLIOCommandQueue.java | 64 ++++++++ .../apple/metal/MTLIOCommandQueueAdapter.java | 62 +++++++ .../metal/MTLIOCommandQueueDescriptor.java | 78 +++++++++ .../apple/metal/MTLIOCommandQueueType.java | 64 ++++++++ .../apple/metal/MTLIOCompressionContext.java | 68 ++++++++ .../apple/metal/MTLIOCompressionMethod.java | 65 ++++++++ .../apple/metal/MTLIOCompressionStatus.java | 64 ++++++++ .../org/robovm/apple/metal/MTLIOError.java | 90 +++++++++++ .../robovm/apple/metal/MTLIOFileHandle.java | 59 +++++++ .../apple/metal/MTLIOFileHandleAdapter.java | 57 +++++++ .../org/robovm/apple/metal/MTLIOPriority.java | 65 ++++++++ .../apple/metal/MTLIOScratchBuffer.java | 57 +++++++ .../metal/MTLIOScratchBufferAdapter.java | 55 +++++++ .../metal/MTLIOScratchBufferAllocator.java | 57 +++++++ .../MTLIOScratchBufferAllocatorAdapter.java | 55 +++++++ .../org/robovm/apple/metal/MTLIOStatus.java | 66 ++++++++ .../apple/metal/MTLIndirectCommandBuffer.java | 5 + .../MTLIndirectCommandBufferAdapter.java | 5 + .../MTLIndirectCommandBufferDescriptor.java | 10 ++ .../metal/MTLIntersectionFunctionTable.java | 6 +- .../MTLIntersectionFunctionTableAdapter.java | 6 +- .../apple/metal/MTLLanguageVersion.java | 8 +- .../org/robovm/apple/metal/MTLLibrary.java | 2 +- .../metal/MTLLibraryOptimizationLevel.java | 64 ++++++++ .../apple/metal/MTLLinkedFunctions.java | 6 + .../MTLMeshRenderPipelineDescriptor.java | 135 ++++++++++++++++ .../apple/metal/MTLObjectPayloadBinding.java | 59 +++++++ .../metal/MTLObjectPayloadBindingAdapter.java | 57 +++++++ .../apple/metal/MTLRenderCommandEncoder.java | 144 ++++++++++++++++- .../metal/MTLRenderPipelineDescriptor.java | 8 + .../metal/MTLRenderPipelineReflection.java | 35 ++++ .../apple/metal/MTLRenderPipelineState.java | 30 ++++ .../robovm/apple/metal/MTLRenderStages.java | 8 + .../org/robovm/apple/metal/MTLResourceID.java | 58 +++++++ .../metal/MTLResourceStateCommandEncoder.java | 5 + ...MTLResourceStateCommandEncoderAdapter.java | 5 + .../robovm/apple/metal/MTLResourceUsage.java | 5 + .../robovm/apple/metal/MTLSamplerState.java | 5 + .../robovm/apple/metal/MTLSparsePageSize.java | 65 ++++++++ .../org/robovm/apple/metal/MTLTexture.java | 5 + .../robovm/apple/metal/MTLTextureBinding.java | 63 ++++++++ .../apple/metal/MTLTextureBindingAdapter.java | 61 +++++++ .../apple/metal/MTLThreadgroupBinding.java | 59 +++++++ .../metal/MTLThreadgroupBindingAdapter.java | 57 +++++++ .../apple/metal/MTLVisibleFunctionTable.java | 6 +- .../metal/MTLVisibleFunctionTableAdapter.java | 6 +- .../org/robovm/apple/metalkit/MTKView.java | 10 ++ .../apple/metalps/MPSCommandBuffer.java | 5 + 83 files changed, 3280 insertions(+), 31 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureRefitOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinding.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBinding.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBindingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBuffer.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBufferAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueue.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionContext.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionMethod.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionStatus.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOError.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandleAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOPriority.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBuffer.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocator.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocatorAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOStatus.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibraryOptimizationLevel.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLMeshRenderPipelineDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBinding.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBindingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceID.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSparsePageSize.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBinding.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBindingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBinding.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBindingAdapter.java diff --git a/compiler/cocoatouch/src/main/bro-gen/metal.yaml b/compiler/cocoatouch/src/main/bro-gen/metal.yaml index bf137cb6f..74bb195dc 100755 --- a/compiler/cocoatouch/src/main/bro-gen/metal.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/metal.yaml @@ -97,6 +97,17 @@ enums: MTLTextureCompressionType: {} #since 15.0 MTLMotionBorderMode: {} #since 15.0 MTLAccelerationStructureInstanceDescriptorType: {} #since 15.0 + + MTLBindingType: {} #since 14.0 + MTLLibraryOptimizationLevel: {} #since 16.0 + MTLIOCompressionMethod: {} + MTLSparsePageSize: {} #since 16.0 + MTLAccelerationStructureRefitOptions: {prefix: MTLAccelerationStructureRefitOption} #since 16.0 + MTLIOPriority: {} #since 16.0 + MTLIOCommandQueueType: {} #since 16.0 + MTLIOError: {nserror: true} #since 16.0 + MTLIOStatus: {} #since 16.0 + MTLIOCompressionStatus: {} #since 16.0 classes: MTLAttribute: {} MTLFunctionConstant: {} @@ -158,6 +169,9 @@ classes: MTLAccelerationStructureInstanceDescriptor: {} MTLAccelerationStructureUserIDInstanceDescriptor: {} #since 15.0 MTLAccelerationStructureMotionInstanceDescriptor: {} #since 15.0 + MTLResourceID: {} #since 16.0 + MTLIOCompressionContext: + extends: NativeObject MTLArgument: {} # DONE MTLArrayType: # DONE @@ -387,6 +401,14 @@ classes: MTLMotionKeyframeData: {} #since 15.0 MTLRenderPipelineFunctionsDescriptor: {} #since 15.0 MTLStitchedLibraryDescriptor: {} #since 15.0 + MTLAccelerationStructurePassDescriptor: {} #since 16.0 + MTLAccelerationStructurePassSampleBufferAttachmentDescriptor: {} #since 16.0 + MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray: #since 16.0 + methods: + '-setObject:atIndexedSubscript:': + name: setObject + MTLIOCommandQueueDescriptor: {} #since 16.0 + MTLMeshRenderPipelineDescriptor: {} #since 16.0 protocols: MTLHeap: methods: @@ -400,6 +422,14 @@ protocols: name: newBuffer '-newTextureWithDescriptor:offset:': name: newTexture + '-newAccelerationStructureWithSize:': + name: newAccelerationStructure + '-newAccelerationStructureWithDescriptor:': + name: newAccelerationStructure + '-newAccelerationStructureWithSize:offset:': + name: newAccelerationStructure + '-newAccelerationStructureWithDescriptor:offset:': + name: newAccelerationStructure MTLFence: {} @@ -499,6 +529,8 @@ protocols: name: blitCommandEncoder '-resourceStateCommandEncoderWithDescriptor:': name: resourceStateCommandEncoder + '-accelerationStructureCommandEncoderWithDescriptor:': + name: accelerationStructureCommandEncoder MTLCommandEncoder: # DONE methods: '-insertDebugSignpost:': @@ -730,6 +762,20 @@ protocols: name: newLibrary '-newLibraryWithStitchedDescriptor:completionHandler:': name: newLibrary + '-newIOHandleWithURL:error:': + name: newIOHandle + '-newIOCommandQueueWithDescriptor:error:': + name: newIOCommandQueue + '-newIOHandleWithURL:compressionMethod:error:': + name: newIOHandle + '-sparseTileSizeWithTextureType:pixelFormat:sampleCount:sparsePageSize:': + name: sparseTileSize + '-newArgumentEncoderWithBufferBinding:': + name: newArgumentEncoder + '-heapAccelerationStructureSizeAndAlignWithSize:': + name: heapAccelerationStructureSizeAndAlign + '-heapAccelerationStructureSizeAndAlignWithDescriptor:': + name: heapAccelerationStructureSizeAndAlign MTLDrawable: # DONE methods: '-presentAtTime:': @@ -986,6 +1032,58 @@ protocols: name: setTileIntersectionFunctionTables '-setTileAccelerationStructure:atBufferIndex:': name: setTileAccelerationStructure + '-setObjectBytes:length:atIndex:': + name: setObjectBytes + '-setObjectBuffer:offset:atIndex:': + name: setObjectBuffer + '-setObjectBufferOffset:atIndex:': + name: setObjectBufferOffset + '-setObjectBuffers:offsets:withRange:': + name: setObjectBuffers + '-setObjectTexture:atIndex:': + name: setObjectTexture + '-setObjectTextures:withRange:': + name: setObjectTextures + '-setObjectSamplerState:atIndex:': + name: setObjectSamplerState + '-setObjectSamplerStates:withRange:': + name: setObjectSamplerStates + '-setObjectSamplerState:lodMinClamp:lodMaxClamp:atIndex:': + name: setObjectSamplerState + '-setObjectSamplerStates:lodMinClamps:lodMaxClamps:withRange:': + name: setObjectSamplerStates + '-setObjectThreadgroupMemoryLength:atIndex:': + name: setObjectThreadgroupMemoryLength + '-setMeshBytes:length:atIndex:': + name: setMeshBytes + '-setMeshBuffer:offset:atIndex:': + name: setMeshBuffer + '-setMeshBufferOffset:atIndex:': + name: setMeshBufferOffset + '-setMeshBuffers:offsets:withRange:': + name: setMeshBuffers + '-setMeshTexture:atIndex:': + name: setMeshTexture + '-setMeshTextures:withRange:': + name: setMeshTextures + '-setMeshSamplerState:atIndex:': + name: setMeshSamplerState + '-setMeshSamplerStates:withRange:': + name: setMeshSamplerStates + '-setMeshSamplerState:lodMinClamp:lodMaxClamp:atIndex:': + name: setMeshSamplerState + '-setMeshSamplerStates:lodMinClamps:lodMaxClamps:withRange:': + name: setMeshSamplerStates + '-drawMeshThreadgroups:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:': + name: drawMeshThreadgroups + '-drawMeshThreads:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:': + name: drawMeshThreads + '-drawMeshThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:': + name: drawMeshThreadgroups + '-memoryBarrierWithScope:afterStages:beforeStages:': + name: memoryBarrier + '-memoryBarrierWithResources:count:afterStages:beforeStages:': + name: memoryBarrier MTLRenderPipelineState: # DONE class: true annotations: ['@NativeProtocolProxy'] @@ -1132,6 +1230,8 @@ protocols: name: updateTextureMapping '-updateTextureMapping:mode:indirectBuffer:indirectBufferOffset:': name: updateTextureMapping + '-moveTextureMappingsFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:': + name: moveTextureMappings MTLAccelerationStructure: {} #since 14.0 MTLAccelerationStructureCommandEncoder: #since 14.0 methods: @@ -1155,6 +1255,8 @@ protocols: name: sampleCountersInBuffer '-writeCompactedAccelerationStructureSize:toBuffer:offset:sizeDataType:': name: writeCompactedAccelerationStructure + '-refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:options:': + name: refitAccelerationStructure MTLBinaryArchive: #since 14.0 methods: '-addComputePipelineFunctionsWithDescriptor:error:': @@ -1207,6 +1309,35 @@ protocols: name: setFunctions MTLFunctionStitchingAttribute: {} #since 15.0 MTLFunctionStitchingNode: {} #since 15.0 + MTLBinding: {} #since 16.0 + MTLBufferBinding: {} #since 16.0 + MTLIOCommandBuffer: #since 16.0 + methods: + '-loadBytes:size:sourceHandle:sourceHandleOffset:': + name: loadBytes + '-loadBuffer:offset:size:sourceHandle:sourceHandleOffset:': + name: loadBuffer + '-loadTexture:slice:level:size:sourceBytesPerRow:sourceBytesPerImage:destinationOrigin:sourceHandle:sourceHandleOffset:': + name: loadTexture + '-copyStatusToBuffer:offset:': + name: copyStatus + '-waitForEvent:value:': + name: waitForEvent + '-signalEvent:value:': + name: signalEvent + MTLIOCommandQueue: #since 16.0 + methods: + '-commandBufferWithUnretainedReferences': + name: commandBufferWithUnretainedReferences + MTLIOFileHandle: {} #since 16.0 + MTLIOScratchBuffer: {} #since 16.0 + MTLIOScratchBufferAllocator: #since 16.0 + methods: + '-newScratchBufferWithMinimumSize:': + name: newScratchBuffer + MTLObjectPayloadBinding: {} #since 16.0 + MTLTextureBinding: {} #since 16.0 + MTLThreadgroupBinding: {} #since 16.0 functions: MTLClearColorMake: exclude: true # use constructor instead @@ -1215,6 +1346,23 @@ functions: name: 'get#{g[0]}' return_marshaler: NSObject.NoRetainMarshaler + MTLIOCompressionContextDefaultChunkSize: + class: MTLIOCompressionContext + name: getDefaultChunkSize + MTLIOCreateCompressionContext: + class: MTLIOCompressionContext + name: create + parameters: + 0: + type: String + marshaler: StringMarshalers.AsAsciiZMarshaler + MTLIOCompressionContextAppendData: + class: MTLIOCompressionContext + name: appendData + MTLIOFlushAndDestroyCompressionContext: + class: MTLIOCompressionContext + name: flushAndDestroy + # Make sure we don't miss any functions if new ones are introduced in a later version (k?MTL.*): class: Metal @@ -1246,6 +1394,9 @@ values: MTLCommandBufferEncoderInfoErrorKey: class: MTLCommandBufferError name: getEncoderInfoErrorKey + MTLIOErrorDomain: + class: MTLIOError + name: getClassDomain # Make sure we don't miss any values if new ones are introduced in a later version (k?MTL.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructure.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructure.java index bf1e473db..92e36edb7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructure.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructure.java @@ -48,6 +48,11 @@ /**/ @Property(selector = "size") @MachineSizedUInt long getSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + @ByVal MTLResourceID getGpuResourceID(); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureAdapter.java index 82c580909..899eefc76 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureAdapter.java @@ -47,6 +47,11 @@ /**/ @NotImplemented("size") public @MachineSizedUInt long getSize() { return 0; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("gpuResourceID") + public @ByVal MTLResourceID getGpuResourceID() { return null; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoder.java index 68f1c72ac..5d23f7671 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoder.java @@ -53,6 +53,11 @@ void buildAccelerationStructure(MTLAccelerationStructure accelerationStructure, MTLAccelerationStructureDescriptor descriptor, MTLBuffer scratchBuffer, @MachineSizedUInt long scratchBufferOffset); @Method(selector = "refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:") void refitAccelerationStructure(MTLAccelerationStructure sourceAccelerationStructure, MTLAccelerationStructureDescriptor descriptor, MTLAccelerationStructure destinationAccelerationStructure, MTLBuffer scratchBuffer, @MachineSizedUInt long scratchBufferOffset); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:options:") + void refitAccelerationStructure(MTLAccelerationStructure sourceAccelerationStructure, MTLAccelerationStructureDescriptor descriptor, MTLAccelerationStructure destinationAccelerationStructure, MTLBuffer scratchBuffer, @MachineSizedUInt long scratchBufferOffset, MTLAccelerationStructureRefitOptions options); @Method(selector = "copyAccelerationStructure:toAccelerationStructure:") void copyAccelerationStructure(MTLAccelerationStructure sourceAccelerationStructure, MTLAccelerationStructure destinationAccelerationStructure); @Method(selector = "writeCompactedAccelerationStructureSize:toBuffer:offset:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoderAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoderAdapter.java index e0dd8f3d6..4e3374295 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoderAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureCommandEncoderAdapter.java @@ -53,6 +53,11 @@ public void buildAccelerationStructure(MTLAccelerationStructure accelerationStructure, MTLAccelerationStructureDescriptor descriptor, MTLBuffer scratchBuffer, @MachineSizedUInt long scratchBufferOffset) {} @NotImplemented("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:") public void refitAccelerationStructure(MTLAccelerationStructure sourceAccelerationStructure, MTLAccelerationStructureDescriptor descriptor, MTLAccelerationStructure destinationAccelerationStructure, MTLBuffer scratchBuffer, @MachineSizedUInt long scratchBufferOffset) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:options:") + public void refitAccelerationStructure(MTLAccelerationStructure sourceAccelerationStructure, MTLAccelerationStructureDescriptor descriptor, MTLAccelerationStructure destinationAccelerationStructure, MTLBuffer scratchBuffer, @MachineSizedUInt long scratchBufferOffset, MTLAccelerationStructureRefitOptions options) {} @NotImplemented("copyAccelerationStructure:toAccelerationStructure:") public void copyAccelerationStructure(MTLAccelerationStructure sourceAccelerationStructure, MTLAccelerationStructure destinationAccelerationStructure) {} @NotImplemented("writeCompactedAccelerationStructureSize:toBuffer:offset:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureGeometryDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureGeometryDescriptor.java index fe1093802..793e07ff9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureGeometryDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureGeometryDescriptor.java @@ -72,6 +72,46 @@ public MTLAccelerationStructureGeometryDescriptor() {} */ @Property(selector = "setLabel:") public native void setLabel(String v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "primitiveDataBuffer") + public native MTLBuffer getPrimitiveDataBuffer(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPrimitiveDataBuffer:") + public native void setPrimitiveDataBuffer(MTLBuffer v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "primitiveDataBufferOffset") + public native @MachineSizedUInt long getPrimitiveDataBufferOffset(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPrimitiveDataBufferOffset:") + public native void setPrimitiveDataBufferOffset(@MachineSizedUInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "primitiveDataStride") + public native @MachineSizedUInt long getPrimitiveDataStride(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPrimitiveDataStride:") + public native void setPrimitiveDataStride(@MachineSizedUInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "primitiveDataElementSize") + public native @MachineSizedUInt long getPrimitiveDataElementSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setPrimitiveDataElementSize:") + public native void setPrimitiveDataElementSize(@MachineSizedUInt long v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureMotionTriangleGeometryDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureMotionTriangleGeometryDescriptor.java index fee4d3b1f..0707ce70f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureMotionTriangleGeometryDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureMotionTriangleGeometryDescriptor.java @@ -54,6 +54,16 @@ public MTLAccelerationStructureMotionTriangleGeometryDescriptor() {} public native NSArray getVertexBuffers(); @Property(selector = "setVertexBuffers:") public native void setVertexBuffers(NSArray v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "vertexFormat") + public native MTLAttributeFormat getVertexFormat(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setVertexFormat:") + public native void setVertexFormat(MTLAttributeFormat v); @Property(selector = "vertexStride") public native @MachineSizedUInt long getVertexStride(); @Property(selector = "setVertexStride:") @@ -74,6 +84,26 @@ public MTLAccelerationStructureMotionTriangleGeometryDescriptor() {} public native @MachineSizedUInt long getTriangleCount(); @Property(selector = "setTriangleCount:") public native void setTriangleCount(@MachineSizedUInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "transformationMatrixBuffer") + public native MTLBuffer getTransformationMatrixBuffer(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTransformationMatrixBuffer:") + public native void setTransformationMatrixBuffer(MTLBuffer v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "transformationMatrixBufferOffset") + public native @MachineSizedUInt long getTransformationMatrixBufferOffset(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTransformationMatrixBufferOffset:") + public native void setTransformationMatrixBufferOffset(@MachineSizedUInt long v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassDescriptor.java new file mode 100644 index 000000000..cff5ed6cf --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassDescriptor.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Metal") @NativeClass/**/ +/**/public/**/ class /**/MTLAccelerationStructurePassDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLAccelerationStructurePassDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLAccelerationStructurePassDescriptor.class); }/**/ + /**//**/ + /**/ + public MTLAccelerationStructurePassDescriptor() {} + protected MTLAccelerationStructurePassDescriptor(Handle h, long handle) { super(h, handle); } + protected MTLAccelerationStructurePassDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "sampleBufferAttachments") + public native MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray getSampleBufferAttachments(); + /**/ + /**//**/ + /**/ + @Method(selector = "accelerationStructurePassDescriptor") + public static native MTLAccelerationStructurePassDescriptor accelerationStructurePassDescriptor(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptor.java new file mode 100644 index 000000000..a4713475c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptor.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Metal") @NativeClass/**/ +/**/public/**/ class /**/MTLAccelerationStructurePassSampleBufferAttachmentDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLAccelerationStructurePassSampleBufferAttachmentDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLAccelerationStructurePassSampleBufferAttachmentDescriptor.class); }/**/ + /**//**/ + /**/ + public MTLAccelerationStructurePassSampleBufferAttachmentDescriptor() {} + protected MTLAccelerationStructurePassSampleBufferAttachmentDescriptor(Handle h, long handle) { super(h, handle); } + protected MTLAccelerationStructurePassSampleBufferAttachmentDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "sampleBuffer") + public native MTLCounterSampleBuffer getSampleBuffer(); + @Property(selector = "setSampleBuffer:") + public native void setSampleBuffer(MTLCounterSampleBuffer v); + @Property(selector = "startOfEncoderSampleIndex") + public native @MachineSizedUInt long getStartOfEncoderSampleIndex(); + @Property(selector = "setStartOfEncoderSampleIndex:") + public native void setStartOfEncoderSampleIndex(@MachineSizedUInt long v); + @Property(selector = "endOfEncoderSampleIndex") + public native @MachineSizedUInt long getEndOfEncoderSampleIndex(); + @Property(selector = "setEndOfEncoderSampleIndex:") + public native void setEndOfEncoderSampleIndex(@MachineSizedUInt long v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray.java new file mode 100644 index 000000000..d81890fa9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Metal") @NativeClass/**/ +/**/public/**/ class /**/MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArrayPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray.class); }/**/ + /**//**/ + /**/ + public MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray() {} + protected MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray(Handle h, long handle) { super(h, handle); } + protected MTLAccelerationStructurePassSampleBufferAttachmentDescriptorArray(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "objectAtIndexedSubscript:") + public native MTLAccelerationStructurePassSampleBufferAttachmentDescriptor objectAtIndexedSubscript(@MachineSizedUInt long attachmentIndex); + @Method(selector = "setObject:atIndexedSubscript:") + public native void setObject(MTLAccelerationStructurePassSampleBufferAttachmentDescriptor attachment, @MachineSizedUInt long attachmentIndex); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureRefitOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureRefitOptions.java new file mode 100644 index 000000000..9e1ae4732 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureRefitOptions.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/MTLAccelerationStructureRefitOptions/**/ extends Bits*/MTLAccelerationStructureRefitOptions/**/> { + /**/ + public static final MTLAccelerationStructureRefitOptions None = new MTLAccelerationStructureRefitOptions(0L); + public static final MTLAccelerationStructureRefitOptions VertexData = new MTLAccelerationStructureRefitOptions(1L); + public static final MTLAccelerationStructureRefitOptions PerPrimitiveData = new MTLAccelerationStructureRefitOptions(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/MTLAccelerationStructureRefitOptions/**/[] values = _values(/**/MTLAccelerationStructureRefitOptions/**/.class); + + public /**/MTLAccelerationStructureRefitOptions/**/(long value) { super(value); } + private /**/MTLAccelerationStructureRefitOptions/**/(long value, long mask) { super(value, mask); } + protected /**/MTLAccelerationStructureRefitOptions/**/ wrap(long value, long mask) { + return new /**/MTLAccelerationStructureRefitOptions/**/(value, mask); + } + protected /**/MTLAccelerationStructureRefitOptions/**/[] _values() { + return values; + } + public static /**/MTLAccelerationStructureRefitOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureTriangleGeometryDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureTriangleGeometryDescriptor.java index 8fba46122..49164f865 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureTriangleGeometryDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLAccelerationStructureTriangleGeometryDescriptor.java @@ -58,6 +58,16 @@ public MTLAccelerationStructureTriangleGeometryDescriptor() {} public native @MachineSizedUInt long getVertexBufferOffset(); @Property(selector = "setVertexBufferOffset:") public native void setVertexBufferOffset(@MachineSizedUInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "vertexFormat") + public native MTLAttributeFormat getVertexFormat(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setVertexFormat:") + public native void setVertexFormat(MTLAttributeFormat v); @Property(selector = "vertexStride") public native @MachineSizedUInt long getVertexStride(); @Property(selector = "setVertexStride:") @@ -78,6 +88,26 @@ public MTLAccelerationStructureTriangleGeometryDescriptor() {} public native @MachineSizedUInt long getTriangleCount(); @Property(selector = "setTriangleCount:") public native void setTriangleCount(@MachineSizedUInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "transformationMatrixBuffer") + public native MTLBuffer getTransformationMatrixBuffer(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTransformationMatrixBuffer:") + public native void setTransformationMatrixBuffer(MTLBuffer v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "transformationMatrixBufferOffset") + public native @MachineSizedUInt long getTransformationMatrixBufferOffset(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setTransformationMatrixBufferOffset:") + public native void setTransformationMatrixBufferOffset(@MachineSizedUInt long v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgument.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgument.java index f5f2fd9a5..da96a35dc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgument.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgument.java @@ -32,9 +32,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. Use MTLBinding + */ /**/ -/**/@Library("Metal") @NativeClass/**/ +/**/@Library("Metal") @NativeClass @Deprecated/**/ /**/public/**/ class /**/MTLArgument/**/ extends /**/NSObject/**/ /**//**/ { diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgumentType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgumentType.java index f5ff5b08d..273b33015 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgumentType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLArgumentType.java @@ -32,9 +32,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. Use MTLBindingType + */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class) @Deprecated/**/ public enum /**/MTLArgumentType/**/ implements ValuedEnum { /**/ Buffer(0L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinaryArchiveError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinaryArchiveError.java index 7581d2df2..8f3f2dded 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinaryArchiveError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinaryArchiveError.java @@ -42,7 +42,11 @@ public enum /**/MTLBinaryArchiveError/**/ implements NSErrorCode { None(0L), InvalidFile(1L), UnexpectedElement(2L), - CompilationFailure(3L); + CompilationFailure(3L), + /** + * @since Available in iOS 16.0 and later. + */ + InternalError(4L); /**/ /**/static { Bro.bind(MTLBinaryArchiveError.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinding.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinding.java new file mode 100644 index 000000000..9199e0ce3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBinding.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLBinding/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "name") + String getName(); + @Property(selector = "type") + MTLBindingType getType(); + @Property(selector = "access") + MTLArgumentAccess getAccess(); + @Property(selector = "index") + @MachineSizedUInt long getIndex(); + @Property(selector = "isUsed") + boolean isUsed(); + @Property(selector = "isArgument") + boolean isArgument(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingAdapter.java new file mode 100644 index 000000000..e15715e6f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingAdapter.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLBindingAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("name") + public String getName() { return null; } + @NotImplemented("type") + public MTLBindingType getType() { return null; } + @NotImplemented("access") + public MTLArgumentAccess getAccess() { return null; } + @NotImplemented("index") + public @MachineSizedUInt long getIndex() { return 0; } + @NotImplemented("isUsed") + public boolean isUsed() { return false; } + @NotImplemented("isArgument") + public boolean isArgument() { return false; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingType.java new file mode 100644 index 000000000..38f3ac113 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBindingType.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 14.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLBindingType/**/ implements ValuedEnum { + /**/ + Buffer(0L), + ThreadgroupMemory(1L), + Texture(2L), + Sampler(3L), + ImageblockData(16L), + Imageblock(17L), + VisibleFunctionTable(24L), + PrimitiveAccelerationStructure(25L), + InstanceAccelerationStructure(26L), + IntersectionFunctionTable(27L), + ObjectPayload(34L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLBindingType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLBindingType/**/ valueOf(long n) { + for (/**/MTLBindingType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLBindingType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBuffer.java index fcd3c5ff5..9d601077d 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBuffer.java @@ -48,6 +48,11 @@ /**/ @Property(selector = "length") public native @MachineSizedUInt long getLength(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuAddress") + public native long getGpuAddress(); @Property(selector = "label") public native String getLabel(); @Property(selector = "setLabel:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBinding.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBinding.java new file mode 100644 index 000000000..03f2cb3f2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBinding.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLBufferBinding/**/ + /**/extends MTLBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "bufferAlignment") + @MachineSizedUInt long getBufferAlignment(); + @Property(selector = "bufferDataSize") + @MachineSizedUInt long getBufferDataSize(); + @Property(selector = "bufferDataType") + MTLDataType getBufferDataType(); + @Property(selector = "bufferStructType") + MTLStructType getBufferStructType(); + @Property(selector = "bufferPointerType") + MTLPointerType getBufferPointerType(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBindingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBindingAdapter.java new file mode 100644 index 000000000..774d13ee2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLBufferBindingAdapter.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLBufferBindingAdapter/**/ + extends /**/MTLBindingAdapter/**/ + /**/implements MTLBufferBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("bufferAlignment") + public @MachineSizedUInt long getBufferAlignment() { return 0; } + @NotImplemented("bufferDataSize") + public @MachineSizedUInt long getBufferDataSize() { return 0; } + @NotImplemented("bufferDataType") + public MTLDataType getBufferDataType() { return null; } + @NotImplemented("bufferStructType") + public MTLStructType getBufferStructType() { return null; } + @NotImplemented("bufferPointerType") + public MTLPointerType getBufferPointerType() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBuffer.java index 261571bdf..4f6c039c8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBuffer.java @@ -159,6 +159,11 @@ */ @Method(selector = "accelerationStructureCommandEncoder") MTLAccelerationStructureCommandEncoder accelerationStructureCommandEncoder(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "accelerationStructureCommandEncoderWithDescriptor:") + MTLAccelerationStructureCommandEncoder accelerationStructureCommandEncoder(MTLAccelerationStructurePassDescriptor descriptor); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBufferErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBufferErrorCode.java index 007125d43..75a7ae0ec 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBufferErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCommandBufferErrorCode.java @@ -42,6 +42,10 @@ public enum /**/MTLCommandBufferErrorCode/**/ implements NSErrorCod Internal(1L), Timeout(2L), PageFault(3L), + /** + * @deprecated Deprecated in iOS 16.0. Use MTLCommandBufferErrorAccessRevoked + */ + @Deprecated Blacklisted(4L), AccessRevoked(4L), NotPermitted(7L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCompileOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCompileOptions.java index cd07ece4d..2ae8e531a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCompileOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLCompileOptions.java @@ -97,15 +97,25 @@ public MTLCompileOptions() {} @Property(selector = "setLibraries:") public native void setLibraries(NSArray v); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 14.0 and later. */ @Property(selector = "preserveInvariance") public native boolean isPreserveInvariance(); /** - * @since Available in iOS 13.0 and later. + * @since Available in iOS 14.0 and later. */ @Property(selector = "setPreserveInvariance:") public native void setPreserveInvariance(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "optimizationLevel") + public native MTLLibraryOptimizationLevel getOptimizationLevel(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setOptimizationLevel:") + public native void setOptimizationLevel(MTLLibraryOptimizationLevel v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineReflection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineReflection.java index 78b8a2842..8e78b6904 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineReflection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineReflection.java @@ -48,6 +48,15 @@ public MTLComputePipelineReflection() {} protected MTLComputePipelineReflection(SkipInit skipInit) { super(skipInit); } /**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "bindings") + public native NSArray getBindings(); + /** + * @deprecated Deprecated in iOS 16.0. Use bindings + */ + @Deprecated @Property(selector = "arguments") public native NSArray getArguments(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineState.java index 792b5af76..e696226ba 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLComputePipelineState.java @@ -67,6 +67,11 @@ */ @Property(selector = "supportIndirectCommandBuffers") public native boolean isSupportIndirectCommandBuffers(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + public native @ByVal MTLResourceID getGpuResourceID(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLDevice.java index b530ebce1..1fc51098a 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLDevice.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLDevice.java @@ -100,7 +100,9 @@ public native boolean supportsPullModelInterpolation(); /** * @since Available in iOS 14.0 and later. + * @deprecated Deprecated in iOS 16.0. Use supportsShaderBarycentricCoordinates */ + @Deprecated @Property(selector = "areBarycentricCoordsSupported") public native boolean isBarycentricCoordsSupported(); /** @@ -263,15 +265,23 @@ public MTLLibrary newDefaultLibrary(NSBundle bundle) throws NSErrorException { * @since Available in iOS 10.0 and later. */ @Method(selector = "newDefaultLibraryWithBundle:error:") - private native MTLLibrary newDefaultLibrary(NSBundle bundle, NSError.NSErrorPtr error); + public native MTLLibrary newDefaultLibrary(NSBundle bundle, NSError.NSErrorPtr error); + /** + * @deprecated Deprecated in iOS 16.0. Use -newLibraryWithURL:error: instead + */ + @Deprecated public MTLLibrary newLibraryWithFile(String filepath) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); MTLLibrary result = newLibraryWithFile(filepath, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } + /** + * @deprecated Deprecated in iOS 16.0. Use -newLibraryWithURL:error: instead + */ + @Deprecated @Method(selector = "newLibraryWithFile:error:") - private native MTLLibrary newLibraryWithFile(String filepath, NSError.NSErrorPtr error); + public native MTLLibrary newLibraryWithFile(String filepath, NSError.NSErrorPtr error); /** * @since Available in iOS 11.0 and later. */ @@ -285,7 +295,7 @@ public MTLLibrary newLibrary(NSURL url) throws NSErrorException { * @since Available in iOS 11.0 and later. */ @Method(selector = "newLibraryWithURL:error:") - private native MTLLibrary newLibrary(NSURL url, NSError.NSErrorPtr error); + public native MTLLibrary newLibrary(NSURL url, NSError.NSErrorPtr error); @WeaklyLinked public MTLLibrary newLibraryWithData(DispatchData data) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); @@ -295,7 +305,7 @@ public MTLLibrary newLibraryWithData(DispatchData data) throws NSErrorException } @WeaklyLinked @Method(selector = "newLibraryWithData:error:") - private native MTLLibrary newLibraryWithData(DispatchData data, NSError.NSErrorPtr error); + public native MTLLibrary newLibraryWithData(DispatchData data, NSError.NSErrorPtr error); public MTLLibrary newLibraryWithSource(String source, MTLCompileOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); MTLLibrary result = newLibraryWithSource(source, options, ptr); @@ -303,7 +313,7 @@ public MTLLibrary newLibraryWithSource(String source, MTLCompileOptions options) return result; } @Method(selector = "newLibraryWithSource:options:error:") - private native MTLLibrary newLibraryWithSource(String source, MTLCompileOptions options, NSError.NSErrorPtr error); + public native MTLLibrary newLibraryWithSource(String source, MTLCompileOptions options, NSError.NSErrorPtr error); @Method(selector = "newLibraryWithSource:options:completionHandler:") public native void newLibraryWithSource(String source, MTLCompileOptions options, @Block VoidBlock2 completionHandler); /** @@ -323,7 +333,7 @@ public MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor return result; } @Method(selector = "newRenderPipelineStateWithDescriptor:error:") - private native MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, NSError.NSErrorPtr error); + public native MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, NSError.NSErrorPtr error); public MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); MTLRenderPipelineState result = newRenderPipelineState(descriptor, options, reflection, ptr); @@ -331,7 +341,7 @@ public MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor return result; } @Method(selector = "newRenderPipelineStateWithDescriptor:options:reflection:error:") - private native MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection, NSError.NSErrorPtr error); + public native MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection, NSError.NSErrorPtr error); @Method(selector = "newRenderPipelineStateWithDescriptor:completionHandler:") public native void newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, @Block VoidBlock2 completionHandler); @Method(selector = "newRenderPipelineStateWithDescriptor:options:completionHandler:") @@ -343,7 +353,7 @@ public MTLComputePipelineState newComputePipelineState(MTLFunction computeFuncti return result; } @Method(selector = "newComputePipelineStateWithFunction:error:") - private native MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, NSError.NSErrorPtr error); + public native MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, NSError.NSErrorPtr error); public MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); MTLComputePipelineState result = newComputePipelineState(computeFunction, options, reflection, ptr); @@ -351,7 +361,7 @@ public MTLComputePipelineState newComputePipelineState(MTLFunction computeFuncti return result; } @Method(selector = "newComputePipelineStateWithFunction:options:reflection:error:") - private native MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection, NSError.NSErrorPtr error); + public native MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection, NSError.NSErrorPtr error); @Method(selector = "newComputePipelineStateWithFunction:completionHandler:") public native void newComputePipelineState(MTLFunction computeFunction, @Block VoidBlock2 completionHandler); @Method(selector = "newComputePipelineStateWithFunction:options:completionHandler:") @@ -369,7 +379,7 @@ public MTLComputePipelineState newComputePipelineState(MTLComputePipelineDescrip * @since Available in iOS 9.0 and later. */ @Method(selector = "newComputePipelineStateWithDescriptor:options:reflection:error:") - private native MTLComputePipelineState newComputePipelineState(MTLComputePipelineDescriptor descriptor, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection, NSError.NSErrorPtr error); + public native MTLComputePipelineState newComputePipelineState(MTLComputePipelineDescriptor descriptor, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection, NSError.NSErrorPtr error); /** * @since Available in iOS 9.0 and later. */ @@ -380,6 +390,10 @@ public MTLComputePipelineState newComputePipelineState(MTLComputePipelineDescrip */ @Method(selector = "newFence") public native MTLFence newFence(); + /** + * @deprecated Deprecated in iOS 16.0. Use supportsFamily instead + */ + @Deprecated @Method(selector = "supportsFeatureSet:") public native boolean supportsFeatureSet(MTLFeatureSet featureSet); /** @@ -415,12 +429,31 @@ public MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescri * @since Available in iOS 11.0 and later. */ @Method(selector = "newRenderPipelineStateWithTileDescriptor:options:reflection:error:") - private native MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection, NSError.NSErrorPtr error); + public native MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection, NSError.NSErrorPtr error); /** * @since Available in iOS 11.0 and later. */ @Method(selector = "newRenderPipelineStateWithTileDescriptor:options:completionHandler:") public native void newRenderPipelineState(MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, @Block VoidBlock3 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + public MTLRenderPipelineState newRenderPipelineState(MTLMeshRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + MTLRenderPipelineState result = newRenderPipelineState(descriptor, options, reflection, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newRenderPipelineStateWithMeshDescriptor:options:reflection:error:") + public native MTLRenderPipelineState newRenderPipelineState(MTLMeshRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newRenderPipelineStateWithMeshDescriptor:options:completionHandler:") + public native void newRenderPipelineState(MTLMeshRenderPipelineDescriptor descriptor, MTLPipelineOption options, @Block VoidBlock3 completionHandler); /** * @since Available in iOS 11.0 and later. */ @@ -461,6 +494,21 @@ public MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescri */ @Method(selector = "newSharedEventWithHandle:") public native MTLSharedEvent newSharedEvent(MTLSharedEventHandle sharedEventHandle); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newIOHandleWithURL:error:") + public native MTLIOFileHandle newIOHandle(NSURL url, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newIOCommandQueueWithDescriptor:error:") + public native MTLIOCommandQueue newIOCommandQueue(MTLIOCommandQueueDescriptor descriptor, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newIOHandleWithURL:compressionMethod:error:") + public native MTLIOFileHandle newIOHandle(NSURL url, MTLIOCompressionMethod compressionMethod, NSError.NSErrorPtr error); /** * @since Available in iOS 13.0 and later. */ @@ -476,6 +524,16 @@ public MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescri */ @Method(selector = "convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:") public native void convertSparseTileRegions(MTLRegion tileRegions, MTLRegion pixelRegions, @ByVal MTLSize tileSize, @MachineSizedUInt long numRegions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sparseTileSizeInBytesForSparsePageSize:") + public native @MachineSizedUInt long sparseTileSizeInBytesForSparsePageSize(MTLSparsePageSize sparsePageSize); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sparseTileSizeWithTextureType:pixelFormat:sampleCount:sparsePageSize:") + public native @ByVal MTLSize sparseTileSize(MTLTextureType textureType, MTLPixelFormat pixelFormat, @MachineSizedUInt long sampleCount, MTLSparsePageSize sparsePageSize); /** * @since Available in iOS 14.0 and later. */ @@ -486,6 +544,11 @@ public MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescri */ @Method(selector = "sampleTimestamps:gpuTimestamp:") public native void sampleTimestamps(LongPtr cpuTimestamp, LongPtr gpuTimestamp); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newArgumentEncoderWithBufferBinding:") + public native MTLArgumentEncoder newArgumentEncoder(MTLBufferBinding bufferBinding); /** * @since Available in iOS 14.0 and later. */ @@ -526,5 +589,15 @@ public MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescri */ @Method(selector = "newAccelerationStructureWithDescriptor:") public native MTLAccelerationStructure newAccelerationStructure(MTLAccelerationStructureDescriptor descriptor); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "heapAccelerationStructureSizeAndAlignWithSize:") + public native @ByVal MTLSizeAndAlign heapAccelerationStructureSizeAndAlign(@MachineSizedUInt long size); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "heapAccelerationStructureSizeAndAlignWithDescriptor:") + public native @ByVal MTLSizeAndAlign heapAccelerationStructureSizeAndAlign(MTLAccelerationStructureDescriptor descriptor); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFeatureSet.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFeatureSet.java index 2b9ff03c1..7864fd79b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFeatureSet.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFeatureSet.java @@ -32,9 +32,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. Use MTLGPUFamily instead + */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class) @Deprecated/**/ public enum /**/MTLFeatureSet/**/ implements ValuedEnum { /**/ iOS_GPUFamily1_v1(0L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFunctionType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFunctionType.java index a740b5bc2..78dcd6769 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFunctionType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLFunctionType.java @@ -47,7 +47,15 @@ public enum /**/MTLFunctionType/**/ implements ValuedEnum { /** * @since Available in iOS 14.0 and later. */ - Intersection(6L); + Intersection(6L), + /** + * @since Available in iOS 16.0 and later. + */ + Mesh(7L), + /** + * @since Available in iOS 16.0 and later. + */ + Object(8L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLGPUFamily.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLGPUFamily.java index 5224d0ec2..9ca9e6473 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLGPUFamily.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLGPUFamily.java @@ -47,13 +47,32 @@ public enum /**/MTLGPUFamily/**/ implements ValuedEnum { Apple6(1006L), Apple7(1007L), Apple8(1008L), + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use MTLGPUFamilyMac2 + */ + @Deprecated Mac1(2001L), Mac2(2002L), Common1(3001L), Common2(3002L), Common3(3003L), + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use MTLGPUFamilyMac2 + */ + @Deprecated MacCatalyst1(4001L), - MacCatalyst2(4002L); + /** + * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Use MTLGPUFamilyMac2 + */ + @Deprecated + MacCatalyst2(4002L), + /** + * @since Available in iOS 16.0 and later. + */ + Metal3(5001L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeap.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeap.java index 76245d688..3911d65f2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeap.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeap.java @@ -100,6 +100,26 @@ */ @Method(selector = "newTextureWithDescriptor:offset:") MTLTexture newTexture(MTLTextureDescriptor descriptor, @MachineSizedUInt long offset); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newAccelerationStructureWithSize:") + MTLAccelerationStructure newAccelerationStructure(@MachineSizedUInt long size); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newAccelerationStructureWithDescriptor:") + MTLAccelerationStructure newAccelerationStructure(MTLAccelerationStructureDescriptor descriptor); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newAccelerationStructureWithSize:offset:") + MTLAccelerationStructure newAccelerationStructure(@MachineSizedUInt long size, @MachineSizedUInt long offset); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "newAccelerationStructureWithDescriptor:offset:") + MTLAccelerationStructure newAccelerationStructure(MTLAccelerationStructureDescriptor descriptor, @MachineSizedUInt long offset); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapAdapter.java index 39ec4829a..19c66ee44 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapAdapter.java @@ -100,5 +100,25 @@ public void setLabel(String v) {} */ @NotImplemented("newTextureWithDescriptor:offset:") public MTLTexture newTexture(MTLTextureDescriptor descriptor, @MachineSizedUInt long offset) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("newAccelerationStructureWithSize:") + public MTLAccelerationStructure newAccelerationStructure(@MachineSizedUInt long size) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("newAccelerationStructureWithDescriptor:") + public MTLAccelerationStructure newAccelerationStructure(MTLAccelerationStructureDescriptor descriptor) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("newAccelerationStructureWithSize:offset:") + public MTLAccelerationStructure newAccelerationStructure(@MachineSizedUInt long size, @MachineSizedUInt long offset) { return null; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("newAccelerationStructureWithDescriptor:offset:") + public MTLAccelerationStructure newAccelerationStructure(MTLAccelerationStructureDescriptor descriptor, @MachineSizedUInt long offset) { return null; } /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapDescriptor.java index b40d04fb6..0fd75cea8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLHeapDescriptor.java @@ -62,6 +62,16 @@ public MTLHeapDescriptor() {} public native MTLCPUCacheMode getCpuCacheMode(); @Property(selector = "setCpuCacheMode:") public native void setCpuCacheMode(MTLCPUCacheMode v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "sparsePageSize") + public native MTLSparsePageSize getSparsePageSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSparsePageSize:") + public native void setSparsePageSize(MTLSparsePageSize v); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBuffer.java new file mode 100644 index 000000000..2f8276d05 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBuffer.java @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLIOCommandBuffer/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "label") + String getLabel(); + @Property(selector = "setLabel:") + void setLabel(String v); + @Property(selector = "status") + MTLIOStatus getStatus(); + @Property(selector = "error") + NSError getError(); + /**/ + /**/ + @Method(selector = "addCompletedHandler:") + void addCompletedHandler(@Block VoidBlock1 block); + @Method(selector = "loadBytes:size:sourceHandle:sourceHandleOffset:") + void loadBytes(VoidPtr pointer, @MachineSizedUInt long size, MTLIOFileHandle sourceHandle, @MachineSizedUInt long sourceHandleOffset); + @Method(selector = "loadBuffer:offset:size:sourceHandle:sourceHandleOffset:") + void loadBuffer(MTLBuffer buffer, @MachineSizedUInt long offset, @MachineSizedUInt long size, MTLIOFileHandle sourceHandle, @MachineSizedUInt long sourceHandleOffset); + @Method(selector = "loadTexture:slice:level:size:sourceBytesPerRow:sourceBytesPerImage:destinationOrigin:sourceHandle:sourceHandleOffset:") + void loadTexture(MTLTexture texture, @MachineSizedUInt long slice, @MachineSizedUInt long level, @ByVal MTLSize size, @MachineSizedUInt long sourceBytesPerRow, @MachineSizedUInt long sourceBytesPerImage, @ByVal MTLOrigin destinationOrigin, MTLIOFileHandle sourceHandle, @MachineSizedUInt long sourceHandleOffset); + @Method(selector = "copyStatusToBuffer:offset:") + void copyStatus(MTLBuffer buffer, @MachineSizedUInt long offset); + @Method(selector = "commit") + void commit(); + @Method(selector = "waitUntilCompleted") + void waitUntilCompleted(); + @Method(selector = "tryCancel") + void tryCancel(); + @Method(selector = "addBarrier") + void addBarrier(); + @Method(selector = "pushDebugGroup:") + void pushDebugGroup(String string); + @Method(selector = "popDebugGroup") + void popDebugGroup(); + @Method(selector = "enqueue") + void enqueue(); + @Method(selector = "waitForEvent:value:") + void waitForEvent(MTLSharedEvent event, long value); + @Method(selector = "signalEvent:value:") + void signalEvent(MTLSharedEvent event, long value); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBufferAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBufferAdapter.java new file mode 100644 index 000000000..1bd7b5982 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandBufferAdapter.java @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLIOCommandBufferAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLIOCommandBuffer/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("label") + public String getLabel() { return null; } + @NotImplemented("setLabel:") + public void setLabel(String v) {} + @NotImplemented("status") + public MTLIOStatus getStatus() { return null; } + @NotImplemented("error") + public NSError getError() { return null; } + /**/ + /**//**/ + /**/ + @NotImplemented("addCompletedHandler:") + public void addCompletedHandler(@Block VoidBlock1 block) {} + @NotImplemented("loadBytes:size:sourceHandle:sourceHandleOffset:") + public void loadBytes(VoidPtr pointer, @MachineSizedUInt long size, MTLIOFileHandle sourceHandle, @MachineSizedUInt long sourceHandleOffset) {} + @NotImplemented("loadBuffer:offset:size:sourceHandle:sourceHandleOffset:") + public void loadBuffer(MTLBuffer buffer, @MachineSizedUInt long offset, @MachineSizedUInt long size, MTLIOFileHandle sourceHandle, @MachineSizedUInt long sourceHandleOffset) {} + @NotImplemented("loadTexture:slice:level:size:sourceBytesPerRow:sourceBytesPerImage:destinationOrigin:sourceHandle:sourceHandleOffset:") + public void loadTexture(MTLTexture texture, @MachineSizedUInt long slice, @MachineSizedUInt long level, @ByVal MTLSize size, @MachineSizedUInt long sourceBytesPerRow, @MachineSizedUInt long sourceBytesPerImage, @ByVal MTLOrigin destinationOrigin, MTLIOFileHandle sourceHandle, @MachineSizedUInt long sourceHandleOffset) {} + @NotImplemented("copyStatusToBuffer:offset:") + public void copyStatus(MTLBuffer buffer, @MachineSizedUInt long offset) {} + @NotImplemented("commit") + public void commit() {} + @NotImplemented("waitUntilCompleted") + public void waitUntilCompleted() {} + @NotImplemented("tryCancel") + public void tryCancel() {} + @NotImplemented("addBarrier") + public void addBarrier() {} + @NotImplemented("pushDebugGroup:") + public void pushDebugGroup(String string) {} + @NotImplemented("popDebugGroup") + public void popDebugGroup() {} + @NotImplemented("enqueue") + public void enqueue() {} + @NotImplemented("waitForEvent:value:") + public void waitForEvent(MTLSharedEvent event, long value) {} + @NotImplemented("signalEvent:value:") + public void signalEvent(MTLSharedEvent event, long value) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueue.java new file mode 100644 index 000000000..8fde17b66 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueue.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLIOCommandQueue/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "label") + String getLabel(); + @Property(selector = "setLabel:") + void setLabel(String v); + /**/ + /**/ + @Method(selector = "enqueueBarrier") + void enqueueBarrier(); + @Method(selector = "commandBuffer") + MTLIOCommandBuffer commandBuffer(); + @Method(selector = "commandBufferWithUnretainedReferences") + MTLIOCommandBuffer commandBufferWithUnretainedReferences(); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueAdapter.java new file mode 100644 index 000000000..ac83dfc17 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueAdapter.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLIOCommandQueueAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLIOCommandQueue/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("label") + public String getLabel() { return null; } + @NotImplemented("setLabel:") + public void setLabel(String v) {} + /**/ + /**//**/ + /**/ + @NotImplemented("enqueueBarrier") + public void enqueueBarrier() {} + @NotImplemented("commandBuffer") + public MTLIOCommandBuffer commandBuffer() { return null; } + @NotImplemented("commandBufferWithUnretainedReferences") + public MTLIOCommandBuffer commandBufferWithUnretainedReferences() { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueDescriptor.java new file mode 100644 index 000000000..aac9b5cbd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueDescriptor.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Metal") @NativeClass/**/ +/**/public/**/ class /**/MTLIOCommandQueueDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLIOCommandQueueDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLIOCommandQueueDescriptor.class); }/**/ + /**//**/ + /**/ + public MTLIOCommandQueueDescriptor() {} + protected MTLIOCommandQueueDescriptor(Handle h, long handle) { super(h, handle); } + protected MTLIOCommandQueueDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "maxCommandBufferCount") + public native @MachineSizedUInt long getMaxCommandBufferCount(); + @Property(selector = "setMaxCommandBufferCount:") + public native void setMaxCommandBufferCount(@MachineSizedUInt long v); + @Property(selector = "priority") + public native MTLIOPriority getPriority(); + @Property(selector = "setPriority:") + public native void setPriority(MTLIOPriority v); + @Property(selector = "type") + public native MTLIOCommandQueueType getType(); + @Property(selector = "setType:") + public native void setType(MTLIOCommandQueueType v); + @Property(selector = "maxCommandsInFlight") + public native @MachineSizedUInt long getMaxCommandsInFlight(); + @Property(selector = "setMaxCommandsInFlight:") + public native void setMaxCommandsInFlight(@MachineSizedUInt long v); + @Property(selector = "scratchBufferAllocator") + public native MTLIOScratchBufferAllocator getScratchBufferAllocator(); + @Property(selector = "setScratchBufferAllocator:") + public native void setScratchBufferAllocator(MTLIOScratchBufferAllocator v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueType.java new file mode 100644 index 000000000..c864da4ab --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCommandQueueType.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLIOCommandQueueType/**/ implements ValuedEnum { + /**/ + Concurrent(0L), + Serial(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLIOCommandQueueType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLIOCommandQueueType/**/ valueOf(long n) { + for (/**/MTLIOCommandQueueType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLIOCommandQueueType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionContext.java new file mode 100644 index 000000000..485b1be63 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionContext.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**/@Library("Metal")/**/ +/**/public/**/ class /**/MTLIOCompressionContext/**/ + extends /**/NativeObject/**/ + /**//**/ { + + /**/public static class MTLIOCompressionContextPtr extends Ptr {}/**/ + /**/static { Bro.bind(MTLIOCompressionContext.class); }/**/ + /**//**/ + /**/ + protected MTLIOCompressionContext() {} + /**/ + /**//**/ + /**//**/ + /**/ + @Bridge(symbol="MTLIOCompressionContextDefaultChunkSize", optional=true) + public static native @MachineSizedUInt long getDefaultChunkSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="MTLIOCreateCompressionContext", optional=true) + public static native MTLIOCompressionContext create(@org.robovm.rt.bro.annotation.Marshaler(StringMarshalers.AsAsciiZMarshaler.class) String path, MTLIOCompressionMethod type, @MachineSizedUInt long chunkSize); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="MTLIOCompressionContextAppendData", optional=true) + public native void appendData(VoidPtr data, @MachineSizedUInt long size); + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="MTLIOFlushAndDestroyCompressionContext", optional=true) + public native MTLIOCompressionStatus flushAndDestroy(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionMethod.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionMethod.java new file mode 100644 index 000000000..c280f1b5b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionMethod.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLIOCompressionMethod/**/ implements ValuedEnum { + /**/ + Zlib(0L), + LZFSE(1L), + LZ4(2L), + LZMA(3L), + LZBitmap(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLIOCompressionMethod/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLIOCompressionMethod/**/ valueOf(long n) { + for (/**/MTLIOCompressionMethod/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLIOCompressionMethod/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionStatus.java new file mode 100644 index 000000000..c77370875 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOCompressionStatus.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLIOCompressionStatus/**/ implements ValuedEnum { + /**/ + Complete(0L), + Error(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLIOCompressionStatus/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLIOCompressionStatus/**/ valueOf(long n) { + for (/**/MTLIOCompressionStatus/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLIOCompressionStatus/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOError.java new file mode 100644 index 000000000..69920ed04 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOError.java @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("Metal")/**/ +public enum /**/MTLIOError/**/ implements NSErrorCode { + /**/ + URLInvalid(1L), + Internal(2L); + /**/ + + /**/static { Bro.bind(MTLIOError.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="MTLIOErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/MTLIOError/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLIOError/**/ valueOf(long n) { + for (/**/MTLIOError/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLIOError/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/MTLIOError/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/MTLIOError/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandle.java new file mode 100644 index 000000000..55654cddc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandle.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLIOFileHandle/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "label") + String getLabel(); + @Property(selector = "setLabel:") + void setLabel(String v); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandleAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandleAdapter.java new file mode 100644 index 000000000..7c82ca11e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOFileHandleAdapter.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLIOFileHandleAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLIOFileHandle/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("label") + public String getLabel() { return null; } + @NotImplemented("setLabel:") + public void setLabel(String v) {} + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOPriority.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOPriority.java new file mode 100644 index 000000000..c77508e72 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOPriority.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLIOPriority/**/ implements ValuedEnum { + /**/ + High(0L), + Normal(1L), + Low(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLIOPriority/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLIOPriority/**/ valueOf(long n) { + for (/**/MTLIOPriority/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLIOPriority/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBuffer.java new file mode 100644 index 000000000..221b1dff4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBuffer.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLIOScratchBuffer/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "buffer") + MTLBuffer getBuffer(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAdapter.java new file mode 100644 index 000000000..f638a1172 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAdapter.java @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLIOScratchBufferAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLIOScratchBuffer/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("buffer") + public MTLBuffer getBuffer() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocator.java new file mode 100644 index 000000000..af5eb44ad --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocator.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLIOScratchBufferAllocator/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "newScratchBufferWithMinimumSize:") + MTLIOScratchBuffer newScratchBuffer(@MachineSizedUInt long minimumSize); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocatorAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocatorAdapter.java new file mode 100644 index 000000000..28a3c0f54 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOScratchBufferAllocatorAdapter.java @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLIOScratchBufferAllocatorAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLIOScratchBufferAllocator/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("newScratchBufferWithMinimumSize:") + public MTLIOScratchBuffer newScratchBuffer(@MachineSizedUInt long minimumSize) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOStatus.java new file mode 100644 index 000000000..a089136ca --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIOStatus.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLIOStatus/**/ implements ValuedEnum { + /**/ + Pending(0L), + Cancelled(1L), + Error(2L), + Complete(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLIOStatus/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLIOStatus/**/ valueOf(long n) { + for (/**/MTLIOStatus/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLIOStatus/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBuffer.java index 3b221ddf0..7a864de02 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBuffer.java @@ -48,6 +48,11 @@ /**/ @Property(selector = "size") @MachineSizedUInt long getSize(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + @ByVal MTLResourceID getGpuResourceID(); /**/ /**/ @Method(selector = "resetWithRange:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferAdapter.java index 14c893d9a..fea63bc19 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferAdapter.java @@ -47,6 +47,11 @@ /**/ @NotImplemented("size") public @MachineSizedUInt long getSize() { return 0; } + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("gpuResourceID") + public @ByVal MTLResourceID getGpuResourceID() { return null; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferDescriptor.java index e2068bce7..27e80c7e7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIndirectCommandBufferDescriptor.java @@ -86,6 +86,16 @@ public MTLIndirectCommandBufferDescriptor() {} */ @Property(selector = "setMaxKernelBufferBindCount:") public native void setMaxKernelBufferBindCount(@MachineSizedUInt long v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "supportRayTracing") + public native boolean isSupportRayTracing(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSupportRayTracing:") + public native void setSupportRayTracing(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTable.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTable.java index b2c3951b6..faf677bbb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTable.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTable.java @@ -46,7 +46,11 @@ /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + @ByVal MTLResourceID getGpuResourceID(); /**/ /**/ @Method(selector = "setBuffer:offset:atIndex:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTableAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTableAdapter.java index 55e7e9564..6f827bf2f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTableAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLIntersectionFunctionTableAdapter.java @@ -45,7 +45,11 @@ /**//**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("gpuResourceID") + public @ByVal MTLResourceID getGpuResourceID() { return null; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLanguageVersion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLanguageVersion.java index 509657291..60d8af126 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLanguageVersion.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLanguageVersion.java @@ -41,7 +41,9 @@ public enum /**/MTLLanguageVersion/**/ implements ValuedEnum { /**/ /** * @since Available in iOS 9.0 and later. + * @deprecated Deprecated in iOS 16.0. Use a newer language standard */ + @Deprecated Version1_0(65536L), /** * @since Available in iOS 9.0 and later. @@ -70,7 +72,11 @@ public enum /**/MTLLanguageVersion/**/ implements ValuedEnum { /** * @since Available in iOS 15.0 and later. */ - Version2_4(131076L); + Version2_4(131076L), + /** + * @since Available in iOS 16.0 and later. + */ + Version3_0(196608L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibrary.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibrary.java index 7476dd4a5..b7e89a51e 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibrary.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibrary.java @@ -82,7 +82,7 @@ public MTLFunction newFunction(String name, MTLFunctionConstantValues constantVa * @since Available in iOS 10.0 and later. */ @Method(selector = "newFunctionWithName:constantValues:error:") - private native MTLFunction newFunction(String name, MTLFunctionConstantValues constantValues, NSError.NSErrorPtr error); + public native MTLFunction newFunction(String name, MTLFunctionConstantValues constantValues, NSError.NSErrorPtr error); /** * @since Available in iOS 10.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibraryOptimizationLevel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibraryOptimizationLevel.java new file mode 100644 index 000000000..5bb8cbf2a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLibraryOptimizationLevel.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLLibraryOptimizationLevel/**/ implements ValuedEnum { + /**/ + Default(0L), + Size(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLLibraryOptimizationLevel/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLLibraryOptimizationLevel/**/ valueOf(long n) { + for (/**/MTLLibraryOptimizationLevel/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLLibraryOptimizationLevel/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLinkedFunctions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLinkedFunctions.java index c58ea0bc9..5b813a03c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLinkedFunctions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLLinkedFunctions.java @@ -54,8 +54,14 @@ public MTLLinkedFunctions() {} public native NSArray getFunctions(); @Property(selector = "setFunctions:") public native void setFunctions(NSArray v); + /** + * @since Available in iOS 14.0 and later. + */ @Property(selector = "binaryFunctions") public native NSArray getBinaryFunctions(); + /** + * @since Available in iOS 14.0 and later. + */ @Property(selector = "setBinaryFunctions:") public native void setBinaryFunctions(NSArray v); @Property(selector = "groups") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLMeshRenderPipelineDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLMeshRenderPipelineDescriptor.java new file mode 100644 index 000000000..177d719be --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLMeshRenderPipelineDescriptor.java @@ -0,0 +1,135 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("Metal") @NativeClass/**/ +/**/public/**/ class /**/MTLMeshRenderPipelineDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLMeshRenderPipelineDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLMeshRenderPipelineDescriptor.class); }/**/ + /**//**/ + /**/ + public MTLMeshRenderPipelineDescriptor() {} + protected MTLMeshRenderPipelineDescriptor(Handle h, long handle) { super(h, handle); } + protected MTLMeshRenderPipelineDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "label") + public native String getLabel(); + @Property(selector = "setLabel:") + public native void setLabel(String v); + @Property(selector = "objectFunction") + public native MTLFunction getObjectFunction(); + @Property(selector = "setObjectFunction:") + public native void setObjectFunction(MTLFunction v); + @Property(selector = "meshFunction") + public native MTLFunction getMeshFunction(); + @Property(selector = "setMeshFunction:") + public native void setMeshFunction(MTLFunction v); + @Property(selector = "fragmentFunction") + public native MTLFunction getFragmentFunction(); + @Property(selector = "setFragmentFunction:") + public native void setFragmentFunction(MTLFunction v); + @Property(selector = "maxTotalThreadsPerObjectThreadgroup") + public native @MachineSizedUInt long getMaxTotalThreadsPerObjectThreadgroup(); + @Property(selector = "setMaxTotalThreadsPerObjectThreadgroup:") + public native void setMaxTotalThreadsPerObjectThreadgroup(@MachineSizedUInt long v); + @Property(selector = "maxTotalThreadsPerMeshThreadgroup") + public native @MachineSizedUInt long getMaxTotalThreadsPerMeshThreadgroup(); + @Property(selector = "setMaxTotalThreadsPerMeshThreadgroup:") + public native void setMaxTotalThreadsPerMeshThreadgroup(@MachineSizedUInt long v); + @Property(selector = "objectThreadgroupSizeIsMultipleOfThreadExecutionWidth") + public native boolean isObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth(); + @Property(selector = "setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth:") + public native void setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth(boolean v); + @Property(selector = "meshThreadgroupSizeIsMultipleOfThreadExecutionWidth") + public native boolean isMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth(); + @Property(selector = "setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth:") + public native void setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth(boolean v); + @Property(selector = "payloadMemoryLength") + public native @MachineSizedUInt long getPayloadMemoryLength(); + @Property(selector = "setPayloadMemoryLength:") + public native void setPayloadMemoryLength(@MachineSizedUInt long v); + @Property(selector = "maxTotalThreadgroupsPerMeshGrid") + public native @MachineSizedUInt long getMaxTotalThreadgroupsPerMeshGrid(); + @Property(selector = "setMaxTotalThreadgroupsPerMeshGrid:") + public native void setMaxTotalThreadgroupsPerMeshGrid(@MachineSizedUInt long v); + @Property(selector = "objectBuffers") + public native MTLPipelineBufferDescriptorArray getObjectBuffers(); + @Property(selector = "meshBuffers") + public native MTLPipelineBufferDescriptorArray getMeshBuffers(); + @Property(selector = "fragmentBuffers") + public native MTLPipelineBufferDescriptorArray getFragmentBuffers(); + @Property(selector = "rasterSampleCount") + public native @MachineSizedUInt long getRasterSampleCount(); + @Property(selector = "setRasterSampleCount:") + public native void setRasterSampleCount(@MachineSizedUInt long v); + @Property(selector = "isAlphaToCoverageEnabled") + public native boolean isAlphaToCoverageEnabled(); + @Property(selector = "setAlphaToCoverageEnabled:") + public native void setAlphaToCoverageEnabled(boolean v); + @Property(selector = "isAlphaToOneEnabled") + public native boolean isAlphaToOneEnabled(); + @Property(selector = "setAlphaToOneEnabled:") + public native void setAlphaToOneEnabled(boolean v); + @Property(selector = "isRasterizationEnabled") + public native boolean isRasterizationEnabled(); + @Property(selector = "setRasterizationEnabled:") + public native void setRasterizationEnabled(boolean v); + @Property(selector = "maxVertexAmplificationCount") + public native @MachineSizedUInt long getMaxVertexAmplificationCount(); + @Property(selector = "setMaxVertexAmplificationCount:") + public native void setMaxVertexAmplificationCount(@MachineSizedUInt long v); + @Property(selector = "colorAttachments") + public native MTLRenderPipelineColorAttachmentDescriptorArray getColorAttachments(); + @Property(selector = "depthAttachmentPixelFormat") + public native MTLPixelFormat getDepthAttachmentPixelFormat(); + @Property(selector = "setDepthAttachmentPixelFormat:") + public native void setDepthAttachmentPixelFormat(MTLPixelFormat v); + @Property(selector = "stencilAttachmentPixelFormat") + public native MTLPixelFormat getStencilAttachmentPixelFormat(); + @Property(selector = "setStencilAttachmentPixelFormat:") + public native void setStencilAttachmentPixelFormat(MTLPixelFormat v); + /**/ + /**//**/ + /**/ + @Method(selector = "reset") + public native void reset(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBinding.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBinding.java new file mode 100644 index 000000000..d35acc4d4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBinding.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLObjectPayloadBinding/**/ + /**/extends MTLBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "objectPayloadAlignment") + @MachineSizedUInt long getObjectPayloadAlignment(); + @Property(selector = "objectPayloadDataSize") + @MachineSizedUInt long getObjectPayloadDataSize(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBindingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBindingAdapter.java new file mode 100644 index 000000000..80cb853ea --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLObjectPayloadBindingAdapter.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLObjectPayloadBindingAdapter/**/ + extends /**/MTLBindingAdapter/**/ + /**/implements MTLObjectPayloadBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("objectPayloadAlignment") + public @MachineSizedUInt long getObjectPayloadAlignment() { return 0; } + @NotImplemented("objectPayloadDataSize") + public @MachineSizedUInt long getObjectPayloadDataSize() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderCommandEncoder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderCommandEncoder.java index 6ea2cc2e3..fc8cc3bdb 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderCommandEncoder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderCommandEncoder.java @@ -177,7 +177,7 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC * @since Available in iOS 15.0 and later. */ @Method(selector = "setVertexIntersectionFunctionTables:withBufferRange:") - public native void setVertexIntersectionFunctionTables(MTLIntersectionFunctionTable intersectionFunctionTable, @ByVal NSRange range); + public native void setVertexIntersectionFunctionTables(MTLIntersectionFunctionTable intersectionFunctionTables, @ByVal NSRange range); /** * @since Available in iOS 15.0 and later. */ @@ -260,7 +260,7 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC * @since Available in iOS 15.0 and later. */ @Method(selector = "setFragmentIntersectionFunctionTables:withBufferRange:") - public native void setFragmentIntersectionFunctionTables(MTLIntersectionFunctionTable intersectionFunctionTable, @ByVal NSRange range); + public native void setFragmentIntersectionFunctionTables(MTLIntersectionFunctionTable intersectionFunctionTables, @ByVal NSRange range); /** * @since Available in iOS 15.0 and later. */ @@ -309,6 +309,126 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC */ @Method(selector = "setStencilStoreActionOptions:") public native void setStencilStoreActionOptions(MTLStoreActionOptions storeActionOptions); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectBytes:length:atIndex:") + public native void setObjectBytes(VoidPtr bytes, @MachineSizedUInt long length, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectBuffer:offset:atIndex:") + public native void setObjectBuffer(MTLBuffer buffer, @MachineSizedUInt long offset, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectBufferOffset:atIndex:") + public native void setObjectBufferOffset(@MachineSizedUInt long offset, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectBuffers:offsets:withRange:") + public native void setObjectBuffers(MTLBuffer buffers, MachineSizedUIntPtr offsets, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectTexture:atIndex:") + public native void setObjectTexture(MTLTexture texture, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectTextures:withRange:") + public native void setObjectTextures(MTLTexture textures, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectSamplerState:atIndex:") + public native void setObjectSamplerState(MTLSamplerState sampler, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectSamplerStates:withRange:") + public native void setObjectSamplerStates(MTLSamplerState samplers, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectSamplerState:lodMinClamp:lodMaxClamp:atIndex:") + public native void setObjectSamplerState(MTLSamplerState sampler, float lodMinClamp, float lodMaxClamp, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectSamplerStates:lodMinClamps:lodMaxClamps:withRange:") + public native void setObjectSamplerStates(MTLSamplerState samplers, FloatPtr lodMinClamps, FloatPtr lodMaxClamps, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setObjectThreadgroupMemoryLength:atIndex:") + public native void setObjectThreadgroupMemoryLength(@MachineSizedUInt long length, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshBytes:length:atIndex:") + public native void setMeshBytes(VoidPtr bytes, @MachineSizedUInt long length, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshBuffer:offset:atIndex:") + public native void setMeshBuffer(MTLBuffer buffer, @MachineSizedUInt long offset, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshBufferOffset:atIndex:") + public native void setMeshBufferOffset(@MachineSizedUInt long offset, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshBuffers:offsets:withRange:") + public native void setMeshBuffers(MTLBuffer buffers, MachineSizedUIntPtr offsets, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshTexture:atIndex:") + public native void setMeshTexture(MTLTexture texture, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshTextures:withRange:") + public native void setMeshTextures(MTLTexture textures, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshSamplerState:atIndex:") + public native void setMeshSamplerState(MTLSamplerState sampler, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshSamplerStates:withRange:") + public native void setMeshSamplerStates(MTLSamplerState samplers, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshSamplerState:lodMinClamp:lodMaxClamp:atIndex:") + public native void setMeshSamplerState(MTLSamplerState sampler, float lodMinClamp, float lodMaxClamp, @MachineSizedUInt long index); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setMeshSamplerStates:lodMinClamps:lodMaxClamps:withRange:") + public native void setMeshSamplerStates(MTLSamplerState samplers, FloatPtr lodMinClamps, FloatPtr lodMaxClamps, @ByVal NSRange range); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "drawMeshThreadgroups:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:") + public native void drawMeshThreadgroups(@ByVal MTLSize threadgroupsPerGrid, @ByVal MTLSize threadsPerObjectThreadgroup, @ByVal MTLSize threadsPerMeshThreadgroup); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "drawMeshThreads:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:") + public native void drawMeshThreads(@ByVal MTLSize threadsPerGrid, @ByVal MTLSize threadsPerObjectThreadgroup, @ByVal MTLSize threadsPerMeshThreadgroup); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "drawMeshThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerObjectThreadgroup:threadsPerMeshThreadgroup:") + public native void drawMeshThreadgroups(MTLBuffer indirectBuffer, @MachineSizedUInt long indirectBufferOffset, @ByVal MTLSize threadsPerObjectThreadgroup, @ByVal MTLSize threadsPerMeshThreadgroup); @Method(selector = "drawPrimitives:vertexStart:vertexCount:instanceCount:") public native void drawPrimitives(MTLPrimitiveType primitiveType, @MachineSizedUInt long vertexStart, @MachineSizedUInt long vertexCount, @MachineSizedUInt long instanceCount); @Method(selector = "drawPrimitives:vertexStart:vertexCount:") @@ -446,7 +566,7 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC * @since Available in iOS 15.0 and later. */ @Method(selector = "setTileIntersectionFunctionTables:withBufferRange:") - public native void setTileIntersectionFunctionTables(MTLIntersectionFunctionTable intersectionFunctionTable, @ByVal NSRange range); + public native void setTileIntersectionFunctionTables(MTLIntersectionFunctionTable intersectionFunctionTables, @ByVal NSRange range); /** * @since Available in iOS 15.0 and later. */ @@ -464,12 +584,16 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC public native void setThreadgroupMemoryLength(@MachineSizedUInt long length, @MachineSizedUInt long offset, @MachineSizedUInt long index); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use useResource:usage:stages: instead */ + @Deprecated @Method(selector = "useResource:usage:") public native void useResource(MTLResource resource, MTLResourceUsage usage); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use useResources:count:usage:stages: instead */ + @Deprecated @Method(selector = "useResources:count:usage:") public native void useResources(MTLResource resources, @MachineSizedUInt long count, MTLResourceUsage usage); /** @@ -484,12 +608,16 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC public native void useResources(MTLResource resources, @MachineSizedUInt long count, MTLResourceUsage usage, MTLRenderStages stages); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use useHeap:stages: instead */ + @Deprecated @Method(selector = "useHeap:") public native void useHeap(MTLHeap heap); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use useHeaps:count:stages: instead */ + @Deprecated @Method(selector = "useHeaps:count:") public native void useHeaps(MTLHeap heaps, @MachineSizedUInt long count); /** @@ -512,6 +640,16 @@ public void setFragmentSamplerStates(MTLSamplerState[] samplers, float[] lodMinC */ @Method(selector = "executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:") public native void executeCommandsInBuffer(MTLIndirectCommandBuffer indirectCommandbuffer, MTLBuffer indirectRangeBuffer, @MachineSizedUInt long indirectBufferOffset); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "memoryBarrierWithScope:afterStages:beforeStages:") + public native void memoryBarrier(MTLBarrierScope scope, MTLRenderStages after, MTLRenderStages before); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "memoryBarrierWithResources:count:afterStages:beforeStages:") + public native void memoryBarrier(MTLResource resources, @MachineSizedUInt long count, MTLRenderStages after, MTLRenderStages before); /** * @since Available in iOS 14.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineDescriptor.java index 07d4ab382..160e97d06 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineDescriptor.java @@ -64,8 +64,16 @@ public MTLRenderPipelineDescriptor() {} public native MTLVertexDescriptor getVertexDescriptor(); @Property(selector = "setVertexDescriptor:") public native void setVertexDescriptor(MTLVertexDescriptor v); + /** + * @deprecated Deprecated in iOS 16.0. Use rasterSampleCount + */ + @Deprecated @Property(selector = "sampleCount") public native @MachineSizedUInt long getSampleCount(); + /** + * @deprecated Deprecated in iOS 16.0. Use rasterSampleCount + */ + @Deprecated @Property(selector = "setSampleCount:") public native void setSampleCount(@MachineSizedUInt long v); @Property(selector = "rasterSampleCount") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineReflection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineReflection.java index b7bf1dea7..4ae070709 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineReflection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineReflection.java @@ -48,13 +48,48 @@ public MTLRenderPipelineReflection() {} protected MTLRenderPipelineReflection(SkipInit skipInit) { super(skipInit); } /**/ /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "vertexBindings") + public native NSArray getVertexBindings(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "fragmentBindings") + public native NSArray getFragmentBindings(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "tileBindings") + public native NSArray getTileBindings(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "objectBindings") + public native NSArray getObjectBindings(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "meshBindings") + public native NSArray getMeshBindings(); + /** + * @deprecated Deprecated in iOS 16.0. Use vertexBindings + */ + @Deprecated @Property(selector = "vertexArguments") public native NSArray getVertexArguments(); + /** + * @deprecated Deprecated in iOS 16.0. Use fragmentBindings + */ + @Deprecated @Property(selector = "fragmentArguments") public native NSArray getFragmentArguments(); /** * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use tileBindings */ + @Deprecated @Property(selector = "tileArguments") public native NSArray getTileArguments(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineState.java index 7c05e528e..6eeb5a082 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderPipelineState.java @@ -70,6 +70,36 @@ */ @Property(selector = "supportIndirectCommandBuffers") public native boolean isSupportIndirectCommandBuffers(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "maxTotalThreadsPerObjectThreadgroup") + public native @MachineSizedUInt long getMaxTotalThreadsPerObjectThreadgroup(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "maxTotalThreadsPerMeshThreadgroup") + public native @MachineSizedUInt long getMaxTotalThreadsPerMeshThreadgroup(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "objectThreadExecutionWidth") + public native @MachineSizedUInt long getObjectThreadExecutionWidth(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "meshThreadExecutionWidth") + public native @MachineSizedUInt long getMeshThreadExecutionWidth(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "maxTotalThreadgroupsPerMeshGrid") + public native @MachineSizedUInt long getMaxTotalThreadgroupsPerMeshGrid(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + public native @ByVal MTLResourceID getGpuResourceID(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderStages.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderStages.java index b2eb28e3b..c5fa91706 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderStages.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLRenderStages.java @@ -46,6 +46,14 @@ public final class /**/MTLRenderStages/**/ extends Bits*/M * @since Available in iOS 15.0 and later. */ public static final MTLRenderStages Tile = new MTLRenderStages(4L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final MTLRenderStages Object = new MTLRenderStages(8L); + /** + * @since Available in iOS 16.0 and later. + */ + public static final MTLRenderStages Mesh = new MTLRenderStages(16L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceID.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceID.java new file mode 100644 index 000000000..ecbb3db03 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceID.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ class /**/MTLResourceID/**/ + extends /**/Struct/**/ + /**//**/ { + + /**/public static class MTLResourceIDPtr extends Ptr {}/**/ + /**/ + /**/ + /**//**/ + /**/ + public MTLResourceID() {} + public MTLResourceID(long _impl) { + this.set_impl(_impl); + } + /**/ + /**//**/ + /**/ + @StructMember(0) public native long get_impl(); + @StructMember(0) public native MTLResourceID set_impl(long _impl); + /**/ + /**//**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoder.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoder.java index fdc6857a5..ba5bae488 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoder.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoder.java @@ -74,6 +74,11 @@ */ @Method(selector = "waitForFence:") void waitForFence(MTLFence fence); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "moveTextureMappingsFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:") + void moveTextureMappings(MTLTexture sourceTexture, @MachineSizedUInt long sourceSlice, @MachineSizedUInt long sourceLevel, @ByVal MTLOrigin sourceOrigin, @ByVal MTLSize sourceSize, MTLTexture destinationTexture, @MachineSizedUInt long destinationSlice, @MachineSizedUInt long destinationLevel, @ByVal MTLOrigin destinationOrigin); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoderAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoderAdapter.java index 7c9cd1c84..cd18eeb2b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoderAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceStateCommandEncoderAdapter.java @@ -74,5 +74,10 @@ public void updateFence(MTLFence fence) {} */ @NotImplemented("waitForFence:") public void waitForFence(MTLFence fence) {} + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("moveTextureMappingsFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:") + public void moveTextureMappings(MTLTexture sourceTexture, @MachineSizedUInt long sourceSlice, @MachineSizedUInt long sourceLevel, @ByVal MTLOrigin sourceOrigin, @ByVal MTLSize sourceSize, MTLTexture destinationTexture, @MachineSizedUInt long destinationSlice, @MachineSizedUInt long destinationLevel, @ByVal MTLOrigin destinationOrigin) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceUsage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceUsage.java index c0dc51ff7..954ef725a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceUsage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLResourceUsage.java @@ -42,6 +42,11 @@ public final class /**/MTLResourceUsage/**/ extends Bits*/ public static final MTLResourceUsage None = new MTLResourceUsage(0L); public static final MTLResourceUsage Read = new MTLResourceUsage(1L); public static final MTLResourceUsage Write = new MTLResourceUsage(2L); + /** + * @since Available in iOS 11.0 and later. + * @deprecated Deprecated in iOS 16.0. Use MTLResourceUsageRead + */ + @Deprecated public static final MTLResourceUsage Sample = new MTLResourceUsage(4L); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSamplerState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSamplerState.java index 1acde4b61..66731677b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSamplerState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSamplerState.java @@ -50,6 +50,11 @@ public native String getLabel(); @Property(selector = "device") public native MTLDevice getDevice(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + public native @ByVal MTLResourceID getGpuResourceID(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSparsePageSize.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSparsePageSize.java new file mode 100644 index 000000000..ffd0c2b32 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLSparsePageSize.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLSparsePageSize/**/ implements ValuedEnum { + /**/ + _16(101L), + _64(102L), + _256(103L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLSparsePageSize/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLSparsePageSize/**/ valueOf(long n) { + for (/**/MTLSparsePageSize/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLSparsePageSize/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTexture.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTexture.java index 4cd9d60ff..8a103460b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTexture.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTexture.java @@ -142,6 +142,11 @@ */ @Property(selector = "compressionType") public native MTLTextureCompressionType getCompressionType(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + public native @ByVal MTLResourceID getGpuResourceID(); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBinding.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBinding.java new file mode 100644 index 000000000..a10664090 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBinding.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLTextureBinding/**/ + /**/extends MTLBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "textureType") + MTLTextureType getTextureType(); + @Property(selector = "textureDataType") + MTLDataType getTextureDataType(); + @Property(selector = "isDepthTexture") + boolean isDepthTexture(); + @Property(selector = "arrayLength") + @MachineSizedUInt long getArrayLength(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBindingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBindingAdapter.java new file mode 100644 index 000000000..f19ccf231 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLTextureBindingAdapter.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLTextureBindingAdapter/**/ + extends /**/MTLBindingAdapter/**/ + /**/implements MTLTextureBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("textureType") + public MTLTextureType getTextureType() { return null; } + @NotImplemented("textureDataType") + public MTLDataType getTextureDataType() { return null; } + @NotImplemented("isDepthTexture") + public boolean isDepthTexture() { return false; } + @NotImplemented("arrayLength") + public @MachineSizedUInt long getArrayLength() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBinding.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBinding.java new file mode 100644 index 000000000..d2481318f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBinding.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLThreadgroupBinding/**/ + /**/extends MTLBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "threadgroupMemoryAlignment") + @MachineSizedUInt long getThreadgroupMemoryAlignment(); + @Property(selector = "threadgroupMemoryDataSize") + @MachineSizedUInt long getThreadgroupMemoryDataSize(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBindingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBindingAdapter.java new file mode 100644 index 000000000..8c489ce0f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLThreadgroupBindingAdapter.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metal; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.dispatch.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLThreadgroupBindingAdapter/**/ + extends /**/MTLBindingAdapter/**/ + /**/implements MTLThreadgroupBinding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("threadgroupMemoryAlignment") + public @MachineSizedUInt long getThreadgroupMemoryAlignment() { return 0; } + @NotImplemented("threadgroupMemoryDataSize") + public @MachineSizedUInt long getThreadgroupMemoryDataSize() { return 0; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTable.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTable.java index bc4129d97..e50ebdf13 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTable.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTable.java @@ -46,7 +46,11 @@ /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "gpuResourceID") + @ByVal MTLResourceID getGpuResourceID(); /**/ /**/ @Method(selector = "setFunction:atIndex:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTableAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTableAdapter.java index efca9ece0..d19111a96 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTableAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metal/MTLVisibleFunctionTableAdapter.java @@ -45,7 +45,11 @@ /**//**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @NotImplemented("gpuResourceID") + public @ByVal MTLResourceID getGpuResourceID() { return null; } /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalkit/MTKView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalkit/MTKView.java index c5255e857..229192728 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalkit/MTKView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalkit/MTKView.java @@ -106,6 +106,16 @@ public MTKView() {} public native MTLPixelFormat getDepthStencilPixelFormat(); @Property(selector = "setDepthStencilPixelFormat:") public native void setDepthStencilPixelFormat(MTLPixelFormat v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "depthStencilStorageMode") + public native MTLStorageMode getDepthStencilStorageMode(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDepthStencilStorageMode:") + public native void setDepthStencilStorageMode(MTLStorageMode v); @Property(selector = "sampleCount") public native @MachineSizedUInt long getSampleCount(); @Property(selector = "setSampleCount:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSCommandBuffer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSCommandBuffer.java index cdc388e43..35eee793b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSCommandBuffer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSCommandBuffer.java @@ -189,6 +189,11 @@ protected MPSCommandBuffer() {} */ @Method(selector = "accelerationStructureCommandEncoder") public native MTLAccelerationStructureCommandEncoder accelerationStructureCommandEncoder(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "accelerationStructureCommandEncoderWithDescriptor:") + public native MTLAccelerationStructureCommandEncoder accelerationStructureCommandEncoder(MTLAccelerationStructurePassDescriptor descriptor); /** * @since Available in iOS 11.0 and later. */ From a9363c4336abefd414aa5c78821ecc8fa6f6925b Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:06:58 +0300 Subject: [PATCH 58/73] * ios16 bindings: MetalPerformanceShadersGraph updated --- .../bro-gen/metalperformanceshadersgraph.yaml | 144 ++++++++- .../robovm/apple/metalpsgraph/MPSGraph.java | 277 ++++++++++++++++++ .../MPSGraphCompilationDescriptor.java | 30 ++ ...MPSGraphExecutableExecutionDescriptor.java | 11 +- .../MPSGraphExecutionDescriptor.java | 11 +- .../metalpsgraph/MPSGraphExecutionStage.java | 65 ++++ .../metalpsgraph/MPSGraphGRUDescriptor.java | 96 ++++++ .../metalpsgraph/MPSGraphLSTMDescriptor.java | 100 +++++++ .../metalpsgraph/MPSGraphPaddingStyle.java | 6 +- .../metalpsgraph/MPSGraphRNNActivation.java | 81 +++++ .../MPSGraphResizeNearestRoundingMode.java | 77 +++++ .../MPSGraphSingleGateRNNDescriptor.java | 76 +++++ 12 files changed, 968 insertions(+), 6 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionStage.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphGRUDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphLSTMDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphRNNActivation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphResizeNearestRoundingMode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphSingleGateRNNDescriptor.java diff --git a/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml b/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml index bea132357..5a27d056a 100755 --- a/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml @@ -7,7 +7,10 @@ headers: - /System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MetalPerformanceShadersGraph.h typedefs: - + +private_typedefs: + OS_dispatch_queue: org.robovm.apple.dispatch.DispatchQueue + enums: MPSGraphTensorNamedDataLayout: {} MPSGraphPaddingStyle: {} @@ -24,6 +27,10 @@ enums: MPSGraphOptimization: {} MPSGraphOptimizationProfile: {} MPSGraphPoolingReturnIndicesMode: {prefix: MPSGraphPoolingReturnIndices} + MPSGraphExecutionStage: {} + MPSGraphResizeNearestRoundingMode: {} + MPSGraphRNNActivation: {} + categories: classes: @@ -520,6 +527,124 @@ classes: name: coordinateAlongAxis '-coordinateAlongAxisTensor:withShapeTensor:name:': name: coordinateAlongAxisTensor + '-truncateWithTensor:name:': + name: truncate + '-cumulativeSumWithTensor:axis:exclusive:reverse:name:': + name: cumulativeSum + '-cumulativeSumWithTensor:axisTensor:exclusive:reverse:name:': + name: cumulativeSum + '-cumulativeSumWithTensor:axis:name:': + name: cumulativeSum + '-cumulativeSumWithTensor:axisTensor:name:': + name: cumulativeSum + '-cumulativeProductWithTensor:axis:exclusive:reverse:name:': + name: cumulativeProduct + '-cumulativeProductWithTensor:axisTensor:exclusive:reverse:name:': + name: cumulativeProduct + '-cumulativeProductWithTensor:axis:name:': + name: cumulativeProduct + '-cumulativeProductWithTensor:axisTensor:name:': + name: cumulativeProduct + '-cumulativeMinimumWithTensor:axis:exclusive:reverse:name:': + name: cumulativeMinimum + '-cumulativeMinimumWithTensor:axisTensor:exclusive:reverse:name:': + name: cumulativeMinimum + '-cumulativeMinimumWithTensor:axis:name:': + name: cumulativeMinimum + '-cumulativeMinimumWithTensor:axisTensor:name:': + name: cumulativeMinimum + '-cumulativeMaximumWithTensor:axis:exclusive:reverse:name:': + name: cumulativeMaximum + '-cumulativeMaximumWithTensor:axisTensor:exclusive:reverse:name:': + name: cumulativeMaximum + '-cumulativeMaximumWithTensor:axis:name:': + name: cumulativeMaximum + '-cumulativeMaximumWithTensor:axisTensor:name:': + name: cumulativeMaximum + '-HammingDistanceWithPrimaryTensor:secondaryTensor:resultDataType:name:': + name: HammingDistance + '-adamWithLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:beta1PowerTensor:beta2PowerTensor:valuesTensor:momentumTensor:velocityTensor:maximumVelocityTensor:gradientTensor:name:': + name: adamWithLearningRateTensor + '-adamWithCurrentLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:valuesTensor:momentumTensor:velocityTensor:maximumVelocityTensor:gradientTensor:name:': + name: adamWithCurrentLearningRateTensor + '-maxPooling2DGradientWithGradientTensor:indicesTensor:outputShape:descriptor:name:': + name: maxPooling2DGradient + '-maxPooling2DGradientWithGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:': + name: maxPooling2DGradient + '-maxPooling4DGradientWithGradientTensor:indicesTensor:outputShape:descriptor:name:': + name: maxPooling4DGradient + '-maxPooling4DGradientWithGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:': + name: maxPooling4DGradient + '-resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:': + name: resizeNearestWithTensor + '-resizeBilinearWithTensor:sizeTensor:centerResult:alignCorners:layout:name:': + name: resizeBilinearWithTensor + '-resizeTensor:sizeTensor:scaleOffsetTensor:mode:layout:name:': + name: resizeTensor + '-resizeNearestWithTensor:sizeTensor:scaleOffsetTensor:nearestRoundingMode:layout:name:': + name: resizeNearestWithTensor + '-resizeBilinearWithTensor:sizeTensor:scaleOffsetTensor:layout:name:': + name: resizeBilinearWithTensor + '-resizeNearestWithGradientTensor:input:nearestRoundingMode:centerResult:alignCorners:layout:name:': + name: resizeNearestWithGradientTensor + '-resizeBilinearWithGradientTensor:input:centerResult:alignCorners:layout:name:': + name: resizeBilinearWithGradientTensor + '-resizeWithGradientTensor:input:scaleOffsetTensor:mode:layout:name:': + name: resizeWithGradientTensor + '-resizeNearestWithGradientTensor:input:scaleOffsetTensor:nearestRoundingMode:layout:name:': + name: resizeNearestWithGradientTensor + '-resizeBilinearWithGradientTensor:input:scaleOffsetTensor:layout:name:': + name: resizeBilinearWithGradientTensor + '-singleGateRNNWithSourceTensor:recurrentWeight:inputWeight:bias:initState:mask:descriptor:name:': + name: singleGateRNNWithSourceTensor + '-singleGateRNNWithSourceTensor:recurrentWeight:inputWeight:bias:initState:descriptor:name:': + name: singleGateRNNWithSourceTensor + '-singleGateRNNWithSourceTensor:recurrentWeight:initState:descriptor:name:': + name: singleGateRNNWithSourceTensor + '-singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:stateGradient:inputWeight:bias:initState:mask:descriptor:name:': + name: singleGateRNNGradientsWithSourceTensor + '-singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:mask:descriptor:name:': + name: singleGateRNNGradients + '-singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:descriptor:name:': + name: singleGateRNNGradientsWithSourceTensor + '-singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:initState:descriptor:name:': + name: singleGateRNNGradients + '-LSTMWithSourceTensor:recurrentWeight:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:': + name: LSTMWithSourceTensor + '-LSTMWithSourceTensor:recurrentWeight:inputWeight:bias:initState:initCell:descriptor:name:': + name: LSTMWithSourceTensor + '-LSTMWithSourceTensor:recurrentWeight:initState:initCell:descriptor:name:': + name: LSTMWithSourceTensor + '-LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:stateGradient:cellGradient:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:': + name: LSTMGradientsWithSourceTensor + '-LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:mask:descriptor:name:': + name: LSTMGradientsWithSourceTensor + '-LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:descriptor:name:': + name: LSTMGradientsWithSourceTensor + '-LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:descriptor:name:': + name: LSTMGradientsWithSourceTensor + '-GRUWithSourceTensor:recurrentWeight:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:': + name: GRUWithSourceTensor + '-GRUWithSourceTensor:recurrentWeight:inputWeight:bias:initState:descriptor:name:': + name: GRUWithSourceTensor + '-GRUWithSourceTensor:recurrentWeight:inputWeight:bias:descriptor:name:': + name: GRUWithSourceTensor + '-GRUGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:outputFwd:stateGradient:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:': + name: GRUGradientsWithSourceTensor + '-GRUGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:initState:descriptor:name:': + name: GRUGradientsWithSourceTensor + '-GRUGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:descriptor:name:': + name: GRUGradientsWithSourceTensor + '-sortWithTensor:axis:descending:name:': + name: sort + '-sortWithTensor:axisTensor:descending:name:': + name: sort + '-sortWithTensor:axis:name:': + name: sort + '-sortWithTensor:axisTensor:name:': + name: sort + '-transposeTensor:permutation:name:': + name: transposeTensor MPSGraphConvolution2DOpDescriptor: methods: '-setExplicitPaddingWithPaddingLeft:paddingRight:paddingTop:paddingBottom:': @@ -545,7 +670,12 @@ classes: '+deviceWithMTLDevice:': name: create constructor: true - MPSGraphExecutionDescriptor: {} #since 14.0 + MPSGraphExecutionDescriptor: #since 14.0 + methods: + '-waitForEvent:value:': + name: waitForEvent + '-signalEvent:atExecutionEvent:value:': + name: signalEvent MPSGraphOperation: {} #since 14.0 MPSGraphPooling2DOpDescriptor: methods: @@ -607,7 +737,12 @@ classes: name: runAsync '-encodeToCommandBuffer:inputsArray:resultsArray:executionDescriptor:': name: encodeToCommandBuffer - MPSGraphExecutableExecutionDescriptor: {} #since 15.0 + MPSGraphExecutableExecutionDescriptor: #since 15.0 + methods: + '-waitForEvent:value:': + name: waitForEvent + '-signalEvent:atExecutionEvent:value:': + name: signalEvent MPSGraphPooling4DOpDescriptor: #since 15.0 methods: '+descriptorWithKernelSizes:strides:dilationRates:paddingValues:paddingStyle:': @@ -636,6 +771,9 @@ classes: name: create constructor: true MPSGraphType: {} #since 15.0 + MPSGraphGRUDescriptor: {} #since 16.0 + MPSGraphLSTMDescriptor: {} #since 15.4 + MPSGraphSingleGateRNNDescriptor: {} #since 15.4 protocols: functions: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraph.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraph.java index 97b92b885..d71104b8a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraph.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraph.java @@ -182,6 +182,11 @@ public MPSGraph() {} public native MPSGraphTensor isNaN(MPSGraphTensor tensor, String name); @Method(selector = "erfWithTensor:name:") public native MPSGraphTensor erf(MPSGraphTensor tensor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "truncateWithTensor:name:") + public native MPSGraphTensor truncate(MPSGraphTensor tensor, String name); @Method(selector = "additionWithPrimaryTensor:secondaryTensor:name:") public native MPSGraphTensor addition(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); @Method(selector = "subtractionWithPrimaryTensor:secondaryTensor:name:") @@ -289,6 +294,86 @@ public MPSGraph() {} public native NSArray forLoop(MPSGraphTensor lowerBound, MPSGraphTensor upperBound, MPSGraphTensor step, NSArray initialBodyArguments, @Block Block2, NSArray> body, String name); @Method(selector = "forLoopWithNumberOfIterations:initialBodyArguments:body:name:") public native NSArray forLoop(MPSGraphTensor numberOfIterations, NSArray initialBodyArguments, @Block Block2, NSArray> body, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeSumWithTensor:axis:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeSum(MPSGraphTensor tensor, @MachineSizedSInt long axis, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeSumWithTensor:axisTensor:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeSum(MPSGraphTensor tensor, MPSGraphTensor axisTensor, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeSumWithTensor:axis:name:") + public native MPSGraphTensor cumulativeSum(MPSGraphTensor tensor, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeSumWithTensor:axisTensor:name:") + public native MPSGraphTensor cumulativeSum(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeProductWithTensor:axis:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeProduct(MPSGraphTensor tensor, @MachineSizedSInt long axis, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeProductWithTensor:axisTensor:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeProduct(MPSGraphTensor tensor, MPSGraphTensor axisTensor, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeProductWithTensor:axis:name:") + public native MPSGraphTensor cumulativeProduct(MPSGraphTensor tensor, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeProductWithTensor:axisTensor:name:") + public native MPSGraphTensor cumulativeProduct(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMinimumWithTensor:axis:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeMinimum(MPSGraphTensor tensor, @MachineSizedSInt long axis, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMinimumWithTensor:axisTensor:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeMinimum(MPSGraphTensor tensor, MPSGraphTensor axisTensor, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMinimumWithTensor:axis:name:") + public native MPSGraphTensor cumulativeMinimum(MPSGraphTensor tensor, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMinimumWithTensor:axisTensor:name:") + public native MPSGraphTensor cumulativeMinimum(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMaximumWithTensor:axis:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeMaximum(MPSGraphTensor tensor, @MachineSizedSInt long axis, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMaximumWithTensor:axisTensor:exclusive:reverse:name:") + public native MPSGraphTensor cumulativeMaximum(MPSGraphTensor tensor, MPSGraphTensor axisTensor, boolean exclusive, boolean reverse, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMaximumWithTensor:axis:name:") + public native MPSGraphTensor cumulativeMaximum(MPSGraphTensor tensor, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "cumulativeMaximumWithTensor:axisTensor:name:") + public native MPSGraphTensor cumulativeMaximum(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); @Method(selector = "depthwiseConvolution2DWithSourceTensor:weightsTensor:descriptor:name:") public native MPSGraphTensor depthwiseConvolution2D(MPSGraphTensor source, MPSGraphTensor weights, MPSGraphDepthwiseConvolution2DOpDescriptor descriptor, String name); @Method(selector = "depthwiseConvolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:") @@ -331,6 +416,11 @@ public MPSGraph() {} public native MPSGraphTensor softMaxCrossEntropyGradient(MPSGraphTensor gradientTensor, MPSGraphTensor sourceTensor, MPSGraphTensor labelsTensor, @MachineSizedSInt long axis, MPSGraphLossReductionType reductionType, String name); @Method(selector = "matrixMultiplicationWithPrimaryTensor:secondaryTensor:name:") public native MPSGraphTensor matrixMultiplication(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "HammingDistanceWithPrimaryTensor:secondaryTensor:resultDataType:name:") + public native MPSGraphTensor HammingDistance(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, MPSDataType resultDataType, String name); /** * @since Available in iOS 15.0 and later. */ @@ -387,6 +477,10 @@ public MPSGraph() {} public native MPSGraphTensor stochasticGradientDescent(MPSGraphTensor learningRateTensor, MPSGraphTensor valuesTensor, MPSGraphTensor gradientTensor, String name); @Method(selector = "applyStochasticGradientDescentWithLearningRateTensor:variable:gradientTensor:name:") public native MPSGraphOperation applyStochasticGradientDescent(MPSGraphTensor learningRateTensor, MPSGraphVariableOp variable, MPSGraphTensor gradientTensor, String name); + @Method(selector = "adamWithLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:beta1PowerTensor:beta2PowerTensor:valuesTensor:momentumTensor:velocityTensor:maximumVelocityTensor:gradientTensor:name:") + public native NSArray adamWithLearningRateTensor(MPSGraphTensor learningRateTensor, MPSGraphTensor beta1Tensor, MPSGraphTensor beta2Tensor, MPSGraphTensor epsilonTensor, MPSGraphTensor beta1PowerTensor, MPSGraphTensor beta2PowerTensor, MPSGraphTensor valuesTensor, MPSGraphTensor momentumTensor, MPSGraphTensor velocityTensor, MPSGraphTensor maximumVelocityTensor, MPSGraphTensor gradientTensor, String name); + @Method(selector = "adamWithCurrentLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:valuesTensor:momentumTensor:velocityTensor:maximumVelocityTensor:gradientTensor:name:") + public native NSArray adamWithCurrentLearningRateTensor(MPSGraphTensor currentLearningRateTensor, MPSGraphTensor beta1Tensor, MPSGraphTensor beta2Tensor, MPSGraphTensor epsilonTensor, MPSGraphTensor valuesTensor, MPSGraphTensor momentumTensor, MPSGraphTensor velocityTensor, MPSGraphTensor maximumVelocityTensor, MPSGraphTensor gradientTensor, String name); @Method(selector = "maxPooling2DWithSourceTensor:descriptor:name:") public native MPSGraphTensor maxPooling2D(MPSGraphTensor source, MPSGraphPooling2DOpDescriptor descriptor, String name); /** @@ -396,6 +490,10 @@ public MPSGraph() {} public native NSArray maxPooling2DReturnIndices(MPSGraphTensor source, MPSGraphPooling2DOpDescriptor descriptor, String name); @Method(selector = "maxPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:") public native MPSGraphTensor maxPooling2DGradient(MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling2DOpDescriptor descriptor, String name); + @Method(selector = "maxPooling2DGradientWithGradientTensor:indicesTensor:outputShape:descriptor:name:") + public native MPSGraphTensor maxPooling2DGradient(MPSGraphTensor gradient, MPSGraphTensor indices, NSArray outputShape, MPSGraphPooling2DOpDescriptor descriptor, String name); + @Method(selector = "maxPooling2DGradientWithGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:") + public native MPSGraphTensor maxPooling2DGradient(MPSGraphTensor gradient, MPSGraphTensor indices, MPSGraphTensor outputShape, MPSGraphPooling2DOpDescriptor descriptor, String name); @Method(selector = "avgPooling2DWithSourceTensor:descriptor:name:") public native MPSGraphTensor avgPooling2D(MPSGraphTensor source, MPSGraphPooling2DOpDescriptor descriptor, String name); @Method(selector = "avgPooling2DGradientWithGradientTensor:sourceTensor:descriptor:name:") @@ -415,6 +513,10 @@ public MPSGraph() {} */ @Method(selector = "maxPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:") public native MPSGraphTensor maxPooling4DGradient(MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, String name); + @Method(selector = "maxPooling4DGradientWithGradientTensor:indicesTensor:outputShape:descriptor:name:") + public native MPSGraphTensor maxPooling4DGradient(MPSGraphTensor gradient, MPSGraphTensor indices, NSArray outputShape, MPSGraphPooling4DOpDescriptor descriptor, String name); + @Method(selector = "maxPooling4DGradientWithGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:") + public native MPSGraphTensor maxPooling4DGradient(MPSGraphTensor gradient, MPSGraphTensor indices, MPSGraphTensor outputShape, MPSGraphPooling4DOpDescriptor descriptor, String name); /** * @since Available in iOS 15.0 and later. */ @@ -528,8 +630,158 @@ public MPSGraph() {} */ @Method(selector = "resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:") public native MPSGraphTensor resizeTensor(MPSGraphTensor imagesTensor, MPSGraphTensor size, MPSGraphResizeMode mode, boolean centerResult, boolean alignCorners, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:") + public native MPSGraphTensor resizeNearestWithTensor(MPSGraphTensor imagesTensor, MPSGraphTensor size, MPSGraphResizeNearestRoundingMode nearestRoundingMode, boolean centerResult, boolean alignCorners, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeBilinearWithTensor:sizeTensor:centerResult:alignCorners:layout:name:") + public native MPSGraphTensor resizeBilinearWithTensor(MPSGraphTensor imagesTensor, MPSGraphTensor size, boolean centerResult, boolean alignCorners, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeTensor:sizeTensor:scaleOffsetTensor:mode:layout:name:") + public native MPSGraphTensor resizeTensor(MPSGraphTensor imagesTensor, MPSGraphTensor size, MPSGraphTensor scaleOffset, MPSGraphResizeMode mode, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeNearestWithTensor:sizeTensor:scaleOffsetTensor:nearestRoundingMode:layout:name:") + public native MPSGraphTensor resizeNearestWithTensor(MPSGraphTensor imagesTensor, MPSGraphTensor size, MPSGraphTensor scaleOffset, MPSGraphResizeNearestRoundingMode nearestRoundingMode, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeBilinearWithTensor:sizeTensor:scaleOffsetTensor:layout:name:") + public native MPSGraphTensor resizeBilinearWithTensor(MPSGraphTensor imagesTensor, MPSGraphTensor size, MPSGraphTensor scaleOffset, MPSGraphTensorNamedDataLayout layout, String name); @Method(selector = "resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:") public native MPSGraphTensor resize(MPSGraphTensor gradient, MPSGraphTensor input, MPSGraphResizeMode mode, boolean centerResult, boolean alignCorners, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeNearestWithGradientTensor:input:nearestRoundingMode:centerResult:alignCorners:layout:name:") + public native MPSGraphTensor resizeNearestWithGradientTensor(MPSGraphTensor gradient, MPSGraphTensor input, MPSGraphResizeNearestRoundingMode nearestRoundingMode, boolean centerResult, boolean alignCorners, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeBilinearWithGradientTensor:input:centerResult:alignCorners:layout:name:") + public native MPSGraphTensor resizeBilinearWithGradientTensor(MPSGraphTensor gradient, MPSGraphTensor input, boolean centerResult, boolean alignCorners, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeWithGradientTensor:input:scaleOffsetTensor:mode:layout:name:") + public native MPSGraphTensor resizeWithGradientTensor(MPSGraphTensor gradient, MPSGraphTensor input, MPSGraphTensor scaleOffset, MPSGraphResizeMode mode, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeNearestWithGradientTensor:input:scaleOffsetTensor:nearestRoundingMode:layout:name:") + public native MPSGraphTensor resizeNearestWithGradientTensor(MPSGraphTensor gradient, MPSGraphTensor input, MPSGraphTensor scaleOffset, MPSGraphResizeNearestRoundingMode nearestRoundingMode, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "resizeBilinearWithGradientTensor:input:scaleOffsetTensor:layout:name:") + public native MPSGraphTensor resizeBilinearWithGradientTensor(MPSGraphTensor gradient, MPSGraphTensor input, MPSGraphTensor scaleOffset, MPSGraphTensorNamedDataLayout layout, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNWithSourceTensor:recurrentWeight:inputWeight:bias:initState:mask:descriptor:name:") + public native NSArray singleGateRNNWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor mask, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNWithSourceTensor:recurrentWeight:inputWeight:bias:initState:descriptor:name:") + public native NSArray singleGateRNNWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNWithSourceTensor:recurrentWeight:initState:descriptor:name:") + public native NSArray singleGateRNNWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor initState, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:stateGradient:inputWeight:bias:initState:mask:descriptor:name:") + public native NSArray singleGateRNNGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor stateGradient, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor mask, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:mask:descriptor:name:") + public native NSArray singleGateRNNGradients(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor mask, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:inputWeight:bias:initState:descriptor:name:") + public native NSArray singleGateRNNGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "singleGateRNNGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:initState:descriptor:name:") + public native NSArray singleGateRNNGradients(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor initState, MPSGraphSingleGateRNNDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMWithSourceTensor:recurrentWeight:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:") + public native NSArray LSTMWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor initCell, MPSGraphTensor mask, MPSGraphTensor peephole, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMWithSourceTensor:recurrentWeight:inputWeight:bias:initState:initCell:descriptor:name:") + public native NSArray LSTMWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor initCell, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMWithSourceTensor:recurrentWeight:initState:initCell:descriptor:name:") + public native NSArray LSTMWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor initState, MPSGraphTensor initCell, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:stateGradient:cellGradient:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:") + public native NSArray LSTMGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor cellOutputFwd, MPSGraphTensor stateGradient, MPSGraphTensor cellGradient, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor initCell, MPSGraphTensor mask, MPSGraphTensor peephole, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:mask:descriptor:name:") + public native NSArray LSTMGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor cellOutputFwd, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor initCell, MPSGraphTensor mask, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:descriptor:name:") + public native NSArray LSTMGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor cellOutputFwd, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor initCell, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 15.4 and later. + */ + @Method(selector = "LSTMGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:cellOutputFwd:descriptor:name:") + public native NSArray LSTMGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor cellOutputFwd, MPSGraphLSTMDescriptor descriptor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "GRUWithSourceTensor:recurrentWeight:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:") + public native NSArray GRUWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor mask, MPSGraphTensor secondaryBias, MPSGraphGRUDescriptor descriptor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "GRUWithSourceTensor:recurrentWeight:inputWeight:bias:initState:descriptor:name:") + public native NSArray GRUWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphGRUDescriptor descriptor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "GRUWithSourceTensor:recurrentWeight:inputWeight:bias:descriptor:name:") + public native NSArray GRUWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphGRUDescriptor descriptor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "GRUGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:outputFwd:stateGradient:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:") + public native NSArray GRUGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor outputFwd, MPSGraphTensor stateGradient, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphTensor mask, MPSGraphTensor secondaryBias, MPSGraphGRUDescriptor descriptor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "GRUGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:initState:descriptor:name:") + public native NSArray GRUGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor outputFwd, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphTensor initState, MPSGraphGRUDescriptor descriptor, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "GRUGradientsWithSourceTensor:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:descriptor:name:") + public native NSArray GRUGradientsWithSourceTensor(MPSGraphTensor source, MPSGraphTensor recurrentWeight, MPSGraphTensor sourceGradient, MPSGraphTensor zState, MPSGraphTensor outputFwd, MPSGraphTensor inputWeight, MPSGraphTensor bias, MPSGraphGRUDescriptor descriptor, String name); @Method(selector = "scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:mode:name:") public native MPSGraphTensor scatterND(MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, NSArray shape, @MachineSizedUInt long batchDimensions, MPSGraphScatterMode mode, String name); @Method(selector = "scatterNDWithUpdatesTensor:indicesTensor:shape:batchDimensions:name:") @@ -569,6 +821,26 @@ public MPSGraph() {} */ @Method(selector = "scatterAlongAxisTensor:withDataTensor:updatesTensor:indicesTensor:mode:name:") public native MPSGraphTensor scatterAlongAxisTensor(MPSGraphTensor axisTensor, MPSGraphTensor dataTensor, MPSGraphTensor updatesTensor, MPSGraphTensor indicesTensor, MPSGraphScatterMode mode, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sortWithTensor:axis:descending:name:") + public native MPSGraphTensor sort(MPSGraphTensor tensor, @MachineSizedSInt long axis, boolean descending, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sortWithTensor:axisTensor:descending:name:") + public native MPSGraphTensor sort(MPSGraphTensor tensor, MPSGraphTensor axisTensor, boolean descending, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sortWithTensor:axis:name:") + public native MPSGraphTensor sort(MPSGraphTensor tensor, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "sortWithTensor:axisTensor:name:") + public native MPSGraphTensor sort(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); @Method(selector = "stencilWithSourceTensor:weightsTensor:descriptor:name:") public native MPSGraphTensor stencil(MPSGraphTensor source, MPSGraphTensor weights, MPSGraphStencilOpDescriptor descriptor, String name); @Method(selector = "reshapeTensor:withShape:name:") @@ -580,6 +852,11 @@ public MPSGraph() {} public native MPSGraphTensor reshapeTensor(MPSGraphTensor tensor, MPSGraphTensor shapeTensor, String name); @Method(selector = "transposeTensor:dimension:withDimension:name:") public native MPSGraphTensor transposeTensor(MPSGraphTensor tensor, @MachineSizedUInt long dimensionIndex, @MachineSizedUInt long dimensionIndex2, String name); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "transposeTensor:permutation:name:") + public native MPSGraphTensor transposeTensor(MPSGraphTensor tensor, NSArray permutation, String name); @Method(selector = "sliceTensor:dimension:start:length:name:") public native MPSGraphTensor sliceTensor(MPSGraphTensor tensor, @MachineSizedUInt long dimensionIndex, @MachineSizedSInt long start, @MachineSizedSInt long length, String name); @Method(selector = "sliceTensor:starts:ends:strides:name:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphCompilationDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphCompilationDescriptor.java index f4a612a7f..d0d86948d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphCompilationDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphCompilationDescriptor.java @@ -71,6 +71,36 @@ public MPSGraphCompilationDescriptor() {} */ @Property(selector = "setOptimizationProfile:") public native void setOptimizationProfile(MPSGraphOptimizationProfile v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "waitForCompilationCompletion") + public native boolean isWaitForCompilationCompletion(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setWaitForCompilationCompletion:") + public native void setWaitForCompilationCompletion(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "compilationCompletionHandler") + public native @Block VoidBlock2 getCompilationCompletionHandler(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setCompilationCompletionHandler:") + public native void setCompilationCompletionHandler(@Block VoidBlock2 v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "dispatchQueue") + public native org.robovm.apple.dispatch.DispatchQueue getDispatchQueue(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setDispatchQueue:") + public native void setDispatchQueue(org.robovm.apple.dispatch.DispatchQueue v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutableExecutionDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutableExecutionDescriptor.java index 30c3b0e05..fd613f0a4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutableExecutionDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutableExecutionDescriptor.java @@ -66,6 +66,15 @@ public MPSGraphExecutableExecutionDescriptor() {} /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "waitForEvent:value:") + public native void waitForEvent(MTLSharedEvent event, long value); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "signalEvent:atExecutionEvent:value:") + public native void signalEvent(MTLSharedEvent event, MPSGraphExecutionStage executionStage, long value); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionDescriptor.java index b62218d67..41e0c613b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionDescriptor.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionDescriptor.java @@ -76,6 +76,15 @@ public MPSGraphExecutionDescriptor() {} /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "waitForEvent:value:") + public native void waitForEvent(MTLSharedEvent event, long value); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "signalEvent:atExecutionEvent:value:") + public native void signalEvent(MTLSharedEvent event, MPSGraphExecutionStage executionStage, long value); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionStage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionStage.java new file mode 100644 index 000000000..e8c3a0f0b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphExecutionStage.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalpsgraph; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.metalps.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsLongMarshaler.class)/**/ +public enum /**/MPSGraphExecutionStage/**/ implements ValuedEnum { + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + Completed(0L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MPSGraphExecutionStage/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MPSGraphExecutionStage/**/ valueOf(long n) { + for (/**/MPSGraphExecutionStage/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MPSGraphExecutionStage/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphGRUDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphGRUDescriptor.java new file mode 100644 index 000000000..e6cd61bb5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphGRUDescriptor.java @@ -0,0 +1,96 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalpsgraph; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.metalps.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MetalPerformanceShadersGraph") @NativeClass/**/ +/**/public/**/ class /**/MPSGraphGRUDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MPSGraphGRUDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MPSGraphGRUDescriptor.class); }/**/ + /**//**/ + /**/ + public MPSGraphGRUDescriptor() {} + protected MPSGraphGRUDescriptor(Handle h, long handle) { super(h, handle); } + protected MPSGraphGRUDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "reverse") + public native boolean isReverse(); + @Property(selector = "setReverse:") + public native void setReverse(boolean v); + @Property(selector = "bidirectional") + public native boolean isBidirectional(); + @Property(selector = "setBidirectional:") + public native void setBidirectional(boolean v); + @Property(selector = "training") + public native boolean isTraining(); + @Property(selector = "setTraining:") + public native void setTraining(boolean v); + @Property(selector = "resetGateFirst") + public native boolean isResetGateFirst(); + @Property(selector = "setResetGateFirst:") + public native void setResetGateFirst(boolean v); + @Property(selector = "resetAfter") + public native boolean isResetAfter(); + @Property(selector = "setResetAfter:") + public native void setResetAfter(boolean v); + @Property(selector = "flipZ") + public native boolean isFlipZ(); + @Property(selector = "setFlipZ:") + public native void setFlipZ(boolean v); + @Property(selector = "updateGateActivation") + public native MPSGraphRNNActivation getUpdateGateActivation(); + @Property(selector = "setUpdateGateActivation:") + public native void setUpdateGateActivation(MPSGraphRNNActivation v); + @Property(selector = "resetGateActivation") + public native MPSGraphRNNActivation getResetGateActivation(); + @Property(selector = "setResetGateActivation:") + public native void setResetGateActivation(MPSGraphRNNActivation v); + @Property(selector = "outputGateActivation") + public native MPSGraphRNNActivation getOutputGateActivation(); + @Property(selector = "setOutputGateActivation:") + public native void setOutputGateActivation(MPSGraphRNNActivation v); + /**/ + /**//**/ + /**/ + @Method(selector = "descriptor") + public static native MPSGraphGRUDescriptor descriptor(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphLSTMDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphLSTMDescriptor.java new file mode 100644 index 000000000..2dc713c32 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphLSTMDescriptor.java @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalpsgraph; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.metalps.*; +/**/ + +/**/ +/** + * @since Available in iOS 15.4 and later. + */ +/**/ +/**/@Library("MetalPerformanceShadersGraph") @NativeClass/**/ +/**/public/**/ class /**/MPSGraphLSTMDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MPSGraphLSTMDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MPSGraphLSTMDescriptor.class); }/**/ + /**//**/ + /**/ + public MPSGraphLSTMDescriptor() {} + protected MPSGraphLSTMDescriptor(Handle h, long handle) { super(h, handle); } + protected MPSGraphLSTMDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "reverse") + public native boolean isReverse(); + @Property(selector = "setReverse:") + public native void setReverse(boolean v); + @Property(selector = "bidirectional") + public native boolean isBidirectional(); + @Property(selector = "setBidirectional:") + public native void setBidirectional(boolean v); + @Property(selector = "produceCell") + public native boolean isProduceCell(); + @Property(selector = "setProduceCell:") + public native void setProduceCell(boolean v); + @Property(selector = "training") + public native boolean isTraining(); + @Property(selector = "setTraining:") + public native void setTraining(boolean v); + @Property(selector = "forgetGateLast") + public native boolean isForgetGateLast(); + @Property(selector = "setForgetGateLast:") + public native void setForgetGateLast(boolean v); + @Property(selector = "inputGateActivation") + public native MPSGraphRNNActivation getInputGateActivation(); + @Property(selector = "setInputGateActivation:") + public native void setInputGateActivation(MPSGraphRNNActivation v); + @Property(selector = "forgetGateActivation") + public native MPSGraphRNNActivation getForgetGateActivation(); + @Property(selector = "setForgetGateActivation:") + public native void setForgetGateActivation(MPSGraphRNNActivation v); + @Property(selector = "cellGateActivation") + public native MPSGraphRNNActivation getCellGateActivation(); + @Property(selector = "setCellGateActivation:") + public native void setCellGateActivation(MPSGraphRNNActivation v); + @Property(selector = "outputGateActivation") + public native MPSGraphRNNActivation getOutputGateActivation(); + @Property(selector = "setOutputGateActivation:") + public native void setOutputGateActivation(MPSGraphRNNActivation v); + @Property(selector = "activation") + public native MPSGraphRNNActivation getActivation(); + @Property(selector = "setActivation:") + public native void setActivation(MPSGraphRNNActivation v); + /**/ + /**//**/ + /**/ + @Method(selector = "descriptor") + public static native MPSGraphLSTMDescriptor descriptor(); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphPaddingStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphPaddingStyle.java index 05319a1a9..edfb9ee4c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphPaddingStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphPaddingStyle.java @@ -53,7 +53,11 @@ public enum /**/MPSGraphPaddingStyle/**/ implements ValuedEnum { /** * @since Available in iOS 15.0 and later. */ - ExplicitOffset(3L); + ExplicitOffset(3L), + /** + * @since Available in iOS 16.0 and later. + */ + ONNX_SAME_LOWER(4L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphRNNActivation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphRNNActivation.java new file mode 100644 index 000000000..dc88d1cab --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphRNNActivation.java @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalpsgraph; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.metalps.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/MPSGraphRNNActivation/**/ implements ValuedEnum { + /**/ + /** + * @since Available in iOS 15.4 and later. + */ + None(0L), + /** + * @since Available in iOS 15.4 and later. + */ + Relu(1L), + /** + * @since Available in iOS 15.4 and later. + */ + Tanh(2L), + /** + * @since Available in iOS 15.4 and later. + */ + Sigmoid(3L), + /** + * @since Available in iOS 15.4 and later. + */ + HardSigmoid(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MPSGraphRNNActivation/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MPSGraphRNNActivation/**/ valueOf(long n) { + for (/**/MPSGraphRNNActivation/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MPSGraphRNNActivation/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphResizeNearestRoundingMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphResizeNearestRoundingMode.java new file mode 100644 index 000000000..80940adb8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphResizeNearestRoundingMode.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalpsgraph; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.metalps.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class)/**/ +public enum /**/MPSGraphResizeNearestRoundingMode/**/ implements ValuedEnum { + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + RoundPreferCeil(0L), + /** + * @since Available in iOS 16.0 and later. + */ + RoundPreferFloor(1L), + /** + * @since Available in iOS 16.0 and later. + */ + Ceil(2L), + /** + * @since Available in iOS 16.0 and later. + */ + Floor(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MPSGraphResizeNearestRoundingMode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MPSGraphResizeNearestRoundingMode/**/ valueOf(long n) { + for (/**/MPSGraphResizeNearestRoundingMode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MPSGraphResizeNearestRoundingMode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphSingleGateRNNDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphSingleGateRNNDescriptor.java new file mode 100644 index 000000000..3c6899d11 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalpsgraph/MPSGraphSingleGateRNNDescriptor.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalpsgraph; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +import org.robovm.apple.metalps.*; +/**/ + +/**/ +/** + * @since Available in iOS 15.4 and later. + */ +/**/ +/**/@Library("MetalPerformanceShadersGraph") @NativeClass/**/ +/**/public/**/ class /**/MPSGraphSingleGateRNNDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MPSGraphSingleGateRNNDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MPSGraphSingleGateRNNDescriptor.class); }/**/ + /**//**/ + /**/ + public MPSGraphSingleGateRNNDescriptor() {} + protected MPSGraphSingleGateRNNDescriptor(Handle h, long handle) { super(h, handle); } + protected MPSGraphSingleGateRNNDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "reverse") + public native boolean isReverse(); + @Property(selector = "setReverse:") + public native void setReverse(boolean v); + @Property(selector = "bidirectional") + public native boolean isBidirectional(); + @Property(selector = "setBidirectional:") + public native void setBidirectional(boolean v); + @Property(selector = "training") + public native boolean isTraining(); + @Property(selector = "setTraining:") + public native void setTraining(boolean v); + @Property(selector = "activation") + public native MPSGraphRNNActivation getActivation(); + @Property(selector = "setActivation:") + public native void setActivation(MPSGraphRNNActivation v); + /**/ + /**//**/ + /**/ + @Method(selector = "descriptor") + public static native MPSGraphSingleGateRNNDescriptor descriptor(); + /**/ +} From aedade5426c38c9eef2bdbfd659374c65d81dadb Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:07:09 +0300 Subject: [PATCH 59/73] * ios16 bindings: ShazamKit updated --- .../src/main/bro-gen/shazamkit.yaml | 9 +- .../robovm/apple/shazamkit/SHErrorCode.java | 6 +- .../robovm/apple/shazamkit/SHMediaItem.java | 10 ++ .../apple/shazamkit/SHMediaItemProperty.java | 104 +++++++++++++++++- .../org/robovm/apple/shazamkit/SHRange.java | 73 ++++++++++++ .../apple/shazamkit/SHSignatureGenerator.java | 5 + 6 files changed, 204 insertions(+), 3 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHRange.java diff --git a/compiler/cocoatouch/src/main/bro-gen/shazamkit.yaml b/compiler/cocoatouch/src/main/bro-gen/shazamkit.yaml index 14e29b604..8bc37b30f 100755 --- a/compiler/cocoatouch/src/main/bro-gen/shazamkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/shazamkit.yaml @@ -64,7 +64,14 @@ classes: '-appendBuffer:atTime:error:': name: appendBuffer throws: NSErrorException - + '+generateSignatureFromAsset:completionHandler:': + name: generateSignature + SHRange: #since 16.0 + methods: + '-initWithLowerBound:upperBound:': + name: init + '+rangeWithLowerBound:upperBound:': + exclude: true protocols: SHSessionDelegate: #since 15.0 methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHErrorCode.java index c3ca76a93..c8c1a0c2a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHErrorCode.java @@ -44,7 +44,11 @@ public enum /**/SHErrorCode/**/ implements NSErrorCode { MatchAttemptFailed(202L), CustomCatalogInvalid(300L), CustomCatalogInvalidURL(301L), - MediaLibrarySyncFailed(400L); + MediaLibrarySyncFailed(400L), + /** + * @since Available in iOS 16.0 and later. + */ + InternalError(500L); /**/ /**/static { Bro.bind(SHErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItem.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItem.java index 966e30d63..2d6bbcded 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItem.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItem.java @@ -77,6 +77,16 @@ protected SHMediaItem() {} public native boolean isExplicitContent(); @Property(selector = "isrc") public native String getIsrc(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "timeRanges") + public native NSArray getTimeRanges(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "frequencySkewRanges") + public native NSArray getFrequencySkewRanges(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItemProperty.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItemProperty.java index c0b476746..77e271927 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItemProperty.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHMediaItemProperty.java @@ -88,23 +88,73 @@ public static long toNative(List l, long flags) { /**/ /**/ + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty ShazamID = new SHMediaItemProperty("ShazamID"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty Title = new SHMediaItemProperty("Title"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty Subtitle = new SHMediaItemProperty("Subtitle"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty Artist = new SHMediaItemProperty("Artist"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty WebURL = new SHMediaItemProperty("WebURL"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty AppleMusicID = new SHMediaItemProperty("AppleMusicID"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty AppleMusicURL = new SHMediaItemProperty("AppleMusicURL"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty ArtworkURL = new SHMediaItemProperty("ArtworkURL"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty VideoURL = new SHMediaItemProperty("VideoURL"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty ExplicitContent = new SHMediaItemProperty("ExplicitContent"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty Genres = new SHMediaItemProperty("Genres"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty ISRC = new SHMediaItemProperty("ISRC"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final SHMediaItemProperty TimeRanges = new SHMediaItemProperty("TimeRanges"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final SHMediaItemProperty FrequencySkewRanges = new SHMediaItemProperty("FrequencySkewRanges"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty MatchOffset = new SHMediaItemProperty("MatchOffset"); + /** + * @since Available in iOS 15.0 and later. + */ public static final SHMediaItemProperty FrequencySkew = new SHMediaItemProperty("FrequencySkew"); /**/ - private static /**/SHMediaItemProperty/**/[] values = new /**/SHMediaItemProperty/**/[] {/**/ShazamID, Title, Subtitle, Artist, WebURL, AppleMusicID, AppleMusicURL, ArtworkURL, VideoURL, ExplicitContent, Genres, ISRC, MatchOffset, FrequencySkew/**/}; + private static /**/SHMediaItemProperty/**/[] values = new /**/SHMediaItemProperty/**/[] {/**/ShazamID, Title, Subtitle, Artist, WebURL, AppleMusicID, AppleMusicURL, ArtworkURL, VideoURL, ExplicitContent, Genres, ISRC, TimeRanges, FrequencySkewRanges, MatchOffset, FrequencySkew/**/}; /**/SHMediaItemProperty/**/ (String getterName) { super(Values.class, getterName); @@ -127,32 +177,84 @@ public static class Values { static { Bro.bind(Values.class); } /**/ + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemShazamID", optional=true) public static native NSString ShazamID(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemTitle", optional=true) public static native NSString Title(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemSubtitle", optional=true) public static native NSString Subtitle(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemArtist", optional=true) public static native NSString Artist(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemWebURL", optional=true) public static native NSString WebURL(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemAppleMusicID", optional=true) public static native NSString AppleMusicID(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemAppleMusicURL", optional=true) public static native NSString AppleMusicURL(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemArtworkURL", optional=true) public static native NSString ArtworkURL(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemVideoURL", optional=true) public static native NSString VideoURL(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemExplicitContent", optional=true) public static native NSString ExplicitContent(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemGenres", optional=true) public static native NSString Genres(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemISRC", optional=true) public static native NSString ISRC(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SHMediaItemTimeRanges", optional=true) + public static native NSString TimeRanges(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SHMediaItemFrequencySkewRanges", optional=true) + public static native NSString FrequencySkewRanges(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemMatchOffset", optional=true) public static native NSString MatchOffset(); + /** + * @since Available in iOS 15.0 and later. + */ @GlobalValue(symbol="SHMediaItemFrequencySkew", optional=true) public static native NSString FrequencySkew(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHRange.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHRange.java new file mode 100644 index 000000000..9d4fc0816 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHRange.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.shazamkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("ShazamKit") @NativeClass/**/ +/**/public/**/ class /**/SHRange/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SHRangePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SHRange.class); }/**/ + /**//**/ + /**/ + protected SHRange() {} + protected SHRange(Handle h, long handle) { super(h, handle); } + protected SHRange(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithLowerBound:upperBound:") + public SHRange(double lowerBound, double upperBound) { super((SkipInit) null); initObject(init(lowerBound, upperBound)); } + @Method(selector = "initWithCoder:") + public SHRange(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "lowerBound") + public native double getLowerBound(); + @Property(selector = "upperBound") + public native double getUpperBound(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithLowerBound:upperBound:") + protected native @Pointer long init(double lowerBound, double upperBound); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHSignatureGenerator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHSignatureGenerator.java index 1dbda3fa4..b3139b2ae 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHSignatureGenerator.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/shazamkit/SHSignatureGenerator.java @@ -64,5 +64,10 @@ public boolean appendBuffer(AVAudioPCMBuffer buffer, AVAudioTime time) throws NS private native boolean appendBuffer(AVAudioPCMBuffer buffer, AVAudioTime time, NSError.NSErrorPtr error); @Method(selector = "signature") public native SHSignature signature(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "generateSignatureFromAsset:completionHandler:") + public static native void generateSignature(AVAsset asset, @Block VoidBlock2 completionHandler); /**/ } From 829a53a60895f87db7ff84bcd5d31a6b10eef613 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:11:04 +0300 Subject: [PATCH 60/73] * ios16 bindings: MetricKit updated --- .../src/main/bro-gen/metrickit.yaml | 12 +++ .../metrickit/MXAppLaunchDiagnostic.java | 63 +++++++++++++ .../apple/metrickit/MXAppLaunchMetric.java | 5 + .../apple/metrickit/MXDiagnosticPayload.java | 5 + .../robovm/apple/metrickit/MXErrorCode.java | 93 +++++++++++++++++++ .../apple/metrickit/MXMetricManager.java | 28 ++++++ 6 files changed, 206 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchDiagnostic.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXErrorCode.java diff --git a/compiler/cocoatouch/src/main/bro-gen/metrickit.yaml b/compiler/cocoatouch/src/main/bro-gen/metrickit.yaml index 0d341c22b..40c460ea0 100755 --- a/compiler/cocoatouch/src/main/bro-gen/metrickit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/metrickit.yaml @@ -11,6 +11,7 @@ private_typedefs: typedefs: enums: + MXErrorCode: {prefix: MXErrorLaunchTask, nserror: true} #since 16.0 typed_enums: @@ -35,6 +36,13 @@ classes: '+makeLogHandleWithCategory:': # name: makeLogHandle exclude: true # fixme: there is no bindings for os/log.h + '+extendLaunchMeasurementForTaskID:error:': + #trim_after_first_colon: true + name: extendLaunchMeasurementForTaskID + throws: NSErrorException + '+finishExtendedLaunchMeasurementForTaskID:error:': + name: finishExtendedLaunchMeasurementForTaskID + throws: NSErrorException MXMetricPayload: {} #since 13.0 MXNetworkTransferMetric: {} #since 13.0 MXSignpostIntervalData: {} #since 13.0 @@ -52,6 +60,7 @@ classes: MXDiskWriteExceptionDiagnostic: {} #since 14.0 MXForegroundExitData: {} #since 14.0 MXHangDiagnostic: {} #since 14.0 + MXAppLaunchDiagnostic: {} #since 16.0 protocols: MXMetricManagerSubscriber: {} #since 13.0 @@ -62,6 +71,9 @@ functions: name: 'Function__#{g[0]}' values: + MXErrorDomain: + class: MXErrorCode + name: getClassDomain # Make sure we don't miss any values if new ones are introduced in a later version (k?MX.*): diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchDiagnostic.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchDiagnostic.java new file mode 100644 index 000000000..5255c6297 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchDiagnostic.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metrickit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MetricKit") @NativeClass/**/ +/**/public/**/ class /**/MXAppLaunchDiagnostic/**/ + extends /**/MXDiagnostic/**/ + /**//**/ { + + /**/public static class MXAppLaunchDiagnosticPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MXAppLaunchDiagnostic.class); }/**/ + /**//**/ + /**/ + public MXAppLaunchDiagnostic() {} + protected MXAppLaunchDiagnostic(Handle h, long handle) { super(h, handle); } + protected MXAppLaunchDiagnostic(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "callStackTree") + public native MXCallStackTree getCallStackTree(); + @Property(selector = "launchDuration") + public native NSMeasurement getLaunchDuration(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchMetric.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchMetric.java index 1a833675c..5536caaa4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchMetric.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXAppLaunchMetric.java @@ -58,6 +58,11 @@ public MXAppLaunchMetric() {} */ @Property(selector = "histogrammedOptimizedTimeToFirstDraw") public native MXHistogram getHistogrammedOptimizedTimeToFirstDraw(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "histogrammedExtendedLaunch") + public native MXHistogram getHistogrammedExtendedLaunch(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXDiagnosticPayload.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXDiagnosticPayload.java index 8c1b38d43..d510f4897 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXDiagnosticPayload.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXDiagnosticPayload.java @@ -57,6 +57,11 @@ public MXDiagnosticPayload() {} public native NSArray getDiskWriteExceptionDiagnostics(); @Property(selector = "hangDiagnostics") public native NSArray getHangDiagnostics(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "appLaunchDiagnostics") + public native NSArray getAppLaunchDiagnostics(); @Property(selector = "crashDiagnostics") public native NSArray getCrashDiagnostics(); @Property(selector = "timeStampBegin") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXErrorCode.java new file mode 100644 index 000000000..1a0d39c6a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXErrorCode.java @@ -0,0 +1,93 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metrickit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("MetricKit")/**/ +public enum /**/MXErrorCode/**/ implements NSErrorCode { + /**/ + InvalidID(0L), + MaxCount(1L), + PastDeadline(2L), + Duplicated(3L), + Unknown(4L), + InternalFailure(5L); + /**/ + + /**/static { Bro.bind(MXErrorCode.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="MXErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/MXErrorCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MXErrorCode/**/ valueOf(long n) { + for (/**/MXErrorCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MXErrorCode/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/MXErrorCode/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/MXErrorCode/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXMetricManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXMetricManager.java index 789a22c26..77cbc503b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXMetricManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metrickit/MXMetricManager.java @@ -65,5 +65,33 @@ public MXMetricManager() {} public native void addSubscriber(MXMetricManagerSubscriber subscriber); @Method(selector = "removeSubscriber:") public native void removeSubscriber(MXMetricManagerSubscriber subscriber); + /** + * @since Available in iOS 16.0 and later. + */ + public static boolean extendLaunchMeasurementForTaskID(String taskID) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + boolean result = extendLaunchMeasurementForTaskID(taskID, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "extendLaunchMeasurementForTaskID:error:") + private static native boolean extendLaunchMeasurementForTaskID(String taskID, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + public static boolean finishExtendedLaunchMeasurementForTaskID(String taskID) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + boolean result = finishExtendedLaunchMeasurementForTaskID(taskID, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "finishExtendedLaunchMeasurementForTaskID:error:") + private static native boolean finishExtendedLaunchMeasurementForTaskID(String taskID, NSError.NSErrorPtr error); /**/ } From f5e36ad3105f10d82d599073db16c4ee7c4b1dcc Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:11:52 +0300 Subject: [PATCH 61/73] * ios16 bindings: Speech updated --- .../apple/speech/SFSpeechRecognitionRequest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/speech/SFSpeechRecognitionRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/speech/SFSpeechRecognitionRequest.java index f18484e89..3b5c21b0a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/speech/SFSpeechRecognitionRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/speech/SFSpeechRecognitionRequest.java @@ -87,6 +87,16 @@ public SFSpeechRecognitionRequest() {} */ @Property(selector = "setRequiresOnDeviceRecognition:") public native void setRequiresOnDeviceRecognition(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "addsPunctuation") + public native boolean isAddsPunctuation(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAddsPunctuation:") + public native void setAddsPunctuation(boolean v); /**/ /**//**/ /**/ From 3dfa061fa9dabb7371f15cce20cd87b4c4651524 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:14:11 +0300 Subject: [PATCH 62/73] * ios16 bindings: NaturalLanguage updated --- .../org/robovm/apple/naturallanguage/NLLanguage.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/naturallanguage/NLLanguage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/naturallanguage/NLLanguage.java index c8405a889..ad8ca4793 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/naturallanguage/NLLanguage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/naturallanguage/NLLanguage.java @@ -316,9 +316,13 @@ public static long toNative(List l, long flags) { * @since Available in iOS 12.0 and later. */ public static final NLLanguage Vietnamese = new NLLanguage("Vietnamese"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final NLLanguage Kazakh = new NLLanguage("Kazakh"); /**/ - private static /**/NLLanguage/**/[] values = new /**/NLLanguage/**/[] {/**/Undetermined, Amharic, Arabic, Armenian, Bengali, Bulgarian, Burmese, Catalan, Cherokee, Croatian, Czech, Danish, Dutch, English, Finnish, French, Georgian, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Kannada, Khmer, Korean, Lao, Malay, Malayalam, Marathi, Mongolian, Norwegian, Oriya, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, SimplifiedChinese, Sinhalese, Slovak, Spanish, Swedish, Tamil, Telugu, Thai, Tibetan, TraditionalChinese, Turkish, Ukrainian, Urdu, Vietnamese/**/}; + private static /**/NLLanguage/**/[] values = new /**/NLLanguage/**/[] {/**/Undetermined, Amharic, Arabic, Armenian, Bengali, Bulgarian, Burmese, Catalan, Cherokee, Croatian, Czech, Danish, Dutch, English, Finnish, French, Georgian, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Kannada, Khmer, Korean, Lao, Malay, Malayalam, Marathi, Mongolian, Norwegian, Oriya, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, SimplifiedChinese, Sinhalese, Slovak, Spanish, Swedish, Tamil, Telugu, Thai, Tibetan, TraditionalChinese, Turkish, Ukrainian, Urdu, Vietnamese, Kazakh/**/}; /**/NLLanguage/**/ (String getterName) { super(Values.class, getterName); @@ -626,6 +630,11 @@ public static class Values { */ @GlobalValue(symbol="NLLanguageVietnamese", optional=true) public static native NSString Vietnamese(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="NLLanguageKazakh", optional=true) + public static native NSString Kazakh(); /**/ } } From aedf43c1dd76cc0516ef88fd3398496b087636ea Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:14:59 +0300 Subject: [PATCH 63/73] * ios16 bindings: StoreKit updated --- .../cocoatouch/src/main/bro-gen/storekit.yaml | 8 +++- .../org/robovm/apple/storekit/SKANError.java | 3 +- .../robovm/apple/storekit/SKAdImpression.java | 11 ++++- .../org/robovm/apple/storekit/SKDownload.java | 42 ++++++++++++++++++- .../apple/storekit/SKDownloadState.java | 6 ++- .../storekit/SKOverlayAppConfiguration.java | 5 +++ .../robovm/apple/storekit/SKPaymentQueue.java | 16 +++++++ .../apple/storekit/SKPaymentTransaction.java | 4 ++ .../SKPaymentTransactionObserver.java | 4 ++ .../SKPaymentTransactionObserverAdapter.java | 4 ++ .../SKStoreProductViewController.java | 5 +++ 11 files changed, 100 insertions(+), 8 deletions(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/storekit.yaml b/compiler/cocoatouch/src/main/bro-gen/storekit.yaml index a1b10c6d4..a0f7d2597 100755 --- a/compiler/cocoatouch/src/main/bro-gen/storekit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/storekit.yaml @@ -121,7 +121,8 @@ classes: parameters: parameters: type: SKStoreProductParameters - + '-loadProductWithParameters:impression:completionBlock:': + name: loadProduct SKCloudServiceSetupViewController: methods: '-loadWithOptions:completionHandler:': @@ -179,7 +180,10 @@ classes: name: setAdditionalValue SKOverlayConfiguration: {} #since 14.0 SKOverlayTransitionContext: {} #since 14.0 - SKAdImpression: {} #since 14.5 + SKAdImpression: #since 14.5 + methods: + '-initWithSourceAppStoreItemIdentifier:advertisedAppStoreItemIdentifier:adNetworkIdentifier:adCampaignIdentifier:adImpressionIdentifier:timestamp:signature:version:': + name: init protocols: SKCloudServiceSetupViewControllerDelegate: methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKANError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKANError.java index c7cdbf736..faf1208af 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKANError.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKANError.java @@ -50,7 +50,8 @@ public enum /**/SKANError/**/ implements NSErrorCode { InvalidSourceAppId(7L), InvalidAdvertisedAppId(8L), InvalidVersion(9L), - Unknown(10L); + Unknown(10L), + ImpressionTooShort(11L); /**/ /**/static { Bro.bind(SKANError.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdImpression.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdImpression.java index 4602c6cdc..38a8b90a6 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdImpression.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdImpression.java @@ -49,6 +49,11 @@ public SKAdImpression() {} protected SKAdImpression(Handle h, long handle) { super(h, handle); } protected SKAdImpression(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithSourceAppStoreItemIdentifier:advertisedAppStoreItemIdentifier:adNetworkIdentifier:adCampaignIdentifier:adImpressionIdentifier:timestamp:signature:version:") + public SKAdImpression(NSNumber sourceAppStoreItemIdentifier, NSNumber advertisedAppStoreItemIdentifier, String adNetworkIdentifier, NSNumber adCampaignIdentifier, String adImpressionIdentifier, NSNumber timestamp, String signature, String version) { super((SkipInit) null); initObject(init(sourceAppStoreItemIdentifier, advertisedAppStoreItemIdentifier, adNetworkIdentifier, adCampaignIdentifier, adImpressionIdentifier, timestamp, signature, version)); } /**/ /**/ @Property(selector = "sourceAppStoreItemIdentifier") @@ -98,6 +103,10 @@ public SKAdImpression() {} /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "initWithSourceAppStoreItemIdentifier:advertisedAppStoreItemIdentifier:adNetworkIdentifier:adCampaignIdentifier:adImpressionIdentifier:timestamp:signature:version:") + protected native @Pointer long init(NSNumber sourceAppStoreItemIdentifier, NSNumber advertisedAppStoreItemIdentifier, String adNetworkIdentifier, NSNumber adCampaignIdentifier, String adImpressionIdentifier, NSNumber timestamp, String signature, String version); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownload.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownload.java index e5cb5c9dc..c8a52ef00 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownload.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownload.java @@ -33,9 +33,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ /**/ -/**/@Library("StoreKit") @NativeClass/**/ +/**/@Library("StoreKit") @NativeClass @Deprecated/**/ /**/public/**/ class /**/SKDownload/**/ extends /**/NSObject/**/ /**//**/ { @@ -51,7 +53,9 @@ public SKDownload() {} /**/ /** * @since Available in iOS 12.0 and later. + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported */ + @Deprecated @Property(selector = "state") public native SKDownloadState getState(); /** @@ -68,26 +72,60 @@ public SKDownload() {} public native long getContentLength(); /** * @since Available in iOS 13.0 and later. + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported */ + @Deprecated @Property(selector = "expectedContentLength") public native long getExpectedContentLength(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "contentIdentifier") public native String getContentIdentifier(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "contentURL") public native NSURL getContentURL(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "contentVersion") public native String getContentVersion(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "error") public native NSError getError(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "progress") public native float getProgress(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "timeRemaining") public native double getTimeRemaining(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "transaction") public native SKPaymentTransaction getTransaction(); /**/ /**//**/ /**/ + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @GlobalValue(symbol="SKDownloadTimeRemainingUnknown", optional=true) public static native double getRemainingTimeUnknown(); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownloadState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownloadState.java index c897f4359..5f658c343 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownloadState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKDownloadState.java @@ -33,9 +33,11 @@ /**/ /**/ - +/** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Deprecated/**/ public enum /**/SKDownloadState/**/ implements ValuedEnum { /**/ Waiting(0L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKOverlayAppConfiguration.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKOverlayAppConfiguration.java index 69d059155..13dc5f909 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKOverlayAppConfiguration.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKOverlayAppConfiguration.java @@ -102,5 +102,10 @@ protected SKOverlayAppConfiguration() {} public native void setAdditionalValue(NSObject value, String key); @Method(selector = "additionalValueForKey:") public native NSObject additionalValueForKey(String key); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setAdImpression:") + public native void setAdImpression(SKAdImpression impression); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentQueue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentQueue.java index bb6edab0f..93a70d7b5 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentQueue.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentQueue.java @@ -82,12 +82,28 @@ public SKPaymentQueue() {} public native void restoreCompletedTransactions(String username); @Method(selector = "finishTransaction:") public native void finishTransaction(SKPaymentTransaction transaction); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Method(selector = "startDownloads:") public native void startDownloads(NSArray downloads); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Method(selector = "pauseDownloads:") public native void pauseDownloads(NSArray downloads); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Method(selector = "resumeDownloads:") public native void resumeDownloads(NSArray downloads); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Method(selector = "cancelDownloads:") public native void cancelDownloads(NSArray downloads); @Method(selector = "addTransactionObserver:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransaction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransaction.java index 70f10cb7a..9c9d309e1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransaction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransaction.java @@ -55,6 +55,10 @@ public SKPaymentTransaction() {} public native SKPaymentTransaction getOriginalTransaction(); @Property(selector = "payment") public native SKPayment getPayment(); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Property(selector = "downloads") public native NSArray getDownloads(); @Property(selector = "transactionDate") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserver.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserver.java index 38f848c62..3b90bacb1 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserver.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserver.java @@ -56,6 +56,10 @@ void restoreCompletedTransactionsFailed(SKPaymentQueue queue, NSError error); @Method(selector = "paymentQueueRestoreCompletedTransactionsFinished:") void restoreCompletedTransactionsFinished(SKPaymentQueue queue); + /** + * @deprecated Deprecated in iOS 16.0. Hosted content is no longer supported + */ + @Deprecated @Method(selector = "paymentQueue:updatedDownloads:") void updatedDownloads(SKPaymentQueue queue, NSArray downloads); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserverAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserverAdapter.java index d5791985a..32a2260a9 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserverAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKPaymentTransactionObserverAdapter.java @@ -58,6 +58,10 @@ public void removedTransactions(SKPaymentQueue queue, NSArray downloads) {} /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductViewController.java index 8bd68922f..df05a7b5f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductViewController.java @@ -62,5 +62,10 @@ public SKStoreProductViewController() {} /**/ @Method(selector = "loadProductWithParameters:completionBlock:") public native void loadProduct(SKStoreProductParameters parameters, @Block VoidBlock2 block); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "loadProductWithParameters:impression:completionBlock:") + public native void loadProduct(NSDictionary parameters, SKAdImpression impression, @Block VoidBlock2 block); /**/ } From 096e44f2bda30c0ba83d0062a73d1638b057fd67 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:16:36 +0300 Subject: [PATCH 64/73] * ios16 bindings: ThreadNetwork updated --- compiler/cocoatouch/src/main/bro-gen/threadnetwork.yaml | 2 ++ .../main/java/org/robovm/apple/threadnetwork/THClient.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/compiler/cocoatouch/src/main/bro-gen/threadnetwork.yaml b/compiler/cocoatouch/src/main/bro-gen/threadnetwork.yaml index b29db2f38..4c9c5ac05 100755 --- a/compiler/cocoatouch/src/main/bro-gen/threadnetwork.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/threadnetwork.yaml @@ -23,6 +23,8 @@ classes: name: storeCredentialsForBorderAgent '-retrieveCredentialsForExtendedPANID:completion:': name: retrieveCredentialsForExtendedPANID + '-checkPreferredNetworkForActiveOperationalDataset:completion:': + name: checkPreferredNetworkForActiveOperationalDataset THCredentials: {} #since 15.0 protocols: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/threadnetwork/THClient.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/threadnetwork/THClient.java index 0419a1178..a7bde2747 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/threadnetwork/THClient.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/threadnetwork/THClient.java @@ -83,5 +83,10 @@ public THClient() {} */ @Method(selector = "retrieveCredentialsForExtendedPANID:completion:") public native void retrieveCredentialsForExtendedPANID(NSData extendedPANID, @Block VoidBlock2 completion); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "checkPreferredNetworkForActiveOperationalDataset:completion:") + public native void checkPreferredNetworkForActiveOperationalDataset(NSData activeOperationalDataSet, @Block VoidBooleanBlock completion); /**/ } From 1094caee2b02f04f57c5610efb501d57303cab2e Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:34:25 +0300 Subject: [PATCH 65/73] * ios16 bindings: UIKit extended with MacCatalyst apis --- .../cocoatouch/src/main/bro-gen/uikit.yaml | 5 ++ .../java/org/robovm/apple/uikit/UILabel.java | 4 + .../uikit/UIListContentTextProperties.java | 4 + .../UINSToolbarItemPresentationSize.java | 74 +++++++++++++++++++ .../apple/uikit/UISceneSizeRestrictions.java | 4 + .../org/robovm/apple/uikit/UIScrollView.java | 6 ++ .../robovm/apple/uikit/UITraitCollection.java | 4 + .../java/org/robovm/apple/uikit/UIWindow.java | 4 + .../org/robovm/apple/uikit/UIWindowScene.java | 2 + .../UIWindowSceneGeometryPreferencesMac.java | 73 ++++++++++++++++++ 10 files changed, 180 insertions(+) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINSToolbarItemPresentationSize.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesMac.java diff --git a/compiler/cocoatouch/src/main/bro-gen/uikit.yaml b/compiler/cocoatouch/src/main/bro-gen/uikit.yaml index 854a1e6e4..1d8e7128f 100644 --- a/compiler/cocoatouch/src/main/bro-gen/uikit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/uikit.yaml @@ -340,6 +340,7 @@ enums: UITextSearchMatchMethod: {} UICalendarViewDecorationSize: {} #since 16.0 UIEditMenuArrowDirection: {} #since 16.0 + UINSToolbarItemPresentationSize: {} # EXCLUDE1: {exclude: true, first: NSAttachmentCharacter} -- don't exclude it as value will be picked up as constant EXCLUDE3_AS_DEPRECATED: {exclude: true, first: NSControlCharacterZeroAdvancementAction} @@ -4843,6 +4844,10 @@ classes: methods: '-initWithInterfaceOrientations:': name: init + UIWindowSceneGeometryPreferencesMac: + methods: + '-initWithSystemFrame:': + name: init protocols: NSLayoutManagerDelegate: # DONE methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java index 080131231..c7e374248 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UILabel.java @@ -144,6 +144,10 @@ public UILabel() {} public native @MachineSizedFloat double getPreferredMaxLayoutWidth(); @Property(selector = "setPreferredMaxLayoutWidth:") public native void setPreferredMaxLayoutWidth(@MachineSizedFloat double v); + @Property(selector = "showsExpansionTextWhenTruncated") + public native boolean showsExpansionTextWhenTruncated(); + @Property(selector = "setShowsExpansionTextWhenTruncated:") + public native void setShowsExpansionTextWhenTruncated(boolean v); /** * @deprecated Deprecated in iOS 7.0. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentTextProperties.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentTextProperties.java index c69348f52..f4dd8a0a0 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentTextProperties.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIListContentTextProperties.java @@ -102,6 +102,10 @@ public UIListContentTextProperties() {} public native boolean adjustsFontForContentSizeCategory(); @Property(selector = "setAdjustsFontForContentSizeCategory:") public native void setAdjustsFontForContentSizeCategory(boolean v); + @Property(selector = "showsExpansionTextWhenTruncated") + public native boolean showsExpansionTextWhenTruncated(); + @Property(selector = "setShowsExpansionTextWhenTruncated:") + public native void setShowsExpansionTextWhenTruncated(boolean v); @Property(selector = "transform") public native UIListContentTextTransform getTransform(); @Property(selector = "setTransform:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINSToolbarItemPresentationSize.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINSToolbarItemPresentationSize.java new file mode 100644 index 000000000..99e2d2bee --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UINSToolbarItemPresentationSize.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/UINSToolbarItemPresentationSize/**/ implements ValuedEnum { + /**/ + Unspecified(-1L), + Regular(0L), + Small(1L), + Large(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/UINSToolbarItemPresentationSize/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/UINSToolbarItemPresentationSize/**/ valueOf(long n) { + for (/**/UINSToolbarItemPresentationSize/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/UINSToolbarItemPresentationSize/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSizeRestrictions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSizeRestrictions.java index 3a44151ee..ea2b1c0ce 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSizeRestrictions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UISceneSizeRestrictions.java @@ -68,6 +68,10 @@ protected UISceneSizeRestrictions() {} public native @ByVal CGSize getMaximumSize(); @Property(selector = "setMaximumSize:") public native void setMaximumSize(@ByVal CGSize v); + @Property(selector = "allowsFullScreen") + public native boolean allowsFullScreen(); + @Property(selector = "setAllowsFullScreen:") + public native void setAllowsFullScreen(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java index efa1107d3..dea677a65 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIScrollView.java @@ -177,6 +177,10 @@ public UIScrollView() {} public native @MachineSizedFloat double getDecelerationRate(); @Property(selector = "setDecelerationRate:") public native void setDecelerationRate(@MachineSizedFloat double v); + @Property(selector = "indexDisplayMode") + public native UIScrollViewIndexDisplayMode getIndexDisplayMode(); + @Property(selector = "setIndexDisplayMode:") + public native void setIndexDisplayMode(UIScrollViewIndexDisplayMode v); @Property(selector = "isTracking") public native boolean isTracking(); @Property(selector = "isDragging") @@ -219,6 +223,8 @@ public UIScrollView() {} public native UIPanGestureRecognizer getPanGestureRecognizer(); @Property(selector = "pinchGestureRecognizer") public native UIPinchGestureRecognizer getPinchGestureRecognizer(); + @Property(selector = "directionalPressGestureRecognizer") + public native UIGestureRecognizer getDirectionalPressGestureRecognizer(); @Property(selector = "keyboardDismissMode") public native UIScrollViewKeyboardDismissMode getKeyboardDismissMode(); @Property(selector = "setKeyboardDismissMode:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITraitCollection.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITraitCollection.java index 33fb4b812..24db75b15 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITraitCollection.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UITraitCollection.java @@ -149,6 +149,8 @@ public UITraitCollection() {} */ @Property(selector = "activeAppearance") public native UIUserInterfaceActiveAppearance getActiveAppearance(); + @Property(selector = "toolbarItemPresentationSize") + public native UINSToolbarItemPresentationSize getToolbarItemPresentationSize(); /** * @since Available in iOS 13.0 and later. */ @@ -228,6 +230,8 @@ public UITraitCollection() {} */ @Method(selector = "traitCollectionWithActiveAppearance:") protected static native @Pointer long create(UIUserInterfaceActiveAppearance userInterfaceActiveAppearance); + @Method(selector = "traitCollectionWithToolbarItemPresentationSize:") + public static native UITraitCollection createWithToolbarItemPresentationSize(UINSToolbarItemPresentationSize toolbarItemPresentationSize); /** * @since Available in iOS 13.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java index b9af97c28..8d1ea7687 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindow.java @@ -165,6 +165,10 @@ public UIWindow() {} */ @Property(selector = "setWindowScene:", strongRef = true) public native void setWindowScene(UIWindowScene v); + @Property(selector = "canResizeToFitContent") + public native boolean canResizeToFitContent(); + @Property(selector = "setCanResizeToFitContent:") + public native void setCanResizeToFitContent(boolean v); @Property(selector = "screen") public native UIScreen getScreen(); @Property(selector = "setScreen:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java index 8bfd9253d..5cd7ec22b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowScene.java @@ -102,6 +102,8 @@ protected UIWindowScene() {} */ @Property(selector = "windowingBehaviors") public native UISceneWindowingBehaviors getWindowingBehaviors(); + @Property(selector = "isFullScreen") + public native boolean isFullScreen(); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesMac.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesMac.java new file mode 100644 index 000000000..69de7808a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIWindowSceneGeometryPreferencesMac.java @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.uikit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.coreanimation.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.coredata.*; +import org.robovm.apple.coreimage.*; +import org.robovm.apple.coretext.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.cloudkit.*; +import org.robovm.apple.fileprovider.*; +import org.robovm.apple.intents.*; +import org.robovm.apple.usernotifications.*; +import org.robovm.apple.linkpresentation.*; +/**/ + +/**/ + +/**/ +/**/@Library("UIKit") @NativeClass/**/ +/**/public/**/ class /**/UIWindowSceneGeometryPreferencesMac/**/ + extends /**/UIWindowSceneGeometryPreferences/**/ + /**//**/ { + + /**/public static class UIWindowSceneGeometryPreferencesMacPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(UIWindowSceneGeometryPreferencesMac.class); }/**/ + /**//**/ + /**/ + public UIWindowSceneGeometryPreferencesMac() {} + protected UIWindowSceneGeometryPreferencesMac(Handle h, long handle) { super(h, handle); } + protected UIWindowSceneGeometryPreferencesMac(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithSystemFrame:") + public UIWindowSceneGeometryPreferencesMac(@ByVal CGRect systemFrame) { super((SkipInit) null); initObject(init(systemFrame)); } + /**/ + /**/ + @Property(selector = "systemFrame") + public native @ByVal CGRect getSystemFrame(); + @Property(selector = "setSystemFrame:") + public native void setSystemFrame(@ByVal CGRect v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithSystemFrame:") + protected native @Pointer long init(@ByVal CGRect systemFrame); + /**/ +} From 6c50534f35a16b31b7a56e19f130c7a3875ba690 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:37:53 +0300 Subject: [PATCH 66/73] * ios16 bindings: UserNotifications updated --- .../cocoatouch/src/main/bro-gen/usernotifications.yaml | 2 ++ .../robovm/apple/usernotifications/UNErrorCode.java | 3 ++- .../UNMutableNotificationContent.java | 10 ++++++++++ .../apple/usernotifications/UNNotificationContent.java | 5 +++++ .../usernotifications/UNUserNotificationCenter.java | 5 +++++ 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/bro-gen/usernotifications.yaml b/compiler/cocoatouch/src/main/bro-gen/usernotifications.yaml index 7bdae5aa3..a5e4f6435 100755 --- a/compiler/cocoatouch/src/main/bro-gen/usernotifications.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/usernotifications.yaml @@ -117,6 +117,8 @@ classes: name: getDeliveredNotifications '-removeDeliveredNotificationsWithIdentifiers:': name: removeDeliveredNotifications + '-setBadgeCount:withCompletionHandler:': + name: setBadgeCount UNNotificationActionIcon: #since 15.0 methods: '+iconWithTemplateImageName:': diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNErrorCode.java index 51166f302..89e8baae9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNErrorCode.java @@ -48,7 +48,8 @@ public enum /**/UNErrorCode/**/ implements ValuedEnum { NotificationInvalidNoDate(1400L), NotificationInvalidNoContent(1401L), ContentProvidingObjectNotAllowed(1500L), - ContentProvidingInvalid(1501L); + ContentProvidingInvalid(1501L), + BadgeInputInvalid(1600L); /**/ /**/static { Bro.bind(UNErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNMutableNotificationContent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNMutableNotificationContent.java index bba81a6e9..b3063d776 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNMutableNotificationContent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNMutableNotificationContent.java @@ -147,6 +147,16 @@ public UNMutableNotificationContent() {} */ @Property(selector = "setRelevanceScore:") public native void setRelevanceScore(double v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "filterCriteria") + public native String getFilterCriteria(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setFilterCriteria:") + public native void setFilterCriteria(String v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNNotificationContent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNNotificationContent.java index f3ed53fbe..bc4499848 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNNotificationContent.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNNotificationContent.java @@ -100,6 +100,11 @@ public UNNotificationContent() {} */ @Property(selector = "relevanceScore") public native double getRelevanceScore(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "filterCriteria") + public native String getFilterCriteria(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNUserNotificationCenter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNUserNotificationCenter.java index 67292857c..a288d70c5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNUserNotificationCenter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/usernotifications/UNUserNotificationCenter.java @@ -80,6 +80,11 @@ protected UNUserNotificationCenter() {} public native void removeDeliveredNotifications(NSArray identifiers); @Method(selector = "removeAllDeliveredNotifications") public native void removeAllDeliveredNotifications(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "setBadgeCount:withCompletionHandler:") + public native void setBadgeCount(@MachineSizedSInt long newBadgeCount, @Block VoidBlock1 completionHandler); @Method(selector = "currentNotificationCenter") public static native UNUserNotificationCenter currentNotificationCenter(); /**/ From 43d0dadd87334c76119560c37c95e1db7b127b80 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:53:13 +0300 Subject: [PATCH 67/73] * ios16 bindings: Vision updated --- .../cocoatouch/src/main/bro-gen/vision.yaml | 90 ++++++------------- .../apple/vision/VNDetectBarcodesRequest.java | 2 + .../VNDetectDocumentSegmentationRequest.java | 4 +- .../org/robovm/apple/vision/VNErrorCode.java | 7 +- .../apple/vision/VNFaceLandmarkRegion2D.java | 5 ++ .../vision/VNGenerateOpticalFlowRequest.java | 11 +++ .../VNGeneratePersonSegmentationRequest.java | 4 +- .../apple/vision/VNHorizonObservation.java | 6 +- .../vision/VNImageCropAndScaleOption.java | 4 +- ...ision.java => VNPointsClassification.java} | 37 +++++--- .../apple/vision/VNRecognizeTextRequest.java | 11 +++ 11 files changed, 100 insertions(+), 81 deletions(-) rename compiler/cocoatouch/src/main/java/org/robovm/apple/vision/{Vision.java => VNPointsClassification.java} (61%) diff --git a/compiler/cocoatouch/src/main/bro-gen/vision.yaml b/compiler/cocoatouch/src/main/bro-gen/vision.yaml index 068ba7b23..81ab8b560 100755 --- a/compiler/cocoatouch/src/main/bro-gen/vision.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/vision.yaml @@ -17,6 +17,7 @@ enums: VNGenerateOpticalFlowRequestComputationAccuracy: {} VNChirality: {} VNGeneratePersonSegmentationRequestQualityLevel: {} + VNPointsClassification: {} classes: VNBarcodeObservation: {} #since 11.0 VNClassificationObservation: #since 11.0 @@ -69,8 +70,10 @@ classes: name: create constructor: true VNHomographicImageRegistrationRequest: {} #since 11.0 - VNHorizonObservation: {} #since 11.0 - VNImageAlignmentObservation: {} #since 11.0 + VNHorizonObservation: #since 11.0 + methods: + '-transformForImageWidth:height:': + name: transform VNImageBasedRequest: {} #since 11.0 VNImageHomographicAlignmentObservation: {} #since 11.0 VNImageRegistrationRequest: {} #since 11.0 @@ -367,6 +370,7 @@ classes: methods: '+new': { exclude: true } VNHumanObservation: {} #since 15.0 + VNImageAlignmentObservation: {} #since 11.0 protocols: VNFaceObservationAccepting: {} #since 11.0 VNRequestRevisionProviding: {} #since 12.0 @@ -517,69 +521,31 @@ constants: VNRequest(RevisionUnspecified): class: VNRequest name: '#{g[0]}' - VNClassifyImageRequestRevision(.*): - class: VNClassifyImageRequest - name: 'Revision#{g[0]}' - VNDetectFaceRectanglesRequestRevision(.*): - class: VNDetectFaceRectanglesRequest - name: 'Revision#{g[0]}' - VNDetectFaceLandmarksRequestRevision(.*): - class: VNDetectFaceLandmarksRequest - name: 'Revision#{g[0]}' - VNDetectFaceCaptureQualityRequestRevision(.*): - class: VNDetectFaceCaptureQualityRequest - name: 'Revision#{g[0]}' - VNDetectHorizonRequestRevision(.*): - class: VNDetectHorizonRequest - name: 'Revision#{g[0]}' - VNDetectRectanglesRequestRevision(.*): - class: VNDetectRectanglesRequest - name: 'Revision#{g[0]}' - VNDetectTextRectanglesRequestRevision(.*): - class: VNDetectTextRectanglesRequest - name: 'Revision#{g[0]}' - VNRecognizeTextRequestRevision(.*): - class: VNRecognizeTextRequest - name: 'Revision#{g[0]}' - VNGenerateAttentionBasedSaliencyImageRequestRevision(.*): - class: VNGenerateAttentionBasedSaliencyImageRequest - name: 'Revision#{g[0]}' - VNGenerateObjectnessBasedSaliencyImageRequestRevision(.*): - class: VNGenerateObjectnessBasedSaliencyImageRequest - name: 'Revision#{g[0]}' - VNGenerateImageFeaturePrintRequestRevision(.*): - class: VNGenerateImageFeaturePrintRequest - name: 'Revision#{g[0]}' - VNCoreMLRequestRevision(.*): - class: VNCoreMLRequest - name: 'Revision#{g[0]}' - VNTrackObjectRequestRevision(.*): - class: VNTrackObjectRequest - name: 'Revision#{g[0]}' - VNTrackRectangleRequestRevision(.*): - class: VNTrackRectangleRequest - name: 'Revision#{g[0]}' - VNDetectHumanRectanglesRequestRevision(.*): - class: VNDetectHumanRectanglesRequest - name: 'Revision#{g[0]}' - VNRecognizeAnimalsRequestRevision(.*): - class: VNRecognizeAnimalsRequest - name: 'Revision#{g[0]}' - VNGenerateOpticalFlowRequestRevision(.*): - class: VNGenerateOpticalFlowRequest - name: 'Revision#{g[0]}' - VNDetectHumanBodyPoseRequestRevision(.*): - class: VNDetectHumanBodyPoseRequest - name: 'Revision#{g[0]}' - VNDetectHumanHandPoseRequestRevision(.*): - class: VNDetectHumanHandPoseRequest - name: 'Revision#{g[0]}' + VNDetectContourRequestRevision(.*): class: VNDetectContoursRequest name: 'Revision#{g[0]}' - VNDetectTrajectoriesRequestRevision(.*): - class: VNDetectTrajectoriesRequest - name: 'Revision#{g[0]}' + + (VNClassifyImageRequest|VNDetectFaceRectanglesRequest|VNDetectFaceLandmarksRequest|VNDetectFaceCaptureQualityRequest|VNDetectHorizonRequest|VNDetectRectanglesRequest)Revision(.*): + class: '#{g[0]}' + name: 'Revision#{g[1]}' + + (VNDetectTextRectanglesRequest|VNRecognizeTextRequest|VNGenerateAttentionBasedSaliencyImageRequest|VNGenerateObjectnessBasedSaliencyImageRequest|VNGenerateImageFeaturePrintRequest)Revision(.*): + class: '#{g[0]}' + name: 'Revision#{g[1]}' + + (VNCoreMLRequest|VNTrackObjectRequest|VNTrackRectangleRequest|VNDetectHumanRectanglesRequest|VNRecognizeAnimalsRequest|VNGenerateOpticalFlowRequest|VNDetectHumanBodyPoseRequest)Revision(.*): + class: '#{g[0]}' + name: 'Revision#{g[1]}' + + (VNDetectHumanHandPoseRequest|VNDetectContourRequest|VNDetectTrajectoriesRequest)Revision(.*): + class: '#{g[0]}' + name: 'Revision#{g[1]}' + + (VNDetectBarcodesRequest|VNDetectFaceRectanglesRequest|VNDetectFaceLandmarksRequest|VNDetectHorizonRequest|VNDetectRectanglesRequest|VNDetectTextRectanglesRequest|VNCoreMLRequest|VNTrackObjectRequest|VNTrackRectangleRequest|VNGeneratePersonSegmentationRequest|VNDetectDocumentSegmentationRequest)Revision(.*): + class: '#{g[0]}' + name: 'Revision#{g[1]}' + # Make sure we don't miss any constants if new ones are introduced in a later version (VN.*): class: Vision diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectBarcodesRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectBarcodesRequest.java index f1790cc7d..f5d1dab98 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectBarcodesRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectBarcodesRequest.java @@ -51,6 +51,8 @@ /**/static { ObjCRuntime.bind(VNDetectBarcodesRequest.class); }/**/ /**/ public static final int Revision1 = 1; + public static final int Revision2 = 2; + public static final int Revision3 = 3; /**/ /**/ public VNDetectBarcodesRequest() {} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectDocumentSegmentationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectDocumentSegmentationRequest.java index 4505ea99b..14e9d6d33 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectDocumentSegmentationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNDetectDocumentSegmentationRequest.java @@ -49,7 +49,9 @@ /**/public static class VNDetectDocumentSegmentationRequestPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(VNDetectDocumentSegmentationRequest.class); }/**/ - /**//**/ + /**/ + public static final int Revision1 = 1; + /**/ /**/ public VNDetectDocumentSegmentationRequest() {} protected VNDetectDocumentSegmentationRequest(Handle h, long handle) { super(h, handle); } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNErrorCode.java index e3f54ac65..67fc67bcb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNErrorCode.java @@ -43,6 +43,7 @@ /**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("Vision")/**/ public enum /**/VNErrorCode/**/ implements NSErrorCode { /**/ + TuriCoreErrorCode(-1L), OK(0L), RequestCancelled(1L), InvalidFormat(2L), @@ -74,7 +75,11 @@ public enum /**/VNErrorCode/**/ implements NSErrorCode { /** * @since Available in iOS 15.0 and later. */ - UnsupportedRequest(19L); + UnsupportedRequest(19L), + /** + * @since Available in iOS 16.0 and later. + */ + Timeout(20L); /**/ /**/static { Bro.bind(VNErrorCode.class); }/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNFaceLandmarkRegion2D.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNFaceLandmarkRegion2D.java index 0d6e36a33..fb8249049 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNFaceLandmarkRegion2D.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNFaceLandmarkRegion2D.java @@ -63,6 +63,11 @@ protected VNFaceLandmarkRegion2D() {} */ @Property(selector = "precisionEstimatesPerPoint") public native NSArray getPrecisionEstimatesPerPoint(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "pointsClassification") + public native VNPointsClassification getPointsClassification(); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGenerateOpticalFlowRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGenerateOpticalFlowRequest.java index b6dd304ae..e3036b2ea 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGenerateOpticalFlowRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGenerateOpticalFlowRequest.java @@ -51,6 +51,7 @@ /**/static { ObjCRuntime.bind(VNGenerateOpticalFlowRequest.class); }/**/ /**/ public static final int Revision1 = 1; + public static final int Revision2 = 2; /**/ /**/ protected VNGenerateOpticalFlowRequest() {} @@ -126,6 +127,16 @@ protected VNGenerateOpticalFlowRequest() {} public native int getOutputPixelFormat(); @Property(selector = "setOutputPixelFormat:") public native void setOutputPixelFormat(int v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "keepNetworkOutput") + public native boolean isKeepNetworkOutput(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setKeepNetworkOutput:") + public native void setKeepNetworkOutput(boolean v); @Property(selector = "results") public native NSArray getResults(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGeneratePersonSegmentationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGeneratePersonSegmentationRequest.java index 3a84eaf20..30af61037 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGeneratePersonSegmentationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNGeneratePersonSegmentationRequest.java @@ -49,7 +49,9 @@ /**/public static class VNGeneratePersonSegmentationRequestPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(VNGeneratePersonSegmentationRequest.class); }/**/ - /**//**/ + /**/ + public static final int Revision1 = 1; + /**/ /**/ public VNGeneratePersonSegmentationRequest() {} protected VNGeneratePersonSegmentationRequest(Handle h, long handle) { super(h, handle); } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNHorizonObservation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNHorizonObservation.java index 3aaf47a21..7e077149d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNHorizonObservation.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNHorizonObservation.java @@ -65,6 +65,10 @@ public VNHorizonObservation() {} /**/ /**//**/ /**/ - + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "transformForImageWidth:height:") + public native @ByVal CGAffineTransform transform(@MachineSizedUInt long width, @MachineSizedUInt long height); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNImageCropAndScaleOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNImageCropAndScaleOption.java index 1fdadbf79..ba7f5737c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNImageCropAndScaleOption.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNImageCropAndScaleOption.java @@ -45,7 +45,9 @@ public enum /**/VNImageCropAndScaleOption/**/ implements ValuedEnum /**/ CenterCrop(0L), ScaleFit(1L), - ScaleFill(2L); + ScaleFill(2L), + ScaleFitRotate90CCW(257L), + ScaleFillRotate90CCW(258L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/Vision.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNPointsClassification.java similarity index 61% rename from compiler/cocoatouch/src/main/java/org/robovm/apple/vision/Vision.java rename to compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNPointsClassification.java index 99cf056c8..4c42370aa 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/Vision.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNPointsClassification.java @@ -38,23 +38,32 @@ /**/ /**/ + /**/ -/**//**/ -/**/public/**/ class /**/Vision/**/ - extends /**/CocoaUtility/**/ - /**//**/ { +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/VNPointsClassification/**/ implements ValuedEnum { + /**/ + Disconnected(0L), + OpenPath(1L), + ClosedPath(2L); + /**/ - /**/ - /**/ /**/ /**/ - /**/ - public static final int Constant__VNDetectBarcodesRequestRevision2 = 2; - public static final int Constant__VNGeneratePersonSegmentationRequestRevision1 = 1; - public static final int Constant__VNDetectDocumentSegmentationRequestRevision1 = 1; - /**/ - /**//**/ - /**//**/ - /**//**/ + /**//**/ /**//**/ + + private final long n; + + private /**/VNPointsClassification/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/VNPointsClassification/**/ valueOf(long n) { + for (/**/VNPointsClassification/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/VNPointsClassification/**/.class.getName()); + } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNRecognizeTextRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNRecognizeTextRequest.java index 0bbd686e5..976a56014 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNRecognizeTextRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/vision/VNRecognizeTextRequest.java @@ -52,6 +52,7 @@ /**/ public static final int Revision1 = 1; public static final int Revision2 = 2; + public static final int Revision3 = 3; /**/ /**/ public VNRecognizeTextRequest() {} @@ -77,6 +78,16 @@ public VNRecognizeTextRequest() {} public native boolean usesLanguageCorrection(); @Property(selector = "setUsesLanguageCorrection:") public native void setUsesLanguageCorrection(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "automaticallyDetectsLanguage") + public native boolean automaticallyDetectsLanguage(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setAutomaticallyDetectsLanguage:") + public native void setAutomaticallyDetectsLanguage(boolean v); @Property(selector = "minimumTextHeight") public native float getMinimumTextHeight(); @Property(selector = "setMinimumTextHeight:") From bc29325cf3c47b446041987302c938c85fa73c7f Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 10:57:19 +0300 Subject: [PATCH 68/73] * ios16 bindings: WebKit updated --- .../cocoatouch/src/main/bro-gen/webkit.yaml | 5 ++ .../robovm/apple/webkit/WKDialogResult.java | 68 +++++++++++++++++++ .../org/robovm/apple/webkit/WKErrorCode.java | 14 +++- .../apple/webkit/WKFullscreenState.java | 2 +- .../robovm/apple/webkit/WKPreferences.java | 8 +-- .../org/robovm/apple/webkit/WKUIDelegate.java | 5 ++ .../apple/webkit/WKUIDelegateAdapter.java | 5 ++ .../org/robovm/apple/webkit/WKWebView.java | 32 ++++++++- .../apple/webkit/WKWebpagePreferences.java | 10 +++ .../apple/webkit/WKWebsiteDataType.java | 11 ++- 10 files changed, 152 insertions(+), 8 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKDialogResult.java diff --git a/compiler/cocoatouch/src/main/bro-gen/webkit.yaml b/compiler/cocoatouch/src/main/bro-gen/webkit.yaml index 18bda1de1..a8e8aa162 100755 --- a/compiler/cocoatouch/src/main/bro-gen/webkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/webkit.yaml @@ -27,6 +27,7 @@ enums: WKPermissionDecision: {} #since 15.0 WKMediaCaptureType: {} #since 15.0 WKFullscreenState: {} #since 15.0 + WKDialogResult: {} #since 16.0 categories: NSAttributedString: methods: @@ -210,6 +211,8 @@ classes: name: loadSimulatedRequest '-loadSimulatedRequest:withResponseHTMLString:': name: loadSimulatedReques + '-setMinimumViewportInset:maximumViewportInset:': + name: setMinimumViewportInset WKPreviewElementInfo: {} WKContentRuleList: {} #since 11.0 WKContentRuleListStore: #since 11.0 @@ -306,6 +309,8 @@ protocols: name: requestMediaCapturePermission '-webView:requestDeviceOrientationAndMotionPermissionForOrigin:initiatedByFrame:decisionHandler:': name: requestDeviceOrientationAndMotionPermission + '-webView:showLockdownModeFirstUseMessage:completionHandler:': + name: showLockdownModeFirstUseMessage WKHTTPCookieStoreObserver: {} #since 11.0 WKPreviewActionItem: {} #since 10.0 WKURLSchemeHandler: #since 11.0 diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKDialogResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKDialogResult.java new file mode 100644 index 000000000..47d87193e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKDialogResult.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.webkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.security.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/WKDialogResult/**/ implements ValuedEnum { + /**/ + ShowDefault(1L), + AskAgain(2L), + Handled(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/WKDialogResult/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/WKDialogResult/**/ valueOf(long n) { + for (/**/WKDialogResult/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/WKDialogResult/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKErrorCode.java index 6bba2bf07..b3bc7f0b2 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKErrorCode.java @@ -84,7 +84,19 @@ public enum /**/WKErrorCode/**/ implements NSErrorCode { /** * @since Available in iOS 14.0 and later. */ - JavaScriptAppBoundDomain(14L); + JavaScriptAppBoundDomain(14L), + /** + * @since Available in iOS 16.0 and later. + */ + DuplicateCredential(15L), + /** + * @since Available in iOS 16.0 and later. + */ + MalformedCredential(16L), + /** + * @since Available in iOS 16.0 and later. + */ + CredentialNotFound(17L); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKFullscreenState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKFullscreenState.java index 4857f4ebe..32734833a 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKFullscreenState.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKFullscreenState.java @@ -36,7 +36,7 @@ /**/ /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 16.0 and later. */ /**/ /**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKPreferences.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKPreferences.java index 0e78c5d06..cf4823d04 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKPreferences.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKPreferences.java @@ -82,22 +82,22 @@ public WKPreferences() {} @Property(selector = "setTextInteractionEnabled:") public native void setTextInteractionEnabled(boolean v); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 15.4 and later. */ @Property(selector = "isSiteSpecificQuirksModeEnabled") public native boolean isSiteSpecificQuirksModeEnabled(); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 15.4 and later. */ @Property(selector = "setSiteSpecificQuirksModeEnabled:") public native void setSiteSpecificQuirksModeEnabled(boolean v); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 15.4 and later. */ @Property(selector = "isElementFullscreenEnabled") public native boolean isElementFullscreenEnabled(); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 15.4 and later. */ @Property(selector = "setElementFullscreenEnabled:") public native void setElementFullscreenEnabled(boolean v); diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegate.java index 280d557dd..ca4927535 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegate.java @@ -114,6 +114,11 @@ */ @Method(selector = "webView:contextMenuDidEndForElement:") void contextMenuDidEnd(WKWebView webView, WKContextMenuElementInfo elementInfo); + /** + * @since Available in iOS 13.0 and later. + */ + @Method(selector = "webView:showLockdownModeFirstUseMessage:completionHandler:") + void showLockdownModeFirstUseMessage(WKWebView webView, String message, @Block VoidBlock1 completionHandler); /**/ /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegateAdapter.java index 02653ffba..cdc9d51bc 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKUIDelegateAdapter.java @@ -116,5 +116,10 @@ public void getContextMenu(WKWebView webView, WKContextMenuElementInfo elementIn */ @NotImplemented("webView:contextMenuDidEndForElement:") public void contextMenuDidEnd(WKWebView webView, WKContextMenuElementInfo elementInfo) {} + /** + * @since Available in iOS 13.0 and later. + */ + @NotImplemented("webView:showLockdownModeFirstUseMessage:completionHandler:") + public void showLockdownModeFirstUseMessage(WKWebView webView, String message, @Block VoidBlock1 completionHandler) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebView.java index 0c4e9cba0..fcd90b0a4 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebView.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebView.java @@ -170,10 +170,35 @@ public WKWebView() {} @Property(selector = "setUnderPageBackgroundColor:") public native void setUnderPageBackgroundColor(UIColor v); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 16.0 and later. */ @Property(selector = "fullscreenState") public native WKFullscreenState getFullscreenState(); + /** + * @since Available in iOS 15.5 and later. + */ + @Property(selector = "minimumViewportInset") + public native @ByVal UIEdgeInsets getMinimumViewportInset(); + /** + * @since Available in iOS 15.5 and later. + */ + @Property(selector = "maximumViewportInset") + public native @ByVal UIEdgeInsets getMaximumViewportInset(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isFindInteractionEnabled") + public native boolean isFindInteractionEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setFindInteractionEnabled:") + public native void setFindInteractionEnabled(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "findInteraction") + public native UIFindInteraction getFindInteraction(); @WeaklyLinked @Property(selector = "layerClass") public static native Class getLayerClass(); @@ -332,6 +357,11 @@ public WKWebView() {} @Deprecated @Method(selector = "loadSimulatedRequest:withResponseHTMLString:") public native WKNavigation loadSimulatedReques(NSURLRequest request, String string); + /** + * @since Available in iOS 15.5 and later. + */ + @Method(selector = "setMinimumViewportInset:maximumViewportInset:") + public native void setMinimumViewportInset(@ByVal UIEdgeInsets minimumViewportInset, @ByVal UIEdgeInsets maximumViewportInset); /** * @since Available in iOS 11.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebpagePreferences.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebpagePreferences.java index 0418481e2..fa669534b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebpagePreferences.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebpagePreferences.java @@ -73,6 +73,16 @@ public WKWebpagePreferences() {} */ @Property(selector = "setAllowsContentJavaScript:") public native void setAllowsContentJavaScript(boolean v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "isLockdownModeEnabled") + public native boolean isLockdownModeEnabled(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setLockdownModeEnabled:") + public native void setLockdownModeEnabled(boolean v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebsiteDataType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebsiteDataType.java index 236dac1b6..27e2418cd 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebsiteDataType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/webkit/WKWebsiteDataType.java @@ -157,9 +157,13 @@ public static long toNative(Set l, long flags) { * @since Available in iOS 11.3 and later. */ public static final WKWebsiteDataType ServiceWorkerRegistrations = new WKWebsiteDataType("ServiceWorkerRegistrations"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final WKWebsiteDataType FileSystem = new WKWebsiteDataType("FileSystem"); /**/ - private static /**/WKWebsiteDataType/**/[] values = new /**/WKWebsiteDataType/**/[] {/**/FetchCache, DiskCache, MemoryCache, OfflineWebApplicationCache, Cookies, SessionStorage, LocalStorage, WebSQLDatabases, IndexedDBDatabases, ServiceWorkerRegistrations/**/}; + private static /**/WKWebsiteDataType/**/[] values = new /**/WKWebsiteDataType/**/[] {/**/FetchCache, DiskCache, MemoryCache, OfflineWebApplicationCache, Cookies, SessionStorage, LocalStorage, WebSQLDatabases, IndexedDBDatabases, ServiceWorkerRegistrations, FileSystem/**/}; /**/WKWebsiteDataType/**/ (String getterName) { super(Values.class, getterName); @@ -232,6 +236,11 @@ public static class Values { */ @GlobalValue(symbol="WKWebsiteDataTypeServiceWorkerRegistrations", optional=true) public static native NSString ServiceWorkerRegistrations(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="WKWebsiteDataTypeFileSystem", optional=true) + public static native NSString FileSystem(); /**/ } } From ea960edaf97a401b3fcaf3cb32d0a308642ecfda Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 11:06:33 +0300 Subject: [PATCH 69/73] * ios16 bindings: new framework -- DeviceDiscoveryExtension --- .../bro-gen/devicediscoveryextension.yaml | 72 +++++++++ .../devicediscoveryextension/DDDevice.java | 114 +++++++++++++++ .../DDDeviceCategory.java | 72 +++++++++ .../DDDeviceEvent.java | 66 +++++++++ .../DDDeviceMediaPlayback.java | 56 +++++++ .../DDDeviceMediaPlaybackState.java | 64 ++++++++ .../DDDeviceProtocol.java | 68 +++++++++ .../DDDeviceProtocolString.java | 137 ++++++++++++++++++ .../DDDeviceState.java | 71 +++++++++ .../DDDiscoverySession.java | 59 ++++++++ .../devicediscoveryextension/DDErrorCode.java | 98 +++++++++++++ .../devicediscoveryextension/DDEventType.java | 65 +++++++++ .../DDEventTypeToString.java | 56 +++++++ 13 files changed, 998 insertions(+) create mode 100755 compiler/cocoatouch/src/main/bro-gen/devicediscoveryextension.yaml create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDevice.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceCategory.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlayback.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlaybackState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocol.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocolString.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceState.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDiscoverySession.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDErrorCode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventType.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventTypeToString.java diff --git a/compiler/cocoatouch/src/main/bro-gen/devicediscoveryextension.yaml b/compiler/cocoatouch/src/main/bro-gen/devicediscoveryextension.yaml new file mode 100755 index 000000000..889c636a7 --- /dev/null +++ b/compiler/cocoatouch/src/main/bro-gen/devicediscoveryextension.yaml @@ -0,0 +1,72 @@ +package: org.robovm.apple.devicediscoveryextension +include: [foundation, uniformtypeid, network] +library: DeviceDiscoveryExtension +framework: DeviceDiscoveryExtension +clang_args: ['-x', 'objective-c'] +headers: + - /System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DeviceDiscoveryExtension.h +typedefs: {} + +enums: + DDDeviceProtocol: {} + DDDeviceCategory: {} + DDDeviceState: {} + DDDeviceMediaPlaybackState: {} + DDErrorCode: {nserror: true} #since 16.0 + DDEventType: {} + +typed_enums: + DDDeviceProtocolString: + enum: DDDeviceProtocolString + type: NSString + prefix: DDDeviceProtocolString + +classes: + DDDevice: #since 16.0 + methods: + '-initWithDisplayName:category:protocolType:identifier:': + name: init + DDDeviceEvent: #since 16.0 + methods: + '-initWithEventType:device:': + name: init + DDDiscoverySession: {} +protocols: + +functions: + DDDeviceProtocolToString: + class: DDDeviceProtocol + name: toString + DDDeviceCategoryToString: + class: DDDeviceCategory + name: toString + DDDeviceStateToString: + class: DDDeviceState + name: toString + DDDeviceMediaPlaybackStateToString: + class: DDDeviceMediaPlayback + name: toString + DDEventTypeToString: + class: DDEventTypeToString + name: toString + + # Make sure we don't miss any functions if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Function__#{g[0]}' + +values: + DDErrorDomain: + class: DDErrorCode + name: getClassDomain + + # Make sure we don't miss any values if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Value__#{g[0]}' + +constants: + # Make sure we don't miss any constants if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Constant__#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDevice.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDevice.java new file mode 100644 index 000000000..167f4586d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDevice.java @@ -0,0 +1,114 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("DeviceDiscoveryExtension") @NativeClass/**/ +/**/public/**/ class /**/DDDevice/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class DDDevicePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(DDDevice.class); }/**/ + /**//**/ + /**/ + protected DDDevice() {} + protected DDDevice(Handle h, long handle) { super(h, handle); } + protected DDDevice(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithDisplayName:category:protocolType:identifier:") + public DDDevice(String displayName, DDDeviceCategory category, UTType protocolType, String identifier) { super((SkipInit) null); initObject(init(displayName, category, protocolType, identifier)); } + /**/ + /**/ + @Property(selector = "bluetoothIdentifier") + public native NSUUID getBluetoothIdentifier(); + @Property(selector = "setBluetoothIdentifier:") + public native void setBluetoothIdentifier(NSUUID v); + @Property(selector = "category") + public native DDDeviceCategory getCategory(); + @Property(selector = "setCategory:") + public native void setCategory(DDDeviceCategory v); + @Property(selector = "displayName") + public native String getDisplayName(); + @Property(selector = "setDisplayName:") + public native void setDisplayName(String v); + @Property(selector = "identifier") + public native String getIdentifier(); + @Property(selector = "setIdentifier:") + public native void setIdentifier(String v); + @Property(selector = "networkEndpoint") + public native NWEndpoint getNetworkEndpoint(); + @Property(selector = "setNetworkEndpoint:") + public native void setNetworkEndpoint(NWEndpoint v); + @Property(selector = "protocol") + public native DDDeviceProtocol getProtocol(); + @Property(selector = "setProtocol:") + public native void setProtocol(DDDeviceProtocol v); + @Property(selector = "protocolType") + public native UTType getProtocolType(); + @Property(selector = "setProtocolType:") + public native void setProtocolType(UTType v); + @Property(selector = "state") + public native DDDeviceState getState(); + @Property(selector = "setState:") + public native void setState(DDDeviceState v); + @Property(selector = "txtRecordData") + public native NSData getTxtRecordData(); + @Property(selector = "setTxtRecordData:") + public native void setTxtRecordData(NSData v); + @Property(selector = "url") + public native NSURL getUrl(); + @Property(selector = "setUrl:") + public native void setUrl(NSURL v); + @Property(selector = "mediaPlaybackState") + public native DDDeviceMediaPlaybackState getMediaPlaybackState(); + @Property(selector = "setMediaPlaybackState:") + public native void setMediaPlaybackState(DDDeviceMediaPlaybackState v); + @Property(selector = "mediaContentTitle") + public native String getMediaContentTitle(); + @Property(selector = "setMediaContentTitle:") + public native void setMediaContentTitle(String v); + @Property(selector = "mediaContentSubtitle") + public native String getMediaContentSubtitle(); + @Property(selector = "setMediaContentSubtitle:") + public native void setMediaContentSubtitle(String v); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithDisplayName:category:protocolType:identifier:") + protected native @Pointer long init(String displayName, DDDeviceCategory category, UTType protocolType, String identifier); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceCategory.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceCategory.java new file mode 100644 index 000000000..2747dc36b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceCategory.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("DeviceDiscoveryExtension")/**/ +public enum /**/DDDeviceCategory/**/ implements ValuedEnum { + /**/ + HiFiSpeaker(0L), + HiFiSpeakerMultiple(1L), + TVWithMediaBox(2L), + TV(3L), + LaptopComputer(4L), + DesktopComputer(5L); + /**/ + + /**/static { Bro.bind(DDDeviceCategory.class); }/**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="DDDeviceCategoryToString", optional=true) + public native String toString(); + /**/ + + private final long n; + + private /**/DDDeviceCategory/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/DDDeviceCategory/**/ valueOf(long n) { + for (/**/DDDeviceCategory/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/DDDeviceCategory/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceEvent.java new file mode 100644 index 000000000..0fe5b8969 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceEvent.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("DeviceDiscoveryExtension") @NativeClass/**/ +/**/public/**/ class /**/DDDeviceEvent/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class DDDeviceEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(DDDeviceEvent.class); }/**/ + /**//**/ + /**/ + public DDDeviceEvent() {} + protected DDDeviceEvent(Handle h, long handle) { super(h, handle); } + protected DDDeviceEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithEventType:device:") + public DDDeviceEvent(DDEventType type, DDDevice device) { super((SkipInit) null); initObject(init(type, device)); } + /**/ + /**/ + @Property(selector = "device") + public native DDDevice getDevice(); + @Property(selector = "eventType") + public native DDEventType getEventType(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithEventType:device:") + protected native @Pointer long init(DDEventType type, DDDevice device); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlayback.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlayback.java new file mode 100644 index 000000000..2bf868d09 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlayback.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/**/ +/**/@Library("DeviceDiscoveryExtension")/**/ +/**/public/**/ class /**/DDDeviceMediaPlayback/**/ + extends /**/CocoaUtility/**/ + /**//**/ { + + /**/ + /**/ + /**/static { Bro.bind(DDDeviceMediaPlayback.class); }/**/ + /**//**/ + /**//**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="DDDeviceMediaPlaybackStateToString", optional=true) + public static native String toString(DDDeviceMediaPlaybackState inValue); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlaybackState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlaybackState.java new file mode 100644 index 000000000..0e04cbe7d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceMediaPlaybackState.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/DDDeviceMediaPlaybackState/**/ implements ValuedEnum { + /**/ + NoContent(0L), + Paused(1L), + Playing(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/DDDeviceMediaPlaybackState/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/DDDeviceMediaPlaybackState/**/ valueOf(long n) { + for (/**/DDDeviceMediaPlaybackState/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/DDDeviceMediaPlaybackState/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocol.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocol.java new file mode 100644 index 000000000..b31e949a8 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocol.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("DeviceDiscoveryExtension")/**/ +public enum /**/DDDeviceProtocol/**/ implements ValuedEnum { + /**/ + Invalid(0L), + DIAL(1L); + /**/ + + /**/static { Bro.bind(DDDeviceProtocol.class); }/**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="DDDeviceProtocolToString", optional=true) + public native String toString(); + /**/ + + private final long n; + + private /**/DDDeviceProtocol/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/DDDeviceProtocol/**/ valueOf(long n) { + for (/**/DDDeviceProtocol/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/DDDeviceProtocol/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocolString.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocolString.java new file mode 100644 index 000000000..a4baf719d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceProtocolString.java @@ -0,0 +1,137 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/**/ +/**/@Library("DeviceDiscoveryExtension") @StronglyLinked/**/ +@Marshaler(/**/DDDeviceProtocolString/**/.Marshaler.class) +/**/public/**/ class /**/DDDeviceProtocolString/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/DDDeviceProtocolString/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static DDDeviceProtocolString toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return DDDeviceProtocolString.valueOf(o); + } + @MarshalsPointer + public static long toNative(DDDeviceProtocolString o, long flags) { + if (o == null) { + return 0L; + } + return NSObject.Marshaler.toNative(o.value(), flags); + } + } + public static class AsListMarshaler { + @SuppressWarnings("unchecked") + @MarshalsPointer + public static List toObject(Class cls, long handle, long flags) { + NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags); + if (o == null) { + return null; + } + List list = new ArrayList<>(); + for (int i = 0; i < o.size(); i++) { + list.add(DDDeviceProtocolString.valueOf(o.get(i))); + } + return list; + } + @MarshalsPointer + public static long toNative(List l, long flags) { + if (l == null) { + return 0L; + } + NSArray array = new NSMutableArray<>(); + for (DDDeviceProtocolString o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final DDDeviceProtocolString Invalid = new DDDeviceProtocolString("Invalid"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final DDDeviceProtocolString DIAL = new DDDeviceProtocolString("DIAL"); + /**/ + + private static /**/DDDeviceProtocolString/**/[] values = new /**/DDDeviceProtocolString/**/[] {/**/Invalid, DIAL/**/}; + + /**/DDDeviceProtocolString/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/DDDeviceProtocolString/**/ valueOf(/**/NSString/**/ value) { + for (/**/DDDeviceProtocolString/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/DDDeviceProtocolString/**/.class.getName()); + } + + /**//**/ + + /**/@Library("DeviceDiscoveryExtension") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="DDDeviceProtocolStringInvalid", optional=true) + public static native NSString Invalid(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="DDDeviceProtocolStringDIAL", optional=true) + public static native NSString DIAL(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceState.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceState.java new file mode 100644 index 000000000..77f0e17b6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDeviceState.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("DeviceDiscoveryExtension")/**/ +public enum /**/DDDeviceState/**/ implements ValuedEnum { + /**/ + Invalid(0L), + Activating(10L), + Activated(20L), + Authorized(25L), + Invalidating(30L); + /**/ + + /**/static { Bro.bind(DDDeviceState.class); }/**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="DDDeviceStateToString", optional=true) + public native String toString(); + /**/ + + private final long n; + + private /**/DDDeviceState/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/DDDeviceState/**/ valueOf(long n) { + for (/**/DDDeviceState/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/DDDeviceState/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDiscoverySession.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDiscoverySession.java new file mode 100644 index 000000000..d74713b03 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDDiscoverySession.java @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ + +/**/ +/**/@Library("DeviceDiscoveryExtension") @NativeClass/**/ +/**/public/**/ class /**/DDDiscoverySession/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class DDDiscoverySessionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(DDDiscoverySession.class); }/**/ + /**//**/ + /**/ + public DDDiscoverySession() {} + protected DDDiscoverySession(Handle h, long handle) { super(h, handle); } + protected DDDiscoverySession(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "reportEvent:") + public native void reportEvent(DDDeviceEvent inEvent); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDErrorCode.java new file mode 100644 index 000000000..b699692b1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDErrorCode.java @@ -0,0 +1,98 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("DeviceDiscoveryExtension")/**/ +public enum /**/DDErrorCode/**/ implements NSErrorCode { + /**/ + Success(0L), + Unknown(350000L), + BadParameter(350001L), + Unsupported(350002L), + Timeout(350003L), + Internal(350004L), + MissingEntitlement(350005L), + Permission(350006L), + Next(350007L); + /**/ + + /**/static { Bro.bind(DDErrorCode.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="DDErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/DDErrorCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/DDErrorCode/**/ valueOf(long n) { + for (/**/DDErrorCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/DDErrorCode/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/DDErrorCode/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/DDErrorCode/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventType.java new file mode 100644 index 000000000..4f7094f90 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventType.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/DDEventType/**/ implements ValuedEnum { + /**/ + Unknown(0L), + DeviceFound(40L), + DeviceLost(41L), + DeviceChanged(42L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/DDEventType/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/DDEventType/**/ valueOf(long n) { + for (/**/DDEventType/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/DDEventType/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventTypeToString.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventTypeToString.java new file mode 100644 index 000000000..ff38e2aa0 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/devicediscoveryextension/DDEventTypeToString.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.devicediscoveryextension; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.network.*; +/**/ + +/**/ +/**/ +/**/@Library("DeviceDiscoveryExtension")/**/ +/**/public/**/ class /**/DDEventTypeToString/**/ + extends /**/CocoaUtility/**/ + /**//**/ { + + /**/ + /**/ + /**/static { Bro.bind(DDEventTypeToString.class); }/**/ + /**//**/ + /**//**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @Bridge(symbol="DDEventTypeToString", optional=true) + public static native String toString(DDEventType inValue); + /**/ +} From 6d113c8a0fc3a6a18beb092ea921de6d14ad8a5c Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 11:10:57 +0300 Subject: [PATCH 70/73] * ios16 bindings: new framework -- MetalFX --- .../cocoatouch/src/main/bro-gen/metalfx.yaml | 44 ++++++ .../apple/metalfx/MTLFXSpatialScaler.java | 94 ++++++++++++ .../metalfx/MTLFXSpatialScalerAdapter.java | 92 +++++++++++ ...MTLFXSpatialScalerColorProcessingMode.java | 65 ++++++++ .../metalfx/MTLFXSpatialScalerDescriptor.java | 89 +++++++++++ .../apple/metalfx/MTLFXTemporalScaler.java | 144 ++++++++++++++++++ .../metalfx/MTLFXTemporalScalerAdapter.java | 142 +++++++++++++++++ .../MTLFXTemporalScalerDescriptor.java | 109 +++++++++++++ 8 files changed, 779 insertions(+) create mode 100755 compiler/cocoatouch/src/main/bro-gen/metalfx.yaml create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScaler.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerColorProcessingMode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScaler.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerDescriptor.java diff --git a/compiler/cocoatouch/src/main/bro-gen/metalfx.yaml b/compiler/cocoatouch/src/main/bro-gen/metalfx.yaml new file mode 100755 index 000000000..bcc795f9d --- /dev/null +++ b/compiler/cocoatouch/src/main/bro-gen/metalfx.yaml @@ -0,0 +1,44 @@ +package: org.robovm.apple.metalfx +include: [foundation, metal] +library: MetalFX +framework: MetalFX +clang_args: ['-x', 'objective-c'] +headers: + - /System/Library/Frameworks/MetalFX.framework/Headers/MetalFX.h +typedefs: {} + +enums: + MTLFXSpatialScalerColorProcessingMode: {} #since 16.0 + +classes: + MTLFXSpatialScalerDescriptor: #since 16.0 + methods: + '-newSpatialScalerWithDevice:': + name: newSpatialScaler + MTLFXTemporalScalerDescriptor: #since 16.0 + methods: + '-newTemporalScalerWithDevice:': + name: newTemporalScaler + +protocols: + MTLFXSpatialScaler: {} #since 16.0 + MTLFXTemporalScaler: {} #since 16.0 + +functions: + # Make sure we don't miss any functions if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Function__#{g[0]}' + +values: + + # Make sure we don't miss any values if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Value__#{g[0]}' + +constants: + # Make sure we don't miss any constants if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Constant__#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScaler.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScaler.java new file mode 100644 index 000000000..6b8f15a0e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScaler.java @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLFXSpatialScaler/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "colorTextureUsage") + MTLTextureUsage getColorTextureUsage(); + @Property(selector = "outputTextureUsage") + MTLTextureUsage getOutputTextureUsage(); + @Property(selector = "inputContentWidth") + @MachineSizedUInt long getInputContentWidth(); + @Property(selector = "setInputContentWidth:") + void setInputContentWidth(@MachineSizedUInt long v); + @Property(selector = "inputContentHeight") + @MachineSizedUInt long getInputContentHeight(); + @Property(selector = "setInputContentHeight:") + void setInputContentHeight(@MachineSizedUInt long v); + @Property(selector = "colorTexture") + MTLTexture getColorTexture(); + @Property(selector = "setColorTexture:") + void setColorTexture(MTLTexture v); + @Property(selector = "outputTexture") + MTLTexture getOutputTexture(); + @Property(selector = "setOutputTexture:") + void setOutputTexture(MTLTexture v); + @Property(selector = "colorTextureFormat") + MTLPixelFormat getColorTextureFormat(); + @Property(selector = "outputTextureFormat") + MTLPixelFormat getOutputTextureFormat(); + @Property(selector = "inputWidth") + @MachineSizedUInt long getInputWidth(); + @Property(selector = "inputHeight") + @MachineSizedUInt long getInputHeight(); + @Property(selector = "outputWidth") + @MachineSizedUInt long getOutputWidth(); + @Property(selector = "outputHeight") + @MachineSizedUInt long getOutputHeight(); + @Property(selector = "colorProcessingMode") + MTLFXSpatialScalerColorProcessingMode getColorProcessingMode(); + @Property(selector = "fence") + MTLFence getFence(); + @Property(selector = "setFence:") + void setFence(MTLFence v); + /**/ + /**/ + @Method(selector = "encodeToCommandBuffer:") + void encodeToCommandBuffer(MTLCommandBuffer commandBuffer); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerAdapter.java new file mode 100644 index 000000000..e5a36fa72 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerAdapter.java @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLFXSpatialScalerAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLFXSpatialScaler/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("colorTextureUsage") + public MTLTextureUsage getColorTextureUsage() { return null; } + @NotImplemented("outputTextureUsage") + public MTLTextureUsage getOutputTextureUsage() { return null; } + @NotImplemented("inputContentWidth") + public @MachineSizedUInt long getInputContentWidth() { return 0; } + @NotImplemented("setInputContentWidth:") + public void setInputContentWidth(@MachineSizedUInt long v) {} + @NotImplemented("inputContentHeight") + public @MachineSizedUInt long getInputContentHeight() { return 0; } + @NotImplemented("setInputContentHeight:") + public void setInputContentHeight(@MachineSizedUInt long v) {} + @NotImplemented("colorTexture") + public MTLTexture getColorTexture() { return null; } + @NotImplemented("setColorTexture:") + public void setColorTexture(MTLTexture v) {} + @NotImplemented("outputTexture") + public MTLTexture getOutputTexture() { return null; } + @NotImplemented("setOutputTexture:") + public void setOutputTexture(MTLTexture v) {} + @NotImplemented("colorTextureFormat") + public MTLPixelFormat getColorTextureFormat() { return null; } + @NotImplemented("outputTextureFormat") + public MTLPixelFormat getOutputTextureFormat() { return null; } + @NotImplemented("inputWidth") + public @MachineSizedUInt long getInputWidth() { return 0; } + @NotImplemented("inputHeight") + public @MachineSizedUInt long getInputHeight() { return 0; } + @NotImplemented("outputWidth") + public @MachineSizedUInt long getOutputWidth() { return 0; } + @NotImplemented("outputHeight") + public @MachineSizedUInt long getOutputHeight() { return 0; } + @NotImplemented("colorProcessingMode") + public MTLFXSpatialScalerColorProcessingMode getColorProcessingMode() { return null; } + @NotImplemented("fence") + public MTLFence getFence() { return null; } + @NotImplemented("setFence:") + public void setFence(MTLFence v) {} + /**/ + /**//**/ + /**/ + @NotImplemented("encodeToCommandBuffer:") + public void encodeToCommandBuffer(MTLCommandBuffer commandBuffer) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerColorProcessingMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerColorProcessingMode.java new file mode 100644 index 000000000..1b68fed8b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerColorProcessingMode.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/MTLFXSpatialScalerColorProcessingMode/**/ implements ValuedEnum { + /**/ + Perceptual(0L), + Linear(1L), + HDR(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/MTLFXSpatialScalerColorProcessingMode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/MTLFXSpatialScalerColorProcessingMode/**/ valueOf(long n) { + for (/**/MTLFXSpatialScalerColorProcessingMode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/MTLFXSpatialScalerColorProcessingMode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerDescriptor.java new file mode 100644 index 000000000..c77007475 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXSpatialScalerDescriptor.java @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MetalFX") @NativeClass/**/ +/**/public/**/ class /**/MTLFXSpatialScalerDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLFXSpatialScalerDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLFXSpatialScalerDescriptor.class); }/**/ + /**//**/ + /**/ + public MTLFXSpatialScalerDescriptor() {} + protected MTLFXSpatialScalerDescriptor(Handle h, long handle) { super(h, handle); } + protected MTLFXSpatialScalerDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "colorTextureFormat") + public native MTLPixelFormat getColorTextureFormat(); + @Property(selector = "setColorTextureFormat:") + public native void setColorTextureFormat(MTLPixelFormat v); + @Property(selector = "outputTextureFormat") + public native MTLPixelFormat getOutputTextureFormat(); + @Property(selector = "setOutputTextureFormat:") + public native void setOutputTextureFormat(MTLPixelFormat v); + @Property(selector = "inputWidth") + public native @MachineSizedUInt long getInputWidth(); + @Property(selector = "setInputWidth:") + public native void setInputWidth(@MachineSizedUInt long v); + @Property(selector = "inputHeight") + public native @MachineSizedUInt long getInputHeight(); + @Property(selector = "setInputHeight:") + public native void setInputHeight(@MachineSizedUInt long v); + @Property(selector = "outputWidth") + public native @MachineSizedUInt long getOutputWidth(); + @Property(selector = "setOutputWidth:") + public native void setOutputWidth(@MachineSizedUInt long v); + @Property(selector = "outputHeight") + public native @MachineSizedUInt long getOutputHeight(); + @Property(selector = "setOutputHeight:") + public native void setOutputHeight(@MachineSizedUInt long v); + @Property(selector = "colorProcessingMode") + public native MTLFXSpatialScalerColorProcessingMode getColorProcessingMode(); + @Property(selector = "setColorProcessingMode:") + public native void setColorProcessingMode(MTLFXSpatialScalerColorProcessingMode v); + /**/ + /**//**/ + /**/ + @Method(selector = "newSpatialScalerWithDevice:") + public native MTLFXSpatialScaler newSpatialScaler(MTLDevice device); + @Method(selector = "supportsDevice:") + public static native boolean supportsDevice(MTLDevice device); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScaler.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScaler.java new file mode 100644 index 000000000..549c7d945 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScaler.java @@ -0,0 +1,144 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/MTLFXTemporalScaler/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "colorTextureUsage") + MTLTextureUsage getColorTextureUsage(); + @Property(selector = "depthTextureUsage") + MTLTextureUsage getDepthTextureUsage(); + @Property(selector = "motionTextureUsage") + MTLTextureUsage getMotionTextureUsage(); + @Property(selector = "outputTextureUsage") + MTLTextureUsage getOutputTextureUsage(); + @Property(selector = "inputContentWidth") + @MachineSizedUInt long getInputContentWidth(); + @Property(selector = "setInputContentWidth:") + void setInputContentWidth(@MachineSizedUInt long v); + @Property(selector = "inputContentHeight") + @MachineSizedUInt long getInputContentHeight(); + @Property(selector = "setInputContentHeight:") + void setInputContentHeight(@MachineSizedUInt long v); + @Property(selector = "colorTexture") + MTLTexture getColorTexture(); + @Property(selector = "setColorTexture:") + void setColorTexture(MTLTexture v); + @Property(selector = "depthTexture") + MTLTexture getDepthTexture(); + @Property(selector = "setDepthTexture:") + void setDepthTexture(MTLTexture v); + @Property(selector = "motionTexture") + MTLTexture getMotionTexture(); + @Property(selector = "setMotionTexture:") + void setMotionTexture(MTLTexture v); + @Property(selector = "outputTexture") + MTLTexture getOutputTexture(); + @Property(selector = "setOutputTexture:") + void setOutputTexture(MTLTexture v); + @Property(selector = "exposureTexture") + MTLTexture getExposureTexture(); + @Property(selector = "setExposureTexture:") + void setExposureTexture(MTLTexture v); + @Property(selector = "preExposure") + float getPreExposure(); + @Property(selector = "setPreExposure:") + void setPreExposure(float v); + @Property(selector = "jitterOffsetX") + float getJitterOffsetX(); + @Property(selector = "setJitterOffsetX:") + void setJitterOffsetX(float v); + @Property(selector = "jitterOffsetY") + float getJitterOffsetY(); + @Property(selector = "setJitterOffsetY:") + void setJitterOffsetY(float v); + @Property(selector = "motionVectorScaleX") + float getMotionVectorScaleX(); + @Property(selector = "setMotionVectorScaleX:") + void setMotionVectorScaleX(float v); + @Property(selector = "motionVectorScaleY") + float getMotionVectorScaleY(); + @Property(selector = "setMotionVectorScaleY:") + void setMotionVectorScaleY(float v); + @Property(selector = "reset") + boolean isReset(); + @Property(selector = "setReset:") + void setReset(boolean v); + @Property(selector = "isDepthReversed") + boolean isDepthReversed(); + @Property(selector = "setDepthReversed:") + void setDepthReversed(boolean v); + @Property(selector = "colorTextureFormat") + MTLPixelFormat getColorTextureFormat(); + @Property(selector = "depthTextureFormat") + MTLPixelFormat getDepthTextureFormat(); + @Property(selector = "motionTextureFormat") + MTLPixelFormat getMotionTextureFormat(); + @Property(selector = "outputTextureFormat") + MTLPixelFormat getOutputTextureFormat(); + @Property(selector = "inputWidth") + @MachineSizedUInt long getInputWidth(); + @Property(selector = "inputHeight") + @MachineSizedUInt long getInputHeight(); + @Property(selector = "outputWidth") + @MachineSizedUInt long getOutputWidth(); + @Property(selector = "outputHeight") + @MachineSizedUInt long getOutputHeight(); + @Property(selector = "inputContentMinScale") + float getInputContentMinScale(); + @Property(selector = "inputContentMaxScale") + float getInputContentMaxScale(); + @Property(selector = "fence") + MTLFence getFence(); + @Property(selector = "setFence:") + void setFence(MTLFence v); + /**/ + /**/ + @Method(selector = "encodeToCommandBuffer:") + void encodeToCommandBuffer(MTLCommandBuffer commandBuffer); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerAdapter.java new file mode 100644 index 000000000..3e4da4f51 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerAdapter.java @@ -0,0 +1,142 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/MTLFXTemporalScalerAdapter/**/ + extends /**/NSObject/**/ + /**/implements MTLFXTemporalScaler/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("colorTextureUsage") + public MTLTextureUsage getColorTextureUsage() { return null; } + @NotImplemented("depthTextureUsage") + public MTLTextureUsage getDepthTextureUsage() { return null; } + @NotImplemented("motionTextureUsage") + public MTLTextureUsage getMotionTextureUsage() { return null; } + @NotImplemented("outputTextureUsage") + public MTLTextureUsage getOutputTextureUsage() { return null; } + @NotImplemented("inputContentWidth") + public @MachineSizedUInt long getInputContentWidth() { return 0; } + @NotImplemented("setInputContentWidth:") + public void setInputContentWidth(@MachineSizedUInt long v) {} + @NotImplemented("inputContentHeight") + public @MachineSizedUInt long getInputContentHeight() { return 0; } + @NotImplemented("setInputContentHeight:") + public void setInputContentHeight(@MachineSizedUInt long v) {} + @NotImplemented("colorTexture") + public MTLTexture getColorTexture() { return null; } + @NotImplemented("setColorTexture:") + public void setColorTexture(MTLTexture v) {} + @NotImplemented("depthTexture") + public MTLTexture getDepthTexture() { return null; } + @NotImplemented("setDepthTexture:") + public void setDepthTexture(MTLTexture v) {} + @NotImplemented("motionTexture") + public MTLTexture getMotionTexture() { return null; } + @NotImplemented("setMotionTexture:") + public void setMotionTexture(MTLTexture v) {} + @NotImplemented("outputTexture") + public MTLTexture getOutputTexture() { return null; } + @NotImplemented("setOutputTexture:") + public void setOutputTexture(MTLTexture v) {} + @NotImplemented("exposureTexture") + public MTLTexture getExposureTexture() { return null; } + @NotImplemented("setExposureTexture:") + public void setExposureTexture(MTLTexture v) {} + @NotImplemented("preExposure") + public float getPreExposure() { return 0; } + @NotImplemented("setPreExposure:") + public void setPreExposure(float v) {} + @NotImplemented("jitterOffsetX") + public float getJitterOffsetX() { return 0; } + @NotImplemented("setJitterOffsetX:") + public void setJitterOffsetX(float v) {} + @NotImplemented("jitterOffsetY") + public float getJitterOffsetY() { return 0; } + @NotImplemented("setJitterOffsetY:") + public void setJitterOffsetY(float v) {} + @NotImplemented("motionVectorScaleX") + public float getMotionVectorScaleX() { return 0; } + @NotImplemented("setMotionVectorScaleX:") + public void setMotionVectorScaleX(float v) {} + @NotImplemented("motionVectorScaleY") + public float getMotionVectorScaleY() { return 0; } + @NotImplemented("setMotionVectorScaleY:") + public void setMotionVectorScaleY(float v) {} + @NotImplemented("reset") + public boolean isReset() { return false; } + @NotImplemented("setReset:") + public void setReset(boolean v) {} + @NotImplemented("isDepthReversed") + public boolean isDepthReversed() { return false; } + @NotImplemented("setDepthReversed:") + public void setDepthReversed(boolean v) {} + @NotImplemented("colorTextureFormat") + public MTLPixelFormat getColorTextureFormat() { return null; } + @NotImplemented("depthTextureFormat") + public MTLPixelFormat getDepthTextureFormat() { return null; } + @NotImplemented("motionTextureFormat") + public MTLPixelFormat getMotionTextureFormat() { return null; } + @NotImplemented("outputTextureFormat") + public MTLPixelFormat getOutputTextureFormat() { return null; } + @NotImplemented("inputWidth") + public @MachineSizedUInt long getInputWidth() { return 0; } + @NotImplemented("inputHeight") + public @MachineSizedUInt long getInputHeight() { return 0; } + @NotImplemented("outputWidth") + public @MachineSizedUInt long getOutputWidth() { return 0; } + @NotImplemented("outputHeight") + public @MachineSizedUInt long getOutputHeight() { return 0; } + @NotImplemented("inputContentMinScale") + public float getInputContentMinScale() { return 0; } + @NotImplemented("inputContentMaxScale") + public float getInputContentMaxScale() { return 0; } + @NotImplemented("fence") + public MTLFence getFence() { return null; } + @NotImplemented("setFence:") + public void setFence(MTLFence v) {} + /**/ + /**//**/ + /**/ + @NotImplemented("encodeToCommandBuffer:") + public void encodeToCommandBuffer(MTLCommandBuffer commandBuffer) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerDescriptor.java new file mode 100644 index 000000000..8d27b129f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalfx/MTLFXTemporalScalerDescriptor.java @@ -0,0 +1,109 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.metalfx; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.metal.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("MetalFX") @NativeClass/**/ +/**/public/**/ class /**/MTLFXTemporalScalerDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class MTLFXTemporalScalerDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(MTLFXTemporalScalerDescriptor.class); }/**/ + /**//**/ + /**/ + public MTLFXTemporalScalerDescriptor() {} + protected MTLFXTemporalScalerDescriptor(Handle h, long handle) { super(h, handle); } + protected MTLFXTemporalScalerDescriptor(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "colorTextureFormat") + public native MTLPixelFormat getColorTextureFormat(); + @Property(selector = "setColorTextureFormat:") + public native void setColorTextureFormat(MTLPixelFormat v); + @Property(selector = "depthTextureFormat") + public native MTLPixelFormat getDepthTextureFormat(); + @Property(selector = "setDepthTextureFormat:") + public native void setDepthTextureFormat(MTLPixelFormat v); + @Property(selector = "motionTextureFormat") + public native MTLPixelFormat getMotionTextureFormat(); + @Property(selector = "setMotionTextureFormat:") + public native void setMotionTextureFormat(MTLPixelFormat v); + @Property(selector = "outputTextureFormat") + public native MTLPixelFormat getOutputTextureFormat(); + @Property(selector = "setOutputTextureFormat:") + public native void setOutputTextureFormat(MTLPixelFormat v); + @Property(selector = "inputWidth") + public native @MachineSizedUInt long getInputWidth(); + @Property(selector = "setInputWidth:") + public native void setInputWidth(@MachineSizedUInt long v); + @Property(selector = "inputHeight") + public native @MachineSizedUInt long getInputHeight(); + @Property(selector = "setInputHeight:") + public native void setInputHeight(@MachineSizedUInt long v); + @Property(selector = "outputWidth") + public native @MachineSizedUInt long getOutputWidth(); + @Property(selector = "setOutputWidth:") + public native void setOutputWidth(@MachineSizedUInt long v); + @Property(selector = "outputHeight") + public native @MachineSizedUInt long getOutputHeight(); + @Property(selector = "setOutputHeight:") + public native void setOutputHeight(@MachineSizedUInt long v); + @Property(selector = "isAutoExposureEnabled") + public native boolean isAutoExposureEnabled(); + @Property(selector = "setAutoExposureEnabled:") + public native void setAutoExposureEnabled(boolean v); + @Property(selector = "isInputContentPropertiesEnabled") + public native boolean isInputContentPropertiesEnabled(); + @Property(selector = "setInputContentPropertiesEnabled:") + public native void setInputContentPropertiesEnabled(boolean v); + @Property(selector = "inputContentMinScale") + public native float getInputContentMinScale(); + @Property(selector = "setInputContentMinScale:") + public native void setInputContentMinScale(float v); + @Property(selector = "inputContentMaxScale") + public native float getInputContentMaxScale(); + @Property(selector = "setInputContentMaxScale:") + public native void setInputContentMaxScale(float v); + /**/ + /**//**/ + /**/ + @Method(selector = "newTemporalScalerWithDevice:") + public native MTLFXTemporalScaler newTemporalScaler(MTLDevice device); + @Method(selector = "supportsDevice:") + public static native boolean supportsDevice(MTLDevice device); + /**/ +} From 0ee58e501ca87b3c632ffd3cf59936187cb13736 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 11:18:15 +0300 Subject: [PATCH 71/73] * ios16 bindings: new framework -- PushToTalk --- .../src/main/bro-gen/pushtotalk.yaml | 105 ++++++++++++++++++ .../apple/pushtotalk/PTChannelDescriptor.java | 66 +++++++++++ .../apple/pushtotalk/PTChannelError.java | 99 +++++++++++++++++ .../apple/pushtotalk/PTChannelJoinReason.java | 65 +++++++++++ .../pushtotalk/PTChannelLeaveReason.java | 67 +++++++++++ .../apple/pushtotalk/PTChannelManager.java | 79 +++++++++++++ .../pushtotalk/PTChannelManagerDelegate.java | 80 +++++++++++++ .../PTChannelManagerDelegateAdapter.java | 78 +++++++++++++ .../PTChannelRestorationDelegate.java | 58 ++++++++++ .../PTChannelRestorationDelegateAdapter.java | 56 ++++++++++ .../PTChannelTransmitRequestSource.java | 67 +++++++++++ .../pushtotalk/PTInstantiationError.java | 95 ++++++++++++++++ .../apple/pushtotalk/PTParticipant.java | 66 +++++++++++ .../robovm/apple/pushtotalk/PTPushResult.java | 62 +++++++++++ .../apple/pushtotalk/PTServiceStatus.java | 66 +++++++++++ .../apple/pushtotalk/PTTransmissionMode.java | 66 +++++++++++ 16 files changed, 1175 insertions(+) create mode 100755 compiler/cocoatouch/src/main/bro-gen/pushtotalk.yaml create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelDescriptor.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelError.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelJoinReason.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelLeaveReason.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManager.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelTransmitRequestSource.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTInstantiationError.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTParticipant.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTPushResult.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTServiceStatus.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTTransmissionMode.java diff --git a/compiler/cocoatouch/src/main/bro-gen/pushtotalk.yaml b/compiler/cocoatouch/src/main/bro-gen/pushtotalk.yaml new file mode 100755 index 000000000..f4567b14e --- /dev/null +++ b/compiler/cocoatouch/src/main/bro-gen/pushtotalk.yaml @@ -0,0 +1,105 @@ +package: org.robovm.apple.pushtotalk +include: [foundation, uikit, avfoundation] +library: PushToTalk +framework: PushToTalk +clang_args: ['-x', 'objective-c'] +headers: + - /System/Library/Frameworks/PushToTalk.framework/Headers/PushToTalk.h +typedefs: {} + +enums: + PTChannelJoinReason: {} #since 16.0 + PTChannelLeaveReason: {} #since 16.0 + PTChannelTransmitRequestSource: {} #since 16.0 + PTServiceStatus: {} #since 16.0 + PTTransmissionMode: {} #since 16.0 + PTInstantiationError: {nserror: true} #since 16.0 + PTChannelError: {nserror: true} #since 16.0 + +classes: + PTChannelDescriptor: #since 16.0 + methods: + '-initWithName:image:': + name: init + PTChannelManager: #since 16.0 + methods: + '-requestJoinChannelWithUUID:descriptor:': + name: requestJoinChannel + '-requestBeginTransmittingWithChannelUUID:': + name: requestBeginTransmitting + '-stopTransmittingWithChannelUUID:': + name: stopTransmitting + '-leaveChannelWithUUID:': + name: leaveChannel + '-setChannelDescriptor:forChannelUUID:completionHandler:': + name: setChannelDescriptor + '-setActiveRemoteParticipant:forChannelUUID:completionHandler:': + name: setActiveRemoteParticipant + '-setServiceStatus:forChannelUUID:completionHandler:': + name: setServiceStatus + '-setTransmissionMode:forChannelUUID:completionHandler:': + name: setTransmissionMode + '+channelManagerWithDelegate:restorationDelegate:completionHandler:': + name: create + constructor: true + PTParticipant: #since 16.0 + methods: + '-initWithName:image:': + name: init + PTPushResult: {} #since 16.0 + +protocols: + PTChannelManagerDelegate: #since 16.0 + methods: + '-channelManager:didJoinChannelWithUUID:reason:': + name: didJoinChannelWithUUID + '-channelManager:didLeaveChannelWithUUID:reason:': + name: didLeaveChannelWithUUID + '-channelManager:channelUUID:didBeginTransmittingFromSource:': + name: didBeginTransmittingFromSource + '-channelManager:channelUUID:didEndTransmittingFromSource:': + name: didEndTransmittingFromSource + '-channelManager:receivedEphemeralPushToken:': + name: receivedEphemeralPushToken + '-incomingPushResultForChannelManager:channelUUID:pushPayload:': + name: incomingPushResultForChannelManager + '-channelManager:didActivateAudioSession:': + name: didActivateAudioSession + '-channelManager:didDeactivateAudioSession:': + name: didDeactivateAudioSession + '-channelManager:failedToJoinChannelWithUUID:error:': + name: failedToJoinChannelWithUUID + '-channelManager:failedToLeaveChannelWithUUID:error:': + name: failedToLeaveChannelWithUUID + '-channelManager:failedToBeginTransmittingInChannelWithUUID:error:': + name: failedToBeginTransmittingInChannelWithUUID + '-channelManager:failedToStopTransmittingInChannelWithUUID:error:': + name: failedToStopTransmittingInChannelWithUUID + PTChannelRestorationDelegate: {} #since 16.0 + + + +functions: + # Make sure we don't miss any functions if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Function__#{g[0]}' + +values: + PTInstantiationErrorDomain: + class: PTInstantiationError + name: getClassDomain + PTChannelErrorDomain: + class: PTChannelError + name: getClassDomain + + # Make sure we don't miss any values if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Value__#{g[0]}' + +constants: + # Make sure we don't miss any constants if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Constant__#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelDescriptor.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelDescriptor.java new file mode 100644 index 000000000..2604be420 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelDescriptor.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PushToTalk") @NativeClass/**/ +/**/public/**/ class /**/PTChannelDescriptor/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PTChannelDescriptorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PTChannelDescriptor.class); }/**/ + /**//**/ + /**/ + protected PTChannelDescriptor() {} + protected PTChannelDescriptor(Handle h, long handle) { super(h, handle); } + protected PTChannelDescriptor(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithName:image:") + public PTChannelDescriptor(String name, UIImage image) { super((SkipInit) null); initObject(init(name, image)); } + /**/ + /**/ + @Property(selector = "name") + public native String getName(); + @Property(selector = "image") + public native UIImage getImage(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithName:image:") + protected native @Pointer long init(String name, UIImage image); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelError.java new file mode 100644 index 000000000..86fde5381 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelError.java @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("PushToTalk")/**/ +public enum /**/PTChannelError/**/ implements NSErrorCode { + /**/ + Unknown(0L), + ChannelNotFound(1L), + ChannelLimitReached(2L), + CallActive(3L), + TransmissionInProgress(4L), + TransmissionNotFound(5L), + AppNotForeground(6L), + DeviceManagementRestriction(7L), + ScreenTimeRestriction(8L), + TransmissionNotAllowed(9L); + /**/ + + /**/static { Bro.bind(PTChannelError.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="PTChannelErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/PTChannelError/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTChannelError/**/ valueOf(long n) { + for (/**/PTChannelError/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTChannelError/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/PTChannelError/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/PTChannelError/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelJoinReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelJoinReason.java new file mode 100644 index 000000000..6e389041f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelJoinReason.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PTChannelJoinReason/**/ implements ValuedEnum { + /**/ + DeveloperRequest(0L), + ChannelRestoration(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PTChannelJoinReason/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTChannelJoinReason/**/ valueOf(long n) { + for (/**/PTChannelJoinReason/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTChannelJoinReason/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelLeaveReason.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelLeaveReason.java new file mode 100644 index 000000000..ecb753c4c --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelLeaveReason.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PTChannelLeaveReason/**/ implements ValuedEnum { + /**/ + Unknown(0L), + UserRequest(1L), + DeveloperRequest(2L), + SystemPolicy(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PTChannelLeaveReason/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTChannelLeaveReason/**/ valueOf(long n) { + for (/**/PTChannelLeaveReason/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTChannelLeaveReason/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManager.java new file mode 100644 index 000000000..9090c2d8e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManager.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PushToTalk") @NativeClass/**/ +/**/public/**/ class /**/PTChannelManager/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PTChannelManagerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PTChannelManager.class); }/**/ + /**//**/ + /**/ + protected PTChannelManager() {} + protected PTChannelManager(Handle h, long handle) { super(h, handle); } + protected PTChannelManager(SkipInit skipInit) { super(skipInit); } + public PTChannelManager(PTChannelManagerDelegate delegate, PTChannelRestorationDelegate restorationDelegate, @Block VoidBlock2 completionHandler) { super((Handle) null, create(delegate, restorationDelegate, completionHandler)); retain(getHandle()); } + /**/ + /**/ + @Property(selector = "activeChannelUUID") + public native NSUUID getActiveChannelUUID(); + /**/ + /**//**/ + /**/ + @Method(selector = "requestJoinChannelWithUUID:descriptor:") + public native void requestJoinChannel(NSUUID channelUUID, PTChannelDescriptor descriptor); + @Method(selector = "requestBeginTransmittingWithChannelUUID:") + public native void requestBeginTransmitting(NSUUID channelUUID); + @Method(selector = "stopTransmittingWithChannelUUID:") + public native void stopTransmitting(NSUUID channelUUID); + @Method(selector = "leaveChannelWithUUID:") + public native void leaveChannel(NSUUID channelUUID); + @Method(selector = "setChannelDescriptor:forChannelUUID:completionHandler:") + public native void setChannelDescriptor(PTChannelDescriptor channelDescriptor, NSUUID channelUUID, @Block VoidBlock1 completionHandler); + @Method(selector = "setActiveRemoteParticipant:forChannelUUID:completionHandler:") + public native void setActiveRemoteParticipant(PTParticipant participant, NSUUID channelUUID, @Block VoidBlock1 completionHandler); + @Method(selector = "setServiceStatus:forChannelUUID:completionHandler:") + public native void setServiceStatus(PTServiceStatus status, NSUUID channelUUID, @Block VoidBlock1 completionHandler); + @Method(selector = "setTransmissionMode:forChannelUUID:completionHandler:") + public native void setTransmissionMode(PTTransmissionMode transmissionMode, NSUUID channelUUID, @Block VoidBlock1 completionHandler); + @Method(selector = "channelManagerWithDelegate:restorationDelegate:completionHandler:") + protected static native @Pointer long create(PTChannelManagerDelegate delegate, PTChannelRestorationDelegate restorationDelegate, @Block VoidBlock2 completionHandler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegate.java new file mode 100644 index 000000000..9d1e39d94 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegate.java @@ -0,0 +1,80 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/PTChannelManagerDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "channelManager:didJoinChannelWithUUID:reason:") + void didJoinChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, PTChannelJoinReason reason); + @Method(selector = "channelManager:didLeaveChannelWithUUID:reason:") + void didLeaveChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, PTChannelLeaveReason reason); + @Method(selector = "channelManager:channelUUID:didBeginTransmittingFromSource:") + void didBeginTransmittingFromSource(PTChannelManager channelManager, NSUUID channelUUID, PTChannelTransmitRequestSource source); + @Method(selector = "channelManager:channelUUID:didEndTransmittingFromSource:") + void didEndTransmittingFromSource(PTChannelManager channelManager, NSUUID channelUUID, PTChannelTransmitRequestSource source); + @Method(selector = "channelManager:receivedEphemeralPushToken:") + void receivedEphemeralPushToken(PTChannelManager channelManager, NSData pushToken); + @Method(selector = "incomingPushResultForChannelManager:channelUUID:pushPayload:") + PTPushResult incomingPushResultForChannelManager(PTChannelManager channelManager, NSUUID channelUUID, NSDictionary pushPayload); + @Method(selector = "channelManager:didActivateAudioSession:") + void didActivateAudioSession(PTChannelManager channelManager, AVAudioSession audioSession); + @Method(selector = "channelManager:didDeactivateAudioSession:") + void didDeactivateAudioSession(PTChannelManager channelManager, AVAudioSession audioSession); + @Method(selector = "channelManager:failedToJoinChannelWithUUID:error:") + void failedToJoinChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error); + @Method(selector = "channelManager:failedToLeaveChannelWithUUID:error:") + void failedToLeaveChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error); + @Method(selector = "channelManager:failedToBeginTransmittingInChannelWithUUID:error:") + void failedToBeginTransmittingInChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error); + @Method(selector = "channelManager:failedToStopTransmittingInChannelWithUUID:error:") + void failedToStopTransmittingInChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegateAdapter.java new file mode 100644 index 000000000..a72c0c6c1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelManagerDelegateAdapter.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/PTChannelManagerDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements PTChannelManagerDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("channelManager:didJoinChannelWithUUID:reason:") + public void didJoinChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, PTChannelJoinReason reason) {} + @NotImplemented("channelManager:didLeaveChannelWithUUID:reason:") + public void didLeaveChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, PTChannelLeaveReason reason) {} + @NotImplemented("channelManager:channelUUID:didBeginTransmittingFromSource:") + public void didBeginTransmittingFromSource(PTChannelManager channelManager, NSUUID channelUUID, PTChannelTransmitRequestSource source) {} + @NotImplemented("channelManager:channelUUID:didEndTransmittingFromSource:") + public void didEndTransmittingFromSource(PTChannelManager channelManager, NSUUID channelUUID, PTChannelTransmitRequestSource source) {} + @NotImplemented("channelManager:receivedEphemeralPushToken:") + public void receivedEphemeralPushToken(PTChannelManager channelManager, NSData pushToken) {} + @NotImplemented("incomingPushResultForChannelManager:channelUUID:pushPayload:") + public PTPushResult incomingPushResultForChannelManager(PTChannelManager channelManager, NSUUID channelUUID, NSDictionary pushPayload) { return null; } + @NotImplemented("channelManager:didActivateAudioSession:") + public void didActivateAudioSession(PTChannelManager channelManager, AVAudioSession audioSession) {} + @NotImplemented("channelManager:didDeactivateAudioSession:") + public void didDeactivateAudioSession(PTChannelManager channelManager, AVAudioSession audioSession) {} + @NotImplemented("channelManager:failedToJoinChannelWithUUID:error:") + public void failedToJoinChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error) {} + @NotImplemented("channelManager:failedToLeaveChannelWithUUID:error:") + public void failedToLeaveChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error) {} + @NotImplemented("channelManager:failedToBeginTransmittingInChannelWithUUID:error:") + public void failedToBeginTransmittingInChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error) {} + @NotImplemented("channelManager:failedToStopTransmittingInChannelWithUUID:error:") + public void failedToStopTransmittingInChannelWithUUID(PTChannelManager channelManager, NSUUID channelUUID, NSError error) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegate.java new file mode 100644 index 000000000..6a46aa2db --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegate.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/PTChannelRestorationDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "channelDescriptorForRestoredChannelUUID:") + PTChannelDescriptor channelDescriptorForRestoredChannelUUID(NSUUID channelUUID); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegateAdapter.java new file mode 100644 index 000000000..8d74dd995 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelRestorationDelegateAdapter.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/PTChannelRestorationDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements PTChannelRestorationDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("channelDescriptorForRestoredChannelUUID:") + public PTChannelDescriptor channelDescriptorForRestoredChannelUUID(NSUUID channelUUID) { return null; } + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelTransmitRequestSource.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelTransmitRequestSource.java new file mode 100644 index 000000000..80be2e1aa --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTChannelTransmitRequestSource.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PTChannelTransmitRequestSource/**/ implements ValuedEnum { + /**/ + Unknown(0L), + UserRequest(1L), + DeveloperRequest(2L), + HandsfreeButton(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PTChannelTransmitRequestSource/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTChannelTransmitRequestSource/**/ valueOf(long n) { + for (/**/PTChannelTransmitRequestSource/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTChannelTransmitRequestSource/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTInstantiationError.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTInstantiationError.java new file mode 100644 index 000000000..fa57a12cb --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTInstantiationError.java @@ -0,0 +1,95 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("PushToTalk")/**/ +public enum /**/PTInstantiationError/**/ implements NSErrorCode { + /**/ + Unknown(0L), + InvalidPlatform(1L), + MissingBackgroundMode(2L), + MissingPushServerEnvironment(3L), + MissingEntitlement(4L), + InstantiationAlreadyInProgress(5L); + /**/ + + /**/static { Bro.bind(PTInstantiationError.class); }/**/ + /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="PTInstantiationErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ + + private final long n; + + private /**/PTInstantiationError/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTInstantiationError/**/ valueOf(long n) { + for (/**/PTInstantiationError/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTInstantiationError/**/.class.getName()); + } + + // bind wrap to include it in compilation as long as nserror enum is used + static { Bro.bind(NSErrorWrap.class); } + @StronglyLinked + public static class NSErrorWrap extends NSError { + protected NSErrorWrap(SkipInit skipInit) {super(skipInit);} + + @Override public NSErrorCode getErrorCode() { + try { + return /**/PTInstantiationError/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/PTInstantiationError/**/.getClassDomain(); + } + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTParticipant.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTParticipant.java new file mode 100644 index 000000000..8865ab9a9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTParticipant.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PushToTalk") @NativeClass/**/ +/**/public/**/ class /**/PTParticipant/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PTParticipantPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PTParticipant.class); }/**/ + /**//**/ + /**/ + protected PTParticipant() {} + protected PTParticipant(Handle h, long handle) { super(h, handle); } + protected PTParticipant(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithName:image:") + public PTParticipant(String name, UIImage image) { super((SkipInit) null); initObject(init(name, image)); } + /**/ + /**/ + @Property(selector = "name") + public native String getName(); + @Property(selector = "image") + public native UIImage getImage(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithName:image:") + protected native @Pointer long init(String name, UIImage image); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTPushResult.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTPushResult.java new file mode 100644 index 000000000..8432a15ce --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTPushResult.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("PushToTalk") @NativeClass/**/ +/**/public/**/ class /**/PTPushResult/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class PTPushResultPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(PTPushResult.class); }/**/ + /**//**/ + /**/ + protected PTPushResult() {} + protected PTPushResult(Handle h, long handle) { super(h, handle); } + protected PTPushResult(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "leaveChannelPushResult") + public static native PTPushResult getLeaveChannelPushResult(); + /**/ + /**//**/ + /**/ + @Method(selector = "pushResultForActiveRemoteParticipant:") + public static native PTPushResult pushResultForActiveRemoteParticipant(PTParticipant participant); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTServiceStatus.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTServiceStatus.java new file mode 100644 index 000000000..cb6ee51af --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTServiceStatus.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PTServiceStatus/**/ implements ValuedEnum { + /**/ + Ready(0L), + Connecting(1L), + Unavailable(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PTServiceStatus/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTServiceStatus/**/ valueOf(long n) { + for (/**/PTServiceStatus/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTServiceStatus/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTTransmissionMode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTTransmissionMode.java new file mode 100644 index 000000000..46f5dedf7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/pushtotalk/PTTransmissionMode.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.pushtotalk; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.avfoundation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/PTTransmissionMode/**/ implements ValuedEnum { + /**/ + FullDuplex(0L), + HalfDuplex(1L), + ListenOnly(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/PTTransmissionMode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/PTTransmissionMode/**/ valueOf(long n) { + for (/**/PTTransmissionMode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/PTTransmissionMode/**/.class.getName()); + } +} From 6c5c3d4f238723f77349f4b087d3e05c6b8a2f2c Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 17:19:10 +0300 Subject: [PATCH 72/73] * ios16 bindings: new framework -- SharedWithYou --- .../src/main/bro-gen/sharedwithyou.yaml | 144 ++++++++++++++++++ .../robovm/apple/sharedwithyou/SWAction.java | 76 +++++++++ .../sharedwithyou/SWAttributionView.java | 107 +++++++++++++ .../SWAttributionViewBackgroundStyle.java | 68 +++++++++ .../SWAttributionViewDisplayContext.java | 67 ++++++++ .../SWAttributionViewHorizontalAlignment.java | 69 +++++++++ .../SWCollaborationActionHandler.java | 62 ++++++++ .../SWCollaborationActionHandlerAdapter.java | 60 ++++++++ .../SWCollaborationCoordinator.java | 67 ++++++++ .../SWCollaborationHighlight.java | 71 +++++++++ .../SWCollaborationMetadata.java | 122 +++++++++++++++ .../sharedwithyou/SWCollaborationOption.java | 90 +++++++++++ .../SWCollaborationOptionsGroup.java | 92 +++++++++++ .../SWCollaborationOptionsPickerGroup.java | 69 +++++++++ .../SWCollaborationShareOptions.java | 84 ++++++++++ .../sharedwithyou/SWCollaborationView.java | 119 +++++++++++++++ .../SWCollaborationViewDelegate.java | 64 ++++++++ .../SWCollaborationViewDelegateAdapter.java | 62 ++++++++ .../apple/sharedwithyou/SWHighlight.java | 72 +++++++++ .../sharedwithyou/SWHighlightCenter.java | 89 +++++++++++ .../SWHighlightCenterDelegate.java | 58 +++++++ .../SWHighlightCenterDelegateAdapter.java | 58 +++++++ .../SWHighlightCenterErrorCode.java | 69 +++++++++ .../sharedwithyou/SWHighlightChangeEvent.java | 76 +++++++++ .../SWHighlightChangeEventTrigger.java | 67 ++++++++ .../apple/sharedwithyou/SWHighlightEvent.java | 60 ++++++++ .../SWHighlightEventAdapter.java | 58 +++++++ .../SWHighlightMembershipEvent.java | 76 +++++++++ .../SWHighlightMembershipEventTrigger.java | 67 ++++++++ .../SWHighlightMentionEvent.java | 80 ++++++++++ .../SWHighlightPersistenceEvent.java | 76 +++++++++ .../SWHighlightPersistenceEventTrigger.java | 69 +++++++++ .../robovm/apple/sharedwithyou/SWPerson.java | 72 +++++++++ .../apple/sharedwithyou/SWPersonIdentity.java | 74 +++++++++ .../sharedwithyou/SWPersonIdentityProof.java | 74 +++++++++ .../SWRemoveParticipantAlertController.java | 68 +++++++++ .../SWSignedPersonIdentityProof.java | 68 +++++++++ .../SWStartCollaborationAction.java | 66 ++++++++ ...UpdateCollaborationParticipantsAction.java | 69 +++++++++ 39 files changed, 2959 insertions(+) create mode 100755 compiler/cocoatouch/src/main/bro-gen/sharedwithyou.yaml create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAction.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionView.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewBackgroundStyle.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewDisplayContext.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewHorizontalAlignment.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandler.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandlerAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationCoordinator.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationHighlight.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationMetadata.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOption.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsGroup.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsPickerGroup.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationShareOptions.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationView.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlight.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterErrorCode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEventTrigger.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEventAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEventTrigger.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMentionEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEventTrigger.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPerson.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentity.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentityProof.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWRemoveParticipantAlertController.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWSignedPersonIdentityProof.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWStartCollaborationAction.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWUpdateCollaborationParticipantsAction.java diff --git a/compiler/cocoatouch/src/main/bro-gen/sharedwithyou.yaml b/compiler/cocoatouch/src/main/bro-gen/sharedwithyou.yaml new file mode 100755 index 000000000..1b374fe21 --- /dev/null +++ b/compiler/cocoatouch/src/main/bro-gen/sharedwithyou.yaml @@ -0,0 +1,144 @@ +package: org.robovm.apple.sharedwithyou +include: [foundation, uikit, coregraphics, uniformtypeid, coreanimation] +library: SharedWithYou +framework: SharedWithYou +internal_frameworks: [SharedWithYouCore] +clang_args: ['-x', 'objective-c'] +headers: + - /System/Library/Frameworks/SharedWithYou.framework/Headers/SharedWithYou.h + - /System/Library/Frameworks/SharedWithYouCore.framework/Headers/SharedWithYouCore.h +typedefs: {} +enums: + SWHighlightCenterErrorCode: {} #since 16.0 + SWHighlightChangeEventTrigger: {} #since 16.0 + SWHighlightMembershipEventTrigger: {} #since 16.0 + SWHighlightPersistenceEventTrigger: {} #since 16.0 + SWAttributionViewDisplayContext: {} #since 16.0 + SWAttributionViewHorizontalAlignment: {} #since 16.0 + SWAttributionViewBackgroundStyle: {} #since 16.0 +classes: + SWAttributionView: {} #since 16.0 + SWCollaborationHighlight: {} #since 16.0 + SWCollaborationView: #since 16.0 + methods: + '-initWithItemProvider:': + name: init + SWHighlight: {} #since 16.0 + SWHighlightCenter: #since 16.0 + methods: + '-getHighlightForURL:completionHandler:': + name: getHighlight + '-collaborationHighlightForIdentifier:error:': + name: collaborationHighlight + '-getCollaborationHighlightForURL:completionHandler:': + name: getCollaborationHighlight + '-getSignedIdentityProofForCollaborationHighlight:usingData:completionHandler:': + name: getSignedIdentityProofForCollaborationHighlight + SWHighlightChangeEvent: #since 16.0 + methods: + '-initWithHighlight:trigger:': + name: init + SWHighlightMembershipEvent: #since 16.0 + methods: + '-initWithHighlight:trigger:': + name: init + SWHighlightMentionEvent: #since 16.0 + methods: + '-initWithHighlight:mentionedPersonCloudKitShareHandle:': + name: init + '-initWithHighlight:mentionedPersonIdentity:': + name: init + SWHighlightPersistenceEvent: #since 16.0 + methods: + '-initWithHighlight:trigger:': + name: init + SWRemoveParticipantAlertController: #since 16.0 + methods: + '+alertControllerWithParticipant:highlight:': + name: create + constructor: true + SWAction: {} #since 16.0 + SWCollaborationCoordinator: {} #since 16.0 + SWCollaborationMetadata: #since 16.0 + methods: + '-initWithLocalIdentifier:': + name: init + SWCollaborationOption: #since 16.0 + methods: + '-initWithTitle:identifier:': + name: init + '+optionWithTitle:identifier:': + exclude: true + SWCollaborationOptionsGroup: #since 16.0 + methods: + '-initWithIdentifier:options:': + name: init + '+optionsGroupWithIdentifier:options:': + exclude: true + SWCollaborationOptionsPickerGroup: {} #since 16.0 + SWCollaborationShareOptions: #since 16.0 + methods: + '-initWithOptionsGroups:summary:': + name: init + '-initWithOptionsGroups:': + name: init + '+shareOptionsWithOptionsGroups:summary:': + exclude: true + '+shareOptionsWithOptionsGroups:': + exclude: true + SWPerson: #since 16.0 + methods: + '-initWithHandle:identity:displayName:thumbnailImageData:': + name: init + SWPersonIdentity: #since 16.0 + methods: + '-initWithRootHash:': + name: init + SWPersonIdentityProof: {} #since 16.0 + SWSignedPersonIdentityProof: #since 16.0 + methods: + '-initWithPersonIdentityProof:signatureData:': + name: init + SWStartCollaborationAction: #since 16.0 + methods: + '-fulfillUsingURL:collaborationIdentifier:': + name: fulfillUsingURL + SWUpdateCollaborationParticipantsAction: {} #since 16.0 + +protocols: + SWCollaborationViewDelegate: {} #since 16.0 + SWHighlightCenterDelegate: {} + SWHighlightEvent: {} #since 16.0 + SWCollaborationActionHandler: #since 16.0 + methods: + '-collaborationCoordinator:handleStartCollaborationAction:': + name: handleStartCollaborationAction + '-collaborationCoordinator:handleUpdateCollaborationParticipantsAction:': + name: handleUpdateCollaborationParticipantsAction + +functions: + # Make sure we don't miss any functions if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Function__#{g[0]}' + +values: + SWCollaborationMetadataTypeIdentifier: + class: SWCollaborationMetadata + name: getTypeIdentifier + UTCollaborationOptionsTypeIdentifier: + class: SWCollaborationOptionsGroup + name: getTypeIdentifier + SharedWithYouCoreVersion(.*): + exclude: true + + # Make sure we don't miss any values if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Value__#{g[0]}' + +constants: + # Make sure we don't miss any constants if new ones are introduced in a later version + (.*): + class: Fixme! + name: 'Constant__#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAction.java new file mode 100644 index 000000000..d4e4f7dd4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAction.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWAction/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWActionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWAction.class); }/**/ + /**//**/ + /**/ + public SWAction() {} + protected SWAction(Handle h, long handle) { super(h, handle); } + protected SWAction(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public SWAction(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "uuid") + public native NSUUID getUuid(); + @Property(selector = "isComplete") + public native boolean isComplete(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "fulfill") + public native void fulfill(); + @Method(selector = "fail") + public native void fail(); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionView.java new file mode 100644 index 000000000..3b9497dc2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionView.java @@ -0,0 +1,107 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWAttributionView/**/ + extends /**/UIView/**/ + /**//**/ { + + /**/public static class SWAttributionViewPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWAttributionView.class); }/**/ + /**//**/ + /**/ + public SWAttributionView() {} + protected SWAttributionView(Handle h, long handle) { super(h, handle); } + protected SWAttributionView(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithFrame:") + public SWAttributionView(@ByVal CGRect frame) { super(frame); } + @Method(selector = "initWithCoder:") + public SWAttributionView(NSCoder coder) { super(coder); } + /**/ + /**/ + @Property(selector = "highlight") + public native SWHighlight getHighlight(); + @Property(selector = "setHighlight:") + public native void setHighlight(SWHighlight v); + @Property(selector = "displayContext") + public native SWAttributionViewDisplayContext getDisplayContext(); + @Property(selector = "setDisplayContext:") + public native void setDisplayContext(SWAttributionViewDisplayContext v); + @Property(selector = "horizontalAlignment") + public native SWAttributionViewHorizontalAlignment getHorizontalAlignment(); + @Property(selector = "setHorizontalAlignment:") + public native void setHorizontalAlignment(SWAttributionViewHorizontalAlignment v); + @Property(selector = "backgroundStyle") + public native SWAttributionViewBackgroundStyle getBackgroundStyle(); + @Property(selector = "setBackgroundStyle:") + public native void setBackgroundStyle(SWAttributionViewBackgroundStyle v); + @Property(selector = "preferredMaxLayoutWidth") + public native @MachineSizedFloat double getPreferredMaxLayoutWidth(); + @Property(selector = "setPreferredMaxLayoutWidth:") + public native void setPreferredMaxLayoutWidth(@MachineSizedFloat double v); + @Property(selector = "highlightMenu") + public native UIMenu getHighlightMenu(); + @Property(selector = "menuTitleForHideAction") + public native String getMenuTitleForHideAction(); + @Property(selector = "setMenuTitleForHideAction:") + public native void setMenuTitleForHideAction(String v); + @Property(selector = "supplementalMenu") + public native UIMenu getSupplementalMenu(); + @Property(selector = "setSupplementalMenu:") + public native void setSupplementalMenu(UIMenu v); + @WeaklyLinked + @Property(selector = "layerClass") + public static native Class getLayerClass(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 9.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute); + /** + * @since Available in iOS 10.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewBackgroundStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewBackgroundStyle.java new file mode 100644 index 000000000..39dea6281 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewBackgroundStyle.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWAttributionViewBackgroundStyle/**/ implements ValuedEnum { + /**/ + Default(0L), + Color(1L), + Material(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWAttributionViewBackgroundStyle/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWAttributionViewBackgroundStyle/**/ valueOf(long n) { + for (/**/SWAttributionViewBackgroundStyle/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWAttributionViewBackgroundStyle/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewDisplayContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewDisplayContext.java new file mode 100644 index 000000000..19aa3b7f1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewDisplayContext.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWAttributionViewDisplayContext/**/ implements ValuedEnum { + /**/ + Summary(0L), + Detail(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWAttributionViewDisplayContext/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWAttributionViewDisplayContext/**/ valueOf(long n) { + for (/**/SWAttributionViewDisplayContext/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWAttributionViewDisplayContext/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewHorizontalAlignment.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewHorizontalAlignment.java new file mode 100644 index 000000000..1c8e8389b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWAttributionViewHorizontalAlignment.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWAttributionViewHorizontalAlignment/**/ implements ValuedEnum { + /**/ + Default(0L), + Leading(1L), + Center(2L), + Trailing(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWAttributionViewHorizontalAlignment/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWAttributionViewHorizontalAlignment/**/ valueOf(long n) { + for (/**/SWAttributionViewHorizontalAlignment/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWAttributionViewHorizontalAlignment/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandler.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandler.java new file mode 100644 index 000000000..e6ba9d7ab --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandler.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/SWCollaborationActionHandler/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "collaborationCoordinator:handleStartCollaborationAction:") + void handleStartCollaborationAction(SWCollaborationCoordinator coordinator, SWStartCollaborationAction action); + @Method(selector = "collaborationCoordinator:handleUpdateCollaborationParticipantsAction:") + void handleUpdateCollaborationParticipantsAction(SWCollaborationCoordinator coordinator, SWUpdateCollaborationParticipantsAction action); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandlerAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandlerAdapter.java new file mode 100644 index 000000000..a89a4a919 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationActionHandlerAdapter.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/SWCollaborationActionHandlerAdapter/**/ + extends /**/NSObject/**/ + /**/implements SWCollaborationActionHandler/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("collaborationCoordinator:handleStartCollaborationAction:") + public void handleStartCollaborationAction(SWCollaborationCoordinator coordinator, SWStartCollaborationAction action) {} + @NotImplemented("collaborationCoordinator:handleUpdateCollaborationParticipantsAction:") + public void handleUpdateCollaborationParticipantsAction(SWCollaborationCoordinator coordinator, SWUpdateCollaborationParticipantsAction action) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationCoordinator.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationCoordinator.java new file mode 100644 index 000000000..3ef7acac9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationCoordinator.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationCoordinator/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class SWCollaborationCoordinatorPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationCoordinator.class); }/**/ + /**//**/ + /**/ + public SWCollaborationCoordinator() {} + protected SWCollaborationCoordinator(Handle h, long handle) { super(h, handle); } + protected SWCollaborationCoordinator(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "sharedCoordinator") + public static native SWCollaborationCoordinator getSharedCoordinator(); + @Property(selector = "actionHandler") + public native SWCollaborationActionHandler getActionHandler(); + @Property(selector = "setActionHandler:", strongRef = true) + public native void setActionHandler(SWCollaborationActionHandler v); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationHighlight.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationHighlight.java new file mode 100644 index 000000000..39590c399 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationHighlight.java @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationHighlight/**/ + extends /**/SWHighlight/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWCollaborationHighlightPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationHighlight.class); }/**/ + /**//**/ + /**/ + protected SWCollaborationHighlight() {} + protected SWCollaborationHighlight(Handle h, long handle) { super(h, handle); } + protected SWCollaborationHighlight(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "collaborationIdentifier") + public native String getCollaborationIdentifier(); + @Property(selector = "title") + public native String getTitle(); + @Property(selector = "creationDate") + public native NSDate getCreationDate(); + @Property(selector = "contentType") + public native UTType getContentType(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationMetadata.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationMetadata.java new file mode 100644 index 000000000..f1359f215 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationMetadata.java @@ -0,0 +1,122 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationMetadata/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding, NSItemProviderReading, NSItemProviderWriting/**/ { + + /**/public static class SWCollaborationMetadataPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationMetadata.class); }/**/ + /**//**/ + /**/ + protected SWCollaborationMetadata() {} + protected SWCollaborationMetadata(Handle h, long handle) { super(h, handle); } + protected SWCollaborationMetadata(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithLocalIdentifier:") + public SWCollaborationMetadata(String localIdentifier) { super((SkipInit) null); initObject(init(localIdentifier)); } + @Method(selector = "initWithCoder:") + public SWCollaborationMetadata(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "collaborationIdentifier") + public native String getCollaborationIdentifier(); + @Property(selector = "localIdentifier") + public native String getLocalIdentifier(); + @Property(selector = "title") + public native String getTitle(); + @Property(selector = "setTitle:") + public native void setTitle(String v); + @Property(selector = "defaultShareOptions") + public native SWCollaborationShareOptions getDefaultShareOptions(); + @Property(selector = "setDefaultShareOptions:") + public native void setDefaultShareOptions(SWCollaborationShareOptions v); + @Property(selector = "userSelectedShareOptions") + public native SWCollaborationShareOptions getUserSelectedShareOptions(); + @Property(selector = "setUserSelectedShareOptions:") + public native void setUserSelectedShareOptions(SWCollaborationShareOptions v); + @Property(selector = "initiatorHandle") + public native String getInitiatorHandle(); + @Property(selector = "setInitiatorHandle:") + public native void setInitiatorHandle(String v); + @Property(selector = "initiatorNameComponents") + public native NSPersonNameComponents getInitiatorNameComponents(); + @Property(selector = "setInitiatorNameComponents:") + public native void setInitiatorNameComponents(NSPersonNameComponents v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + @Property(selector = "readableTypeIdentifiersForItemProvider") + public static native NSArray getReadableTypeIdentifiersForItemProvider(); + @Property(selector = "writableTypeIdentifiersForItemProvider") + public static native NSArray getWritableTypeIdentifiersForItemProvider0(); + @Property(selector = "writableTypeIdentifiersForItemProvider") + public native NSArray getWritableTypeIdentifiersForItemProvider(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SWCollaborationMetadataTypeIdentifier", optional=true) + public static native String getTypeIdentifier(); + + @Method(selector = "initWithLocalIdentifier:") + protected native @Pointer long init(String localIdentifier); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + public static SWCollaborationMetadata createProviderDataObject(NSData data, String typeIdentifier) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + SWCollaborationMetadata result = createProviderDataObject(data, typeIdentifier, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + @Method(selector = "objectWithItemProviderData:typeIdentifier:error:") + private static native SWCollaborationMetadata createProviderDataObject(NSData data, String typeIdentifier, NSError.NSErrorPtr outError); + @Method(selector = "itemProviderVisibilityForRepresentationWithTypeIdentifier:") + public native NSItemProviderRepresentationVisibility getItemProviderVisibility(String typeIdentifier); + @Method(selector = "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:") + public native NSProgress loadData(String typeIdentifier, @Block VoidBlock2 completionHandler); + @Method(selector = "itemProviderVisibilityForRepresentationWithTypeIdentifier:") + public static native NSItemProviderRepresentationVisibility getItemProviderVisibility0(String typeIdentifier); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOption.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOption.java new file mode 100644 index 000000000..c62281125 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOption.java @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationOption/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWCollaborationOptionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationOption.class); }/**/ + /**//**/ + /**/ + protected SWCollaborationOption() {} + protected SWCollaborationOption(Handle h, long handle) { super(h, handle); } + protected SWCollaborationOption(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithTitle:identifier:") + public SWCollaborationOption(String title, String identifier) { super((SkipInit) null); initObject(init(title, identifier)); } + @Method(selector = "initWithCoder:") + public SWCollaborationOption(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "title") + public native String getTitle(); + @Property(selector = "setTitle:") + public native void setTitle(String v); + @Property(selector = "identifier") + public native String getIdentifier(); + @Property(selector = "subtitle") + public native String getSubtitle(); + @Property(selector = "setSubtitle:") + public native void setSubtitle(String v); + @Property(selector = "isSelected") + public native boolean isSelected(); + @Property(selector = "setSelected:") + public native void setSelected(boolean v); + @Property(selector = "requiredOptionsIdentifiers") + public native NSArray getRequiredOptionsIdentifiers(); + @Property(selector = "setRequiredOptionsIdentifiers:") + public native void setRequiredOptionsIdentifiers(NSArray v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithTitle:identifier:") + protected native @Pointer long init(String title, String identifier); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsGroup.java new file mode 100644 index 000000000..9edd80137 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsGroup.java @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationOptionsGroup/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWCollaborationOptionsGroupPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationOptionsGroup.class); }/**/ + /**//**/ + /**/ + protected SWCollaborationOptionsGroup() {} + protected SWCollaborationOptionsGroup(Handle h, long handle) { super(h, handle); } + protected SWCollaborationOptionsGroup(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithIdentifier:options:") + public SWCollaborationOptionsGroup(String identifier, NSArray options) { super((SkipInit) null); initObject(init(identifier, options)); } + @Method(selector = "initWithCoder:") + public SWCollaborationOptionsGroup(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "title") + public native String getTitle(); + @Property(selector = "setTitle:") + public native void setTitle(String v); + @Property(selector = "identifier") + public native String getIdentifier(); + @Property(selector = "footer") + public native String getFooter(); + @Property(selector = "setFooter:") + public native void setFooter(String v); + @Property(selector = "options") + public native NSArray getOptions(); + @Property(selector = "setOptions:") + public native void setOptions(NSArray v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="UTCollaborationOptionsTypeIdentifier", optional=true) + public static native String getTypeIdentifier(); + + @Method(selector = "initWithIdentifier:options:") + protected native @Pointer long init(String identifier, NSArray options); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsPickerGroup.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsPickerGroup.java new file mode 100644 index 000000000..5710471f2 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationOptionsPickerGroup.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationOptionsPickerGroup/**/ + extends /**/SWCollaborationOptionsGroup/**/ + /**//**/ { + + /**/public static class SWCollaborationOptionsPickerGroupPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationOptionsPickerGroup.class); }/**/ + /**//**/ + /**/ + protected SWCollaborationOptionsPickerGroup() {} + protected SWCollaborationOptionsPickerGroup(Handle h, long handle) { super(h, handle); } + protected SWCollaborationOptionsPickerGroup(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithIdentifier:options:") + public SWCollaborationOptionsPickerGroup(String identifier, NSArray options) { super(identifier, options); } + /**/ + /**/ + @Property(selector = "selectedOptionIdentifier") + public native String getSelectedOptionIdentifier(); + @Property(selector = "setSelectedOptionIdentifier:") + public native void setSelectedOptionIdentifier(String v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationShareOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationShareOptions.java new file mode 100644 index 000000000..71138eac9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationShareOptions.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationShareOptions/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWCollaborationShareOptionsPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationShareOptions.class); }/**/ + /**//**/ + /**/ + protected SWCollaborationShareOptions() {} + protected SWCollaborationShareOptions(Handle h, long handle) { super(h, handle); } + protected SWCollaborationShareOptions(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithOptionsGroups:summary:") + public SWCollaborationShareOptions(NSArray optionsGroups, String summary) { super((SkipInit) null); initObject(init(optionsGroups, summary)); } + @Method(selector = "initWithOptionsGroups:") + public SWCollaborationShareOptions(NSArray optionsGroups) { super((SkipInit) null); initObject(init(optionsGroups)); } + @Method(selector = "initWithCoder:") + public SWCollaborationShareOptions(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "optionsGroups") + public native NSArray getOptionsGroups(); + @Property(selector = "setOptionsGroups:") + public native void setOptionsGroups(NSArray v); + @Property(selector = "summary") + public native String getSummary(); + @Property(selector = "setSummary:") + public native void setSummary(String v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithOptionsGroups:summary:") + protected native @Pointer long init(NSArray optionsGroups, String summary); + @Method(selector = "initWithOptionsGroups:") + protected native @Pointer long init(NSArray optionsGroups); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationView.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationView.java new file mode 100644 index 000000000..c3f5fc50e --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationView.java @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWCollaborationView/**/ + extends /**/UIView/**/ + /**//**/ { + + /**/public static class SWCollaborationViewPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWCollaborationView.class); }/**/ + /**//**/ + /**/ + public SWCollaborationView() {} + protected SWCollaborationView(Handle h, long handle) { super(h, handle); } + protected SWCollaborationView(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithItemProvider:") + public SWCollaborationView(NSItemProvider itemProvider) { super((SkipInit) null); initObject(init(itemProvider)); } + @Method(selector = "initWithFrame:") + public SWCollaborationView(@ByVal CGRect frame) { super(frame); } + @Method(selector = "initWithCoder:") + public SWCollaborationView(NSCoder coder) { super(coder); } + /**/ + /**/ + @Property(selector = "cloudSharingDelegate") + public native UICloudSharingControllerDelegate getCloudSharingDelegate(); + @Property(selector = "setCloudSharingDelegate:", strongRef = true) + public native void setCloudSharingDelegate(UICloudSharingControllerDelegate v); + @Property(selector = "activeParticipantCount") + public native @MachineSizedUInt long getActiveParticipantCount(); + @Property(selector = "setActiveParticipantCount:") + public native void setActiveParticipantCount(@MachineSizedUInt long v); + @Property(selector = "delegate") + public native SWCollaborationViewDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(SWCollaborationViewDelegate v); + @Property(selector = "headerTitle") + public native String getHeaderTitle(); + @Property(selector = "setHeaderTitle:") + public native void setHeaderTitle(String v); + @Property(selector = "headerSubtitle") + public native String getHeaderSubtitle(); + @Property(selector = "setHeaderSubtitle:") + public native void setHeaderSubtitle(String v); + @Property(selector = "headerImage") + public native UIImage getHeaderImage(); + @Property(selector = "setHeaderImage:") + public native void setHeaderImage(UIImage v); + @Property(selector = "cloudSharingControllerDelegate") + public native UICloudSharingControllerDelegate getCloudSharingControllerDelegate(); + @Property(selector = "setCloudSharingControllerDelegate:", strongRef = true) + public native void setCloudSharingControllerDelegate(UICloudSharingControllerDelegate v); + @Property(selector = "manageButtonTitle") + public native String getManageButtonTitle(); + @Property(selector = "setManageButtonTitle:") + public native void setManageButtonTitle(String v); + @WeaklyLinked + @Property(selector = "layerClass") + public static native Class getLayerClass(); + /**/ + /**//**/ + /**/ + @Method(selector = "setContentView:") + public native void setContentView(UIView detailViewListContentView); + @Method(selector = "initWithItemProvider:") + protected native @Pointer long init(NSItemProvider itemProvider); + @Method(selector = "dismissPopover:") + public native void dismissPopover(@Block Runnable completion); + @Method(selector = "setShowManageButton:") + public native void setShowManageButton(boolean showManageButton); + /** + * @since Available in iOS 9.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute); + /** + * @since Available in iOS 10.0 and later. + */ + @Method(selector = "userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:") + public static native UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegate.java new file mode 100644 index 000000000..effe827ec --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegate.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/SWCollaborationViewDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "collaborationViewShouldPresentPopover:") + boolean collaborationViewShouldPresentPopover(SWCollaborationView collaborationView); + @Method(selector = "collaborationViewWillPresentPopover:") + void collaborationViewWillPresentPopover(SWCollaborationView collaborationView); + @Method(selector = "collaborationViewDidDismissPopover:") + void collaborationViewDidDismissPopover(SWCollaborationView collaborationView); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegateAdapter.java new file mode 100644 index 000000000..57f0e53c4 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWCollaborationViewDelegateAdapter.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/SWCollaborationViewDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements SWCollaborationViewDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("collaborationViewShouldPresentPopover:") + public boolean collaborationViewShouldPresentPopover(SWCollaborationView collaborationView) { return false; } + @NotImplemented("collaborationViewWillPresentPopover:") + public void collaborationViewWillPresentPopover(SWCollaborationView collaborationView) {} + @NotImplemented("collaborationViewDidDismissPopover:") + public void collaborationViewDidDismissPopover(SWCollaborationView collaborationView) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlight.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlight.java new file mode 100644 index 000000000..8371c7397 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlight.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWHighlight/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWHighlightPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWHighlight.class); }/**/ + /**//**/ + /**/ + protected SWHighlight() {} + protected SWHighlight(Handle h, long handle) { super(h, handle); } + protected SWHighlight(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public SWHighlight(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "identifier") + public native T0 getIdentifier(); + @Property(selector = "URL") + public native NSURL getURL(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenter.java new file mode 100644 index 000000000..ea0537f06 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenter.java @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWHighlightCenter/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class SWHighlightCenterPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWHighlightCenter.class); }/**/ + /**//**/ + /**/ + public SWHighlightCenter() {} + protected SWHighlightCenter(Handle h, long handle) { super(h, handle); } + protected SWHighlightCenter(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "delegate") + public native SWHighlightCenterDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(SWHighlightCenterDelegate v); + @Property(selector = "highlights") + public native NSArray getHighlights(); + @Property(selector = "highlightCollectionTitle") + public static native String getHighlightCollectionTitle(); + @Property(selector = "isSystemCollaborationSupportAvailable") + public static native boolean isSystemCollaborationSupportAvailable(); + /**/ + /**//**/ + /**/ + @Method(selector = "getHighlightForURL:completionHandler:") + public native void getHighlight(NSURL URL, @Block VoidBlock2 completionHandler); + @Method(selector = "collaborationHighlightForIdentifier:error:") + public native SWCollaborationHighlight collaborationHighlight(String collaborationIdentifier, NSError.NSErrorPtr error); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "getCollaborationHighlightForURL:completionHandler:") + public native void getCollaborationHighlight(NSURL URL, @Block VoidBlock2 completionHandler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "postNoticeForHighlightEvent:") + public native void postNoticeForHighlightEvent(SWHighlightEvent event); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "getSignedIdentityProofForCollaborationHighlight:usingData:completionHandler:") + public native void getSignedIdentityProofForCollaborationHighlight(SWCollaborationHighlight collaborationHighlight, NSData data, @Block VoidBlock2 completionHandler); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegate.java new file mode 100644 index 000000000..d9923227b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegate.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/SWHighlightCenterDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "highlightCenterHighlightsDidChange:") + void highlightCenterHighlightsDidChange(SWHighlightCenter highlightCenter); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegateAdapter.java new file mode 100644 index 000000000..6adec48a7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterDelegateAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/SWHighlightCenterDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements SWHighlightCenterDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("highlightCenterHighlightsDidChange:") + public void highlightCenterHighlightsDidChange(SWHighlightCenter highlightCenter) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterErrorCode.java new file mode 100644 index 000000000..7ebbedef6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightCenterErrorCode.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWHighlightCenterErrorCode/**/ implements ValuedEnum { + /**/ + NoError(0L), + InternalError(1L), + InvalidURL(2L), + AccessDenied(3L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWHighlightCenterErrorCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWHighlightCenterErrorCode/**/ valueOf(long n) { + for (/**/SWHighlightCenterErrorCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWHighlightCenterErrorCode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEvent.java new file mode 100644 index 000000000..4e0f2db44 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWHighlightChangeEvent/**/ + extends /**/NSObject/**/ + /**/implements SWHighlightEvent/**/ { + + /**/public static class SWHighlightChangeEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWHighlightChangeEvent.class); }/**/ + /**//**/ + /**/ + protected SWHighlightChangeEvent() {} + protected SWHighlightChangeEvent(Handle h, long handle) { super(h, handle); } + protected SWHighlightChangeEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithHighlight:trigger:") + public SWHighlightChangeEvent(SWHighlight highlight, SWHighlightChangeEventTrigger trigger) { super((SkipInit) null); initObject(init(highlight, trigger)); } + @Method(selector = "initWithCoder:") + public SWHighlightChangeEvent(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "changeEventTrigger") + public native SWHighlightChangeEventTrigger getChangeEventTrigger(); + @Property(selector = "highlightURL") + public native NSURL getHighlightURL(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithHighlight:trigger:") + protected native @Pointer long init(SWHighlight highlight, SWHighlightChangeEventTrigger trigger); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEventTrigger.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEventTrigger.java new file mode 100644 index 000000000..8f9ac23a1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightChangeEventTrigger.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWHighlightChangeEventTrigger/**/ implements ValuedEnum { + /**/ + Edit(1L), + Comment(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWHighlightChangeEventTrigger/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWHighlightChangeEventTrigger/**/ valueOf(long n) { + for (/**/SWHighlightChangeEventTrigger/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWHighlightChangeEventTrigger/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEvent.java new file mode 100644 index 000000000..12651f5dd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEvent.java @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/SWHighlightEvent/**/ + /**/extends NSObjectProtocol, NSSecureCoding/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + @Property(selector = "highlightURL") + NSURL getHighlightURL(); + /**/ + /**/ + + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEventAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEventAdapter.java new file mode 100644 index 000000000..78501e136 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightEventAdapter.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/SWHighlightEventAdapter/**/ + extends /**/NSCodingAdapter/**/ + /**/implements SWHighlightEvent/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + @NotImplemented("highlightURL") + public NSURL getHighlightURL() { return null; } + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEvent.java new file mode 100644 index 000000000..343fd3d1a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWHighlightMembershipEvent/**/ + extends /**/NSObject/**/ + /**/implements SWHighlightEvent/**/ { + + /**/public static class SWHighlightMembershipEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWHighlightMembershipEvent.class); }/**/ + /**//**/ + /**/ + protected SWHighlightMembershipEvent() {} + protected SWHighlightMembershipEvent(Handle h, long handle) { super(h, handle); } + protected SWHighlightMembershipEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithHighlight:trigger:") + public SWHighlightMembershipEvent(SWHighlight highlight, SWHighlightMembershipEventTrigger trigger) { super((SkipInit) null); initObject(init(highlight, trigger)); } + @Method(selector = "initWithCoder:") + public SWHighlightMembershipEvent(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "membershipEventTrigger") + public native SWHighlightMembershipEventTrigger getMembershipEventTrigger(); + @Property(selector = "highlightURL") + public native NSURL getHighlightURL(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithHighlight:trigger:") + protected native @Pointer long init(SWHighlight highlight, SWHighlightMembershipEventTrigger trigger); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEventTrigger.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEventTrigger.java new file mode 100644 index 000000000..5ae47fd64 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMembershipEventTrigger.java @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWHighlightMembershipEventTrigger/**/ implements ValuedEnum { + /**/ + AddedCollaborator(1L), + RemovedCollaborator(2L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWHighlightMembershipEventTrigger/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWHighlightMembershipEventTrigger/**/ valueOf(long n) { + for (/**/SWHighlightMembershipEventTrigger/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWHighlightMembershipEventTrigger/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMentionEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMentionEvent.java new file mode 100644 index 000000000..2e5fefa8d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightMentionEvent.java @@ -0,0 +1,80 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWHighlightMentionEvent/**/ + extends /**/NSObject/**/ + /**/implements SWHighlightEvent/**/ { + + /**/public static class SWHighlightMentionEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWHighlightMentionEvent.class); }/**/ + /**//**/ + /**/ + protected SWHighlightMentionEvent() {} + protected SWHighlightMentionEvent(Handle h, long handle) { super(h, handle); } + protected SWHighlightMentionEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithHighlight:mentionedPersonCloudKitShareHandle:") + public SWHighlightMentionEvent(SWHighlight highlight, String handle) { super((SkipInit) null); initObject(init(highlight, handle)); } + @Method(selector = "initWithHighlight:mentionedPersonIdentity:") + public SWHighlightMentionEvent(SWHighlight highlight, SWPersonIdentity identity) { super((SkipInit) null); initObject(init(highlight, identity)); } + @Method(selector = "initWithCoder:") + public SWHighlightMentionEvent(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "mentionedPersonHandle") + public native String getMentionedPersonHandle(); + @Property(selector = "highlightURL") + public native NSURL getHighlightURL(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithHighlight:mentionedPersonCloudKitShareHandle:") + protected native @Pointer long init(SWHighlight highlight, String handle); + @Method(selector = "initWithHighlight:mentionedPersonIdentity:") + protected native @Pointer long init(SWHighlight highlight, SWPersonIdentity identity); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEvent.java new file mode 100644 index 000000000..c98eb375d --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEvent.java @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWHighlightPersistenceEvent/**/ + extends /**/NSObject/**/ + /**/implements SWHighlightEvent/**/ { + + /**/public static class SWHighlightPersistenceEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWHighlightPersistenceEvent.class); }/**/ + /**//**/ + /**/ + protected SWHighlightPersistenceEvent() {} + protected SWHighlightPersistenceEvent(Handle h, long handle) { super(h, handle); } + protected SWHighlightPersistenceEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithHighlight:trigger:") + public SWHighlightPersistenceEvent(SWHighlight highlight, SWHighlightPersistenceEventTrigger trigger) { super((SkipInit) null); initObject(init(highlight, trigger)); } + @Method(selector = "initWithCoder:") + public SWHighlightPersistenceEvent(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "persistenceEventTrigger") + public native SWHighlightPersistenceEventTrigger getPersistenceEventTrigger(); + @Property(selector = "highlightURL") + public native NSURL getHighlightURL(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithHighlight:trigger:") + protected native @Pointer long init(SWHighlight highlight, SWHighlightPersistenceEventTrigger trigger); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEventTrigger.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEventTrigger.java new file mode 100644 index 000000000..ae24a91df --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWHighlightPersistenceEventTrigger.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/SWHighlightPersistenceEventTrigger/**/ implements ValuedEnum { + /**/ + Created(1L), + Deleted(2L), + Renamed(3L), + Moved(4L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/SWHighlightPersistenceEventTrigger/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/SWHighlightPersistenceEventTrigger/**/ valueOf(long n) { + for (/**/SWHighlightPersistenceEventTrigger/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/SWHighlightPersistenceEventTrigger/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPerson.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPerson.java new file mode 100644 index 000000000..5afbfacd3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPerson.java @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWPerson/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWPersonPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWPerson.class); }/**/ + /**//**/ + /**/ + protected SWPerson() {} + protected SWPerson(Handle h, long handle) { super(h, handle); } + protected SWPerson(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithHandle:identity:displayName:thumbnailImageData:") + public SWPerson(String handle, SWPersonIdentity identity, String displayName, NSData thumbnailImageData) { super((SkipInit) null); initObject(init(handle, identity, displayName, thumbnailImageData)); } + @Method(selector = "initWithCoder:") + public SWPerson(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithHandle:identity:displayName:thumbnailImageData:") + protected native @Pointer long init(String handle, SWPersonIdentity identity, String displayName, NSData thumbnailImageData); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentity.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentity.java new file mode 100644 index 000000000..7eedf5486 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentity.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWPersonIdentity/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWPersonIdentityPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWPersonIdentity.class); }/**/ + /**//**/ + /**/ + protected SWPersonIdentity() {} + protected SWPersonIdentity(Handle h, long handle) { super(h, handle); } + protected SWPersonIdentity(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithRootHash:") + public SWPersonIdentity(NSData rootHash) { super((SkipInit) null); initObject(init(rootHash)); } + @Method(selector = "initWithCoder:") + public SWPersonIdentity(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "rootHash") + public native NSData getRootHash(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithRootHash:") + protected native @Pointer long init(NSData rootHash); + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentityProof.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentityProof.java new file mode 100644 index 000000000..c52881205 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWPersonIdentityProof.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWPersonIdentityProof/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWPersonIdentityProofPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWPersonIdentityProof.class); }/**/ + /**//**/ + /**/ + protected SWPersonIdentityProof() {} + protected SWPersonIdentityProof(Handle h, long handle) { super(h, handle); } + protected SWPersonIdentityProof(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public SWPersonIdentityProof(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "inclusionHashes") + public native NSArray getInclusionHashes(); + @Property(selector = "publicKey") + public native NSData getPublicKey(); + @Property(selector = "publicKeyIndex") + public native @MachineSizedUInt long getPublicKeyIndex(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "encodeWithCoder:") + public native void encode(NSCoder coder); + @Method(selector = "initWithCoder:") + protected native @Pointer long init(NSCoder coder); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWRemoveParticipantAlertController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWRemoveParticipantAlertController.java new file mode 100644 index 000000000..a09da7706 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWRemoveParticipantAlertController.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWRemoveParticipantAlertController/**/ + extends /**/UIViewController/**/ + /**//**/ { + + /**/public static class SWRemoveParticipantAlertControllerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWRemoveParticipantAlertController.class); }/**/ + /**//**/ + /**/ + protected SWRemoveParticipantAlertController() {} + protected SWRemoveParticipantAlertController(Handle h, long handle) { super(h, handle); } + protected SWRemoveParticipantAlertController(SkipInit skipInit) { super(skipInit); } + public SWRemoveParticipantAlertController(SWPerson participant, SWCollaborationHighlight highlight) { super((Handle) null, create(participant, highlight)); retain(getHandle()); } + @Method(selector = "initWithNibName:bundle:") + public SWRemoveParticipantAlertController(String nibNameOrNil, NSBundle nibBundleOrNil) { super(nibNameOrNil, nibBundleOrNil); } + @Method(selector = "initWithCoder:") + public SWRemoveParticipantAlertController(NSCoder coder) { super(coder); } + /**/ + /**/ + + /**/ + /**//**/ + /**/ + @Method(selector = "alertControllerWithParticipant:highlight:") + protected static native @Pointer long create(SWPerson participant, SWCollaborationHighlight highlight); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWSignedPersonIdentityProof.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWSignedPersonIdentityProof.java new file mode 100644 index 000000000..972d490cc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWSignedPersonIdentityProof.java @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWSignedPersonIdentityProof/**/ + extends /**/SWPersonIdentityProof/**/ + /**//**/ { + + /**/public static class SWSignedPersonIdentityProofPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWSignedPersonIdentityProof.class); }/**/ + /**//**/ + /**/ + protected SWSignedPersonIdentityProof() {} + protected SWSignedPersonIdentityProof(Handle h, long handle) { super(h, handle); } + protected SWSignedPersonIdentityProof(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithPersonIdentityProof:signatureData:") + public SWSignedPersonIdentityProof(SWPersonIdentityProof personIdentityProof, NSData data) { super((SkipInit) null); initObject(init(personIdentityProof, data)); } + /**/ + /**/ + @Property(selector = "signatureData") + public native NSData getSignatureData(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithPersonIdentityProof:signatureData:") + protected native @Pointer long init(SWPersonIdentityProof personIdentityProof, NSData data); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWStartCollaborationAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWStartCollaborationAction.java new file mode 100644 index 000000000..1a7f1ccba --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWStartCollaborationAction.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWStartCollaborationAction/**/ + extends /**/SWAction/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWStartCollaborationActionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWStartCollaborationAction.class); }/**/ + /**//**/ + /**/ + protected SWStartCollaborationAction() {} + protected SWStartCollaborationAction(Handle h, long handle) { super(h, handle); } + protected SWStartCollaborationAction(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "collaborationMetadata") + public native SWCollaborationMetadata getCollaborationMetadata(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "fulfillUsingURL:collaborationIdentifier:") + public native void fulfillUsingURL(NSURL url, String collaborationIdentifier); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWUpdateCollaborationParticipantsAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWUpdateCollaborationParticipantsAction.java new file mode 100644 index 000000000..2f1f7b495 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sharedwithyou/SWUpdateCollaborationParticipantsAction.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.sharedwithyou; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uikit.*; +import org.robovm.apple.coregraphics.*; +import org.robovm.apple.uniformtypeid.*; +import org.robovm.apple.coreanimation.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.0 and later. + */ +/**/ +/**/@Library("SharedWithYou") @NativeClass/**/ +/**/public/**/ class /**/SWUpdateCollaborationParticipantsAction/**/ + extends /**/SWAction/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SWUpdateCollaborationParticipantsActionPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SWUpdateCollaborationParticipantsAction.class); }/**/ + /**//**/ + /**/ + protected SWUpdateCollaborationParticipantsAction() {} + protected SWUpdateCollaborationParticipantsAction(Handle h, long handle) { super(h, handle); } + protected SWUpdateCollaborationParticipantsAction(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "collaborationMetadata") + public native SWCollaborationMetadata getCollaborationMetadata(); + @Property(selector = "addedIdentities") + public native NSArray getAddedIdentities(); + @Property(selector = "removedIdentities") + public native NSArray getRemovedIdentities(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + + /**/ +} From 205b7efc46d574c389765b868c1d6da95482a1c3 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Sun, 25 Sep 2022 17:41:18 +0300 Subject: [PATCH 73/73] * ios16 bindings: picked MacCatalyst apis --- .../src/main/bro-gen/corespotlight.yaml | 2 +- .../robovm/apple/arkit/ARSCNFaceGeometry.java | 2 + .../apple/arkit/ARSCNPlaneGeometry.java | 2 + .../avfoundation/AVAudioPlayerDelegate.java | 23 ++++++- .../AVAudioPlayerDelegateAdapter.java | 2 + .../avfoundation/AVCapturePhotoOutput.java | 2 + .../avfoundation/AVCapturePhotoSettings.java | 4 ++ .../apple/corelocation/CLLocationManager.java | 2 + .../corespotlight/CSSearchQueryContext.java | 4 ++ .../CSSearchQuerySourceOptions.java | 63 +++++++++++++++++++ .../robovm/apple/coretext/CTFontOptions.java | 1 + 11 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuerySourceOptions.java diff --git a/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml b/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml index 0791b5324..14788d268 100755 --- a/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml @@ -14,7 +14,7 @@ enums: CSIndexErrorCode: { nserror: true} #since 9.0 CSSearchQueryErrorCode: { nserror: true } #since 10.0 CSSuggestionKind: {} - + CSSearchQuerySourceOptions: {} classes: CSCustomAttributeKey: #since 9.0 methods: diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java index 3d13f4c45..fb7b50114 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNFaceGeometry.java @@ -74,6 +74,8 @@ protected ARSCNFaceGeometry() {} protected static native @Pointer long create(MTLDevice device); @Method(selector = "faceGeometryWithDevice:fillMesh:") protected static native @Pointer long create(MTLDevice device, boolean fillMesh); + @Method(selector = "geometry") + public static native ARSCNFaceGeometry createGeometry(); @Method(selector = "geometryWithSources:elements:") public static native ARSCNFaceGeometry createGeometry(NSArray sources, NSArray elements); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java index 83c9daa0c..5b040231c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/arkit/ARSCNPlaneGeometry.java @@ -71,6 +71,8 @@ public ARSCNPlaneGeometry() {} public native void updateFromPlaneGeometry(ARPlaneGeometry planeGeometry); @Method(selector = "planeGeometryWithDevice:") protected static native @Pointer long create(MTLDevice device); + @Method(selector = "geometry") + public static native ARSCNPlaneGeometry createGeometry(); @Method(selector = "geometryWithSources:elements:") public static native ARSCNPlaneGeometry createGeometry(NSArray sources, NSArray elements); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java index 6e6691e15..5e7875956 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegate.java @@ -54,8 +54,27 @@ /**/ /**/ /**//**/ - /**//**/ - /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "audioPlayerDidFinishPlaying:successfully:") + void didFinishPlaying(AVAudioPlayer player, boolean flag); + @Method(selector = "audioPlayerDecodeErrorDidOccur:error:") + void decodeErrorDidOccur(AVAudioPlayer player, NSError error); + /** + * @deprecated Deprecated in iOS 8.0. + */ + @Deprecated + @Method(selector = "audioPlayerBeginInterruption:") + void beginInterruption(AVAudioPlayer player); + /** + * @deprecated Deprecated in iOS 8.0. + */ + @Deprecated + @Method(selector = "audioPlayerEndInterruption:withOptions:") + void endInterruption(AVAudioPlayer player, @MachineSizedUInt long flags); + /**/ /**/ /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegateAdapter.java index a71e3f438..0df594789 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVAudioPlayerDelegateAdapter.java @@ -38,6 +38,8 @@ import org.robovm.apple.corevideo.*; import org.robovm.apple.mediatoolbox.*; import org.robovm.apple.audiotoolbox.*; +import org.robovm.apple.coremidi.*; +import org.robovm.apple.uikit.*; /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java index c8c10efc0..2b126affe 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoOutput.java @@ -171,6 +171,8 @@ */ @Property(selector = "isCameraCalibrationDataDeliverySupported") public native boolean isCameraCalibrationDataDeliverySupported(); + @Property(selector = "supportedFlashModes") + public native NSArray getSupportedFlashModes(); /** * @since Available in iOS 12.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java index 634ae940b..a0c45c079 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/avfoundation/AVCapturePhotoSettings.java @@ -85,6 +85,10 @@ public AVCapturePhotoSettings() {} */ @Property(selector = "rawFileType") public native String getRawFileType(); + @Property(selector = "flashMode") + public native AVCaptureFlashMode getFlashMode(); + @Property(selector = "setFlashMode:") + public native void setFlashMode(AVCaptureFlashMode v); /** * @since Available in iOS 12.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java index a396e9bc7..251c84d43 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLLocationManager.java @@ -156,6 +156,8 @@ public CLLocationManager() {} */ @Method(selector = "requestTemporaryFullAccuracyAuthorizationWithPurposeKey:") public native void requestTemporaryFullAccuracyAuthorization(String purposeKey); + @Method(selector = "startUpdatingLocation") + public native void startUpdatingLocation(); @Method(selector = "stopUpdatingLocation") public native void stopUpdatingLocation(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java index 08b783e47..2a5f64586 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQueryContext.java @@ -64,6 +64,10 @@ public CSSearchQueryContext() {} public native String getKeyboardLanguage(); @Property(selector = "setKeyboardLanguage:") public native void setKeyboardLanguage(String v); + @Property(selector = "sourceOptions") + public native CSSearchQuerySourceOptions getSourceOptions(); + @Property(selector = "setSourceOptions:") + public native void setSourceOptions(CSSearchQuerySourceOptions v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuerySourceOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuerySourceOptions.java new file mode 100644 index 000000000..8d5fc9465 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corespotlight/CSSearchQuerySourceOptions.java @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.corespotlight; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.uniformtypeid.*; +/**/ + +/**/ + +/**/ +/**/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/**/ +public final class /**/CSSearchQuerySourceOptions/**/ extends Bits*/CSSearchQuerySourceOptions/**/> { + /**/ + public static final CSSearchQuerySourceOptions None = new CSSearchQuerySourceOptions(0L); + public static final CSSearchQuerySourceOptions Default = new CSSearchQuerySourceOptions(0L); + public static final CSSearchQuerySourceOptions AllowMail = new CSSearchQuerySourceOptions(1L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private static final /**/CSSearchQuerySourceOptions/**/[] values = _values(/**/CSSearchQuerySourceOptions/**/.class); + + public /**/CSSearchQuerySourceOptions/**/(long value) { super(value); } + private /**/CSSearchQuerySourceOptions/**/(long value, long mask) { super(value, mask); } + protected /**/CSSearchQuerySourceOptions/**/ wrap(long value, long mask) { + return new /**/CSSearchQuerySourceOptions/**/(value, mask); + } + protected /**/CSSearchQuerySourceOptions/**/[] _values() { + return values; + } + public static /**/CSSearchQuerySourceOptions/**/[] values() { + return values.clone(); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coretext/CTFontOptions.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coretext/CTFontOptions.java index 7f0b24120..f86636288 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coretext/CTFontOptions.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coretext/CTFontOptions.java @@ -43,6 +43,7 @@ public final class /**/CTFontOptions/**/ extends Bits*/CTF public static final CTFontOptions None = new CTFontOptions(0L); public static final CTFontOptions Default = new CTFontOptions(0L); public static final CTFontOptions PreventAutoActivation = new CTFontOptions(1L); + public static final CTFontOptions PreventAutoDownload = new CTFontOptions(2L); public static final CTFontOptions PreferSystemFont = new CTFontOptions(4L); /**/