From 1e0e7c1d704ee6a8be584c7e2d2f2310d4fd6310 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Mon, 13 Feb 2023 19:43:13 +0200 Subject: [PATCH 1/2] * iOS 16.2: AuthenticationServices -- missing types added --- .../src/main/bro-gen/authservices.yaml | 64 ++++++- .../ASAuthorizationAppleIDProvider.java | 11 ++ .../ASAuthorizationOpenIDOperation.java | 156 ++++++++++++++++++ .../ASAuthorizationOpenIDRequest.java | 4 +- ...rmPublicKeyCredentialAssertionRequest.java | 4 +- ...ublicKeyCredentialRegistrationRequest.java | 8 +- ...izationProviderAuthorizationOperation.java | 138 ++++++++++++++++ ...ProviderExtensionAuthorizationRequest.java | 2 +- ...onPublicKeyCredentialAssertionRequest.java | 4 +- ...ionPublicKeyCredentialAttestationKind.java | 156 ++++++++++++++++++ ...ublicKeyCredentialRegistrationRequest.java | 8 +- ...yCredentialRegistrationRequestAdapter.java | 8 +- ...licKeyCredentialResidentKeyPreference.java | 147 +++++++++++++++++ ...yCredentialUserVerificationPreference.java | 147 +++++++++++++++++ .../authservices/ASAuthorizationScope.java | 138 ++++++++++++++++ ...eyPublicKeyCredentialAssertionRequest.java | 4 +- ...ublicKeyCredentialDescriptorTransport.java | 153 +++++++++++++++++ ...ublicKeyCredentialRegistrationRequest.java | 12 +- .../authservices/ASExtensionErrorCode.java | 43 ++++- .../ASWebAuthenticationSessionErrorCode.java | 38 ++++- 20 files changed, 1200 insertions(+), 45 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDOperation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderAuthorizationOperation.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAttestationKind.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialResidentKeyPreference.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialUserVerificationPreference.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationScope.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport.java diff --git a/compiler/cocoatouch/src/main/bro-gen/authservices.yaml b/compiler/cocoatouch/src/main/bro-gen/authservices.yaml index dd9b3d7f3..49cac4c25 100755 --- a/compiler/cocoatouch/src/main/bro-gen/authservices.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/authservices.yaml @@ -9,16 +9,51 @@ typedefs: {} enums: ASCredentialIdentityStoreErrorCode: {nserror: true} #since 12.0 - ASExtensionErrorCode: {} #since 12.0 + ASExtensionErrorCode: {nserror: true} #since 12.0 ASCredentialServiceIdentifierType: {} #since 12.0 - ASWebAuthenticationSessionErrorCode: {} #since 12.0 + ASWebAuthenticationSessionErrorCode: {nserror: true} #since 12.0 ASUserDetectionStatus: {} ASAuthorizationAppleIDProviderCredentialState: {prefix: ASAuthorizationAppleIDProviderCredential} #since 13.0 ASAuthorizationError: {nserror: true} #since 13.0 ASAuthorizationAppleIDButtonType: {} #since 13.0 ASAuthorizationAppleIDButtonStyle: {} #since 13.0 ASAuthorizationControllerRequestOptions: {prefix: ASAuthorizationControllerRequestOption} #since 16.0 - +typed_enums: + ASAuthorizationOpenIDOperation: + enum: ASAuthorizationOpenIDOperation + type: NSString + ASAuthorizationOperation(.*): + name: "#{g[0]}" + ASAuthorizationScope: + enum: ASAuthorizationScope + type: NSString + ASAuthorizationScope(.*): + name: "#{g[0]}" + ASAuthorizationPublicKeyCredentialUserVerificationPreference: + enum: ASAuthorizationPublicKeyCredentialUserVerificationPreference + type: NSString + ASAuthorizationPublicKeyCredentialUserVerificationPreference(.*): + name: "#{g[0]}" + ASAuthorizationProviderAuthorizationOperation: + enum: ASAuthorizationProviderAuthorizationOperation + type: NSString + ASAuthorizationProviderAuthorizationOperation(.*): + name: "#{g[0]}" + ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport: + enum: ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport + type: NSString + ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport(.*): + name: "#{g[0]}" + ASAuthorizationPublicKeyCredentialAttestationKind: + enum: ASAuthorizationPublicKeyCredentialAttestationKind + type: NSString + ASAuthorizationPublicKeyCredentialAttestationKind(.*): + name: "#{g[0]}" + ASAuthorizationPublicKeyCredentialResidentKeyPreference: + enum: ASAuthorizationPublicKeyCredentialResidentKeyPreference + type: NSString + ASAuthorizationPublicKeyCredentialResidentKeyPreference(.*): + name: "#{g[0]}" classes: ASCredentialIdentityStore: #since 12.0 methods: @@ -212,8 +247,12 @@ protocols: ASAuthorizationPublicKeyCredentialRegistrationRequest: {} #since 15.0 ASPublicKeyCredential: {} #since 15.0 functions: + ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports: + class: ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport + name: getAllSupportedPublicKeyCredentialDescriptorTransports + # Make sure we don't miss any functions if new ones are introduced in a later version - (k?ASC.*): + (k?AS.*): class: !!!AuthServicesFixMe name: 'Function__#{g[0]}' @@ -224,9 +263,22 @@ values: ASAuthorizationErrorDomain: class: ASAuthorizationError name: getClassDomain + ASExtensionLocalizedFailureReasonErrorKey: + class: ASExtensionErrorCode + name: getLocalizedFailureReasonErrorKey + ASExtensionErrorDomain: + class: ASExtensionErrorCode + name: getClassDomain + ASWebAuthenticationSessionErrorDomain: + class: ASWebAuthenticationSessionErrorCode + name: getClassDomain + ASAuthorizationAppleIDProviderCredentialRevokedNotification: + class: ASAuthorizationAppleIDProvider + static_class: Notifications + name: CredentialRevoked # Make sure we don't miss any values if new ones are introduced in a later version - (k?ASC.*): + (k?AS.*): class: !!!AuthServicesFixMe name: 'Value__#{g[0]}' @@ -236,6 +288,6 @@ constants: name: '#{g[0]}' # Make sure we don't miss any constants if new ones are introduced in a later version - (k?ASC.*): + (k?AS.*): class: !!!AuthServicesFixMe name: 'Constant__#{g[0]}' diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationAppleIDProvider.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationAppleIDProvider.java index dde39f293..e4b106b7b 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationAppleIDProvider.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationAppleIDProvider.java @@ -56,6 +56,17 @@ public ASAuthorizationAppleIDProvider() {} /**/ /**//**/ /**/ + @Library("AuthenticationServices") + public static class Notifications { + static { Bro.bind(Notifications.class); } + + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationAppleIDProviderCredentialRevokedNotification", optional=true) + public static native String CredentialRevoked(); + } + @Method(selector = "createRequest") public native ASAuthorizationAppleIDRequest createRequest(); @Method(selector = "getCredentialStateForUserID:completion:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDOperation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDOperation.java new file mode 100644 index 000000000..8d0cf8ffc --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDOperation.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.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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationOpenIDOperation/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationOpenIDOperation/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationOpenIDOperation/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationOpenIDOperation toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationOpenIDOperation.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationOpenIDOperation 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(ASAuthorizationOpenIDOperation.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 (ASAuthorizationOpenIDOperation o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 13.0 and later. + */ + public static final ASAuthorizationOpenIDOperation Implicit = new ASAuthorizationOpenIDOperation("Implicit"); + /** + * @since Available in iOS 13.0 and later. + */ + public static final ASAuthorizationOpenIDOperation Login = new ASAuthorizationOpenIDOperation("Login"); + /** + * @since Available in iOS 13.0 and later. + */ + public static final ASAuthorizationOpenIDOperation Refresh = new ASAuthorizationOpenIDOperation("Refresh"); + /** + * @since Available in iOS 13.0 and later. + */ + public static final ASAuthorizationOpenIDOperation Logout = new ASAuthorizationOpenIDOperation("Logout"); + /**/ + + private static /**/ASAuthorizationOpenIDOperation/**/[] values = new /**/ASAuthorizationOpenIDOperation/**/[] {/**/Implicit, Login, Refresh, Logout/**/}; + + /**/ASAuthorizationOpenIDOperation/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationOpenIDOperation/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationOpenIDOperation/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationOpenIDOperation/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationOperationImplicit", optional=true) + public static native NSString Implicit(); + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationOperationLogin", optional=true) + public static native NSString Login(); + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationOperationRefresh", optional=true) + public static native NSString Refresh(); + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationOperationLogout", optional=true) + public static native NSString Logout(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDRequest.java index 6dbc4e496..3b76b2e1e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationOpenIDRequest.java @@ -65,9 +65,9 @@ protected ASAuthorizationOpenIDRequest() {} @Property(selector = "setNonce:") public native void setNonce(String v); @Property(selector = "requestedOperation") - public native String getRequestedOperation(); + public native ASAuthorizationOpenIDOperation getRequestedOperation(); @Property(selector = "setRequestedOperation:") - public native void setRequestedOperation(String v); + public native void setRequestedOperation(ASAuthorizationOpenIDOperation v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialAssertionRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialAssertionRequest.java index c6200fe83..5d5cddb91 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialAssertionRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialAssertionRequest.java @@ -65,9 +65,9 @@ protected ASAuthorizationPlatformPublicKeyCredentialAssertionRequest() {} @Property(selector = "setRelyingPartyIdentifier:") public native void setRelyingPartyIdentifier(String v); @Property(selector = "userVerificationPreference") - public native String getUserVerificationPreference(); + public native ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference(); @Property(selector = "setUserVerificationPreference:") - public native void setUserVerificationPreference(String v); + public native void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest.java index 04d309593..025ccabdc 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest.java @@ -71,13 +71,13 @@ protected ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest() {} @Property(selector = "setChallenge:") public native void setChallenge(NSData v); @Property(selector = "userVerificationPreference") - public native String getUserVerificationPreference(); + public native ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference(); @Property(selector = "setUserVerificationPreference:") - public native void setUserVerificationPreference(String v); + public native void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v); @Property(selector = "attestationPreference") - public native String getAttestationPreference(); + public native ASAuthorizationPublicKeyCredentialAttestationKind getAttestationPreference(); @Property(selector = "setAttestationPreference:") - public native void setAttestationPreference(String v); + public native void setAttestationPreference(ASAuthorizationPublicKeyCredentialAttestationKind v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderAuthorizationOperation.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderAuthorizationOperation.java new file mode 100644 index 000000000..89a8723cd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderAuthorizationOperation.java @@ -0,0 +1,138 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationProviderAuthorizationOperation/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationProviderAuthorizationOperation/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationProviderAuthorizationOperation/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationProviderAuthorizationOperation toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationProviderAuthorizationOperation.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationProviderAuthorizationOperation 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(ASAuthorizationProviderAuthorizationOperation.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 (ASAuthorizationProviderAuthorizationOperation o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 14.0 and later. + */ + public static final ASAuthorizationProviderAuthorizationOperation ConfigurationRemoved = new ASAuthorizationProviderAuthorizationOperation("ConfigurationRemoved"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final ASAuthorizationProviderAuthorizationOperation DirectRequest = new ASAuthorizationProviderAuthorizationOperation("DirectRequest"); + /**/ + + private static /**/ASAuthorizationProviderAuthorizationOperation/**/[] values = new /**/ASAuthorizationProviderAuthorizationOperation/**/[] {/**/ConfigurationRemoved, DirectRequest/**/}; + + /**/ASAuthorizationProviderAuthorizationOperation/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationProviderAuthorizationOperation/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationProviderAuthorizationOperation/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationProviderAuthorizationOperation/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 14.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationProviderAuthorizationOperationConfigurationRemoved", optional=true) + public static native NSString ConfigurationRemoved(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationProviderAuthorizationOperationDirectRequest", optional=true) + public static native NSString DirectRequest(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderExtensionAuthorizationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderExtensionAuthorizationRequest.java index aafa54945..e2d57f7ef 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderExtensionAuthorizationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationProviderExtensionAuthorizationRequest.java @@ -55,7 +55,7 @@ public ASAuthorizationProviderExtensionAuthorizationRequest() {} @Property(selector = "url") public native NSURL getUrl(); @Property(selector = "requestedOperation") - public native String getRequestedOperation(); + public native ASAuthorizationProviderAuthorizationOperation getRequestedOperation(); @Property(selector = "httpHeaders") public native NSDictionary getHttpHeaders(); @Property(selector = "httpBody") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAssertionRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAssertionRequest.java index ac6d32c7b..cf8112149 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAssertionRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAssertionRequest.java @@ -61,9 +61,9 @@ @Property(selector = "setAllowedCredentials:") void setAllowedCredentials(NSArray v); @Property(selector = "userVerificationPreference") - String getUserVerificationPreference(); + ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference(); @Property(selector = "setUserVerificationPreference:") - void setUserVerificationPreference(String v); + void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAttestationKind.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAttestationKind.java new file mode 100644 index 000000000..69ef492f9 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialAttestationKind.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.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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationPublicKeyCredentialAttestationKind/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationPublicKeyCredentialAttestationKind/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationPublicKeyCredentialAttestationKind/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationPublicKeyCredentialAttestationKind toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationPublicKeyCredentialAttestationKind.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationPublicKeyCredentialAttestationKind 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(ASAuthorizationPublicKeyCredentialAttestationKind.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 (ASAuthorizationPublicKeyCredentialAttestationKind o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialAttestationKind None = new ASAuthorizationPublicKeyCredentialAttestationKind("None"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialAttestationKind Direct = new ASAuthorizationPublicKeyCredentialAttestationKind("Direct"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialAttestationKind Indirect = new ASAuthorizationPublicKeyCredentialAttestationKind("Indirect"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialAttestationKind Enterprise = new ASAuthorizationPublicKeyCredentialAttestationKind("Enterprise"); + /**/ + + private static /**/ASAuthorizationPublicKeyCredentialAttestationKind/**/[] values = new /**/ASAuthorizationPublicKeyCredentialAttestationKind/**/[] {/**/None, Direct, Indirect, Enterprise/**/}; + + /**/ASAuthorizationPublicKeyCredentialAttestationKind/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationPublicKeyCredentialAttestationKind/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationPublicKeyCredentialAttestationKind/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationPublicKeyCredentialAttestationKind/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialAttestationKindNone", optional=true) + public static native NSString None(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialAttestationKindDirect", optional=true) + public static native NSString Direct(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialAttestationKindIndirect", optional=true) + public static native NSString Indirect(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialAttestationKindEnterprise", optional=true) + public static native NSString Enterprise(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequest.java index 61db0ce12..e1b6693e9 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequest.java @@ -67,13 +67,13 @@ @Property(selector = "setChallenge:") void setChallenge(NSData v); @Property(selector = "userVerificationPreference") - String getUserVerificationPreference(); + ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference(); @Property(selector = "setUserVerificationPreference:") - void setUserVerificationPreference(String v); + void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v); @Property(selector = "attestationPreference") - String getAttestationPreference(); + ASAuthorizationPublicKeyCredentialAttestationKind getAttestationPreference(); @Property(selector = "setAttestationPreference:") - void setAttestationPreference(String v); + void setAttestationPreference(ASAuthorizationPublicKeyCredentialAttestationKind v); /**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequestAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequestAdapter.java index 74cfe09f2..b2679951d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequestAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialRegistrationRequestAdapter.java @@ -66,13 +66,13 @@ public void setDisplayName(String v) {} @NotImplemented("setChallenge:") public void setChallenge(NSData v) {} @NotImplemented("userVerificationPreference") - public String getUserVerificationPreference() { return null; } + public ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference() { return null; } @NotImplemented("setUserVerificationPreference:") - public void setUserVerificationPreference(String v) {} + public void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v) {} @NotImplemented("attestationPreference") - public String getAttestationPreference() { return null; } + public ASAuthorizationPublicKeyCredentialAttestationKind getAttestationPreference() { return null; } @NotImplemented("setAttestationPreference:") - public void setAttestationPreference(String v) {} + public void setAttestationPreference(ASAuthorizationPublicKeyCredentialAttestationKind v) {} /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialResidentKeyPreference.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialResidentKeyPreference.java new file mode 100644 index 000000000..c8a73cea7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialResidentKeyPreference.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.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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationPublicKeyCredentialResidentKeyPreference toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationPublicKeyCredentialResidentKeyPreference.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationPublicKeyCredentialResidentKeyPreference 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(ASAuthorizationPublicKeyCredentialResidentKeyPreference.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 (ASAuthorizationPublicKeyCredentialResidentKeyPreference o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialResidentKeyPreference Discouraged = new ASAuthorizationPublicKeyCredentialResidentKeyPreference("Discouraged"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialResidentKeyPreference Preferred = new ASAuthorizationPublicKeyCredentialResidentKeyPreference("Preferred"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialResidentKeyPreference Required = new ASAuthorizationPublicKeyCredentialResidentKeyPreference("Required"); + /**/ + + private static /**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/[] values = new /**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/[] {/**/Discouraged, Preferred, Required/**/}; + + /**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationPublicKeyCredentialResidentKeyPreference/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialResidentKeyPreferenceDiscouraged", optional=true) + public static native NSString Discouraged(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialResidentKeyPreferencePreferred", optional=true) + public static native NSString Preferred(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialResidentKeyPreferenceRequired", optional=true) + public static native NSString Required(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialUserVerificationPreference.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialUserVerificationPreference.java new file mode 100644 index 000000000..06d290de1 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationPublicKeyCredentialUserVerificationPreference.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.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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationPublicKeyCredentialUserVerificationPreference toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationPublicKeyCredentialUserVerificationPreference.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationPublicKeyCredentialUserVerificationPreference 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(ASAuthorizationPublicKeyCredentialUserVerificationPreference.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 (ASAuthorizationPublicKeyCredentialUserVerificationPreference o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialUserVerificationPreference Preferred = new ASAuthorizationPublicKeyCredentialUserVerificationPreference("Preferred"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialUserVerificationPreference Required = new ASAuthorizationPublicKeyCredentialUserVerificationPreference("Required"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationPublicKeyCredentialUserVerificationPreference Discouraged = new ASAuthorizationPublicKeyCredentialUserVerificationPreference("Discouraged"); + /**/ + + private static /**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/[] values = new /**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/[] {/**/Preferred, Required, Discouraged/**/}; + + /**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationPublicKeyCredentialUserVerificationPreference/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialUserVerificationPreferencePreferred", optional=true) + public static native NSString Preferred(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialUserVerificationPreferenceRequired", optional=true) + public static native NSString Required(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationPublicKeyCredentialUserVerificationPreferenceDiscouraged", optional=true) + public static native NSString Discouraged(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationScope.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationScope.java new file mode 100644 index 000000000..3d00f7d40 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationScope.java @@ -0,0 +1,138 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationScope/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationScope/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationScope/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationScope toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationScope.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationScope 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(ASAuthorizationScope.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 (ASAuthorizationScope o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 13.0 and later. + */ + public static final ASAuthorizationScope FullName = new ASAuthorizationScope("FullName"); + /** + * @since Available in iOS 13.0 and later. + */ + public static final ASAuthorizationScope Email = new ASAuthorizationScope("Email"); + /**/ + + private static /**/ASAuthorizationScope/**/[] values = new /**/ASAuthorizationScope/**/[] {/**/FullName, Email/**/}; + + /**/ASAuthorizationScope/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationScope/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationScope/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationScope/**/.class.getName()); + } + + /**//**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationScopeFullName", optional=true) + public static native NSString FullName(); + /** + * @since Available in iOS 13.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationScopeEmail", optional=true) + public static native NSString Email(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest.java index 88d1ce54b..db5890bb2 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest.java @@ -65,9 +65,9 @@ protected ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest() {} @Property(selector = "setRelyingPartyIdentifier:") public native void setRelyingPartyIdentifier(String v); @Property(selector = "userVerificationPreference") - public native String getUserVerificationPreference(); + public native ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference(); @Property(selector = "setUserVerificationPreference:") - public native void setUserVerificationPreference(String v); + public native void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport.java new file mode 100644 index 000000000..270abaedd --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport.java @@ -0,0 +1,153 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.*; +/**/ + +/**/ +/**/ +/**/@Library("AuthenticationServices") @StronglyLinked/**/ +@Marshaler(/**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/.Marshaler.class) +/**/public/**/ class /**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport.valueOf(o); + } + @MarshalsPointer + public static long toNative(ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport 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(ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport.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 (ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport USB = new ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport("USB"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport NFC = new ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport("NFC"); + /** + * @since Available in iOS 15.0 and later. + */ + public static final ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport Bluetooth = new ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport("Bluetooth"); + /**/ + + private static /**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/[] values = new /**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/[] {/**/USB, NFC, Bluetooth/**/}; + + /**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/ valueOf(/**/NSString/**/ value) { + for (/**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport/**/.class.getName()); + } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @Bridge(symbol="ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports", optional=true) + public static native NSArray getAllSupportedPublicKeyCredentialDescriptorTransports(); + /**/ + + /**/@Library("AuthenticationServices") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportUSB", optional=true) + public static native NSString USB(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportNFC", optional=true) + public static native NSString NFC(); + /** + * @since Available in iOS 15.0 and later. + */ + @GlobalValue(symbol="ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransportBluetooth", optional=true) + public static native NSString Bluetooth(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest.java index ffbe2bfe4..89e7aedd3 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest.java @@ -61,9 +61,9 @@ protected ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest() {} @Property(selector = "setExcludedCredentials:") public native void setExcludedCredentials(NSArray v); @Property(selector = "residentKeyPreference") - public native String getResidentKeyPreference(); + public native ASAuthorizationPublicKeyCredentialResidentKeyPreference getResidentKeyPreference(); @Property(selector = "setResidentKeyPreference:") - public native void setResidentKeyPreference(String v); + public native void setResidentKeyPreference(ASAuthorizationPublicKeyCredentialResidentKeyPreference v); @Property(selector = "relyingPartyIdentifier") public native String getRelyingPartyIdentifier(); @Property(selector = "userID") @@ -83,13 +83,13 @@ protected ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest() {} @Property(selector = "setChallenge:") public native void setChallenge(NSData v); @Property(selector = "userVerificationPreference") - public native String getUserVerificationPreference(); + public native ASAuthorizationPublicKeyCredentialUserVerificationPreference getUserVerificationPreference(); @Property(selector = "setUserVerificationPreference:") - public native void setUserVerificationPreference(String v); + public native void setUserVerificationPreference(ASAuthorizationPublicKeyCredentialUserVerificationPreference v); @Property(selector = "attestationPreference") - public native String getAttestationPreference(); + public native ASAuthorizationPublicKeyCredentialAttestationKind getAttestationPreference(); @Property(selector = "setAttestationPreference:") - public native void setAttestationPreference(String v); + public native void setAttestationPreference(ASAuthorizationPublicKeyCredentialAttestationKind v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASExtensionErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASExtensionErrorCode.java index 5ac6cd9fc..4f3f7ae09 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASExtensionErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASExtensionErrorCode.java @@ -38,8 +38,8 @@ * @since Available in iOS 12.0 and later. */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ -public enum /**/ASExtensionErrorCode/**/ implements ValuedEnum { +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("AuthenticationServices")/**/ +public enum /**/ASExtensionErrorCode/**/ implements NSErrorCode { /**/ Failed(0L), UserCanceled(1L), @@ -47,10 +47,21 @@ public enum /**/ASExtensionErrorCode/**/ implements ValuedEnum { CredentialIdentityNotFound(101L); /**/ - /**/ - /**/ + /**/static { Bro.bind(ASExtensionErrorCode.class); }/**/ /**//**/ - /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 12.0 and later. + */ + @GlobalValue(symbol="ASExtensionErrorDomain", optional=true) + public static native String getClassDomain(); + /** + * @since Available in iOS 14.0 and later. + */ + @GlobalValue(symbol="ASExtensionLocalizedFailureReasonErrorKey", optional=true) + public static native String getLocalizedFailureReasonErrorKey(); + /**/ private final long n; @@ -62,7 +73,27 @@ public enum /**/ASExtensionErrorCode/**/ implements ValuedEnum { return v; } } - throw new IllegalArgumentException("No constant with value " + n + " found in " + throw new IllegalArgumentException("No constant with value " + n + " found in " + /**/ASExtensionErrorCode/**/.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 /**/ASExtensionErrorCode/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/ASExtensionErrorCode/**/.getClassDomain(); + } + } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASWebAuthenticationSessionErrorCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASWebAuthenticationSessionErrorCode.java index 83f6b6863..a2b8c92da 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASWebAuthenticationSessionErrorCode.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/authservices/ASWebAuthenticationSessionErrorCode.java @@ -38,8 +38,8 @@ * @since Available in iOS 12.0 and later. */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ -public enum /**/ASWebAuthenticationSessionErrorCode/**/ implements ValuedEnum { +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Library("AuthenticationServices")/**/ +public enum /**/ASWebAuthenticationSessionErrorCode/**/ implements NSErrorCode { /**/ CanceledLogin(1L), /** @@ -52,10 +52,16 @@ public enum /**/ASWebAuthenticationSessionErrorCode/**/ implements PresentationContextInvalid(3L); /**/ - /**/ - /**/ + /**/static { Bro.bind(ASWebAuthenticationSessionErrorCode.class); }/**/ /**//**/ - /**//**/ + /**//**/ + /**/ + /** + * @since Available in iOS 12.0 and later. + */ + @GlobalValue(symbol="ASWebAuthenticationSessionErrorDomain", optional=true) + public static native String getClassDomain(); + /**/ private final long n; @@ -67,7 +73,27 @@ public enum /**/ASWebAuthenticationSessionErrorCode/**/ implements return v; } } - throw new IllegalArgumentException("No constant with value " + n + " found in " + throw new IllegalArgumentException("No constant with value " + n + " found in " + /**/ASWebAuthenticationSessionErrorCode/**/.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 /**/ASWebAuthenticationSessionErrorCode/**/.valueOf(getCode()); + } catch (IllegalArgumentException e) { + return null; + } + } + + public static String getClassDomain() { + /** must be inserted in value section */ + return /**/ASWebAuthenticationSessionErrorCode/**/.getClassDomain(); + } + } } From d4db56164a592405698552b2623a2cb0817a2c91 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Thu, 16 Feb 2023 13:04:10 +0200 Subject: [PATCH 2/2] * iOS 16.2: cocoa touch bindings regenerated --- .../src/main/bro-gen/corelocation.yaml | 4 +- .../src/main/bro-gen/coremotion.yaml | 15 +- .../cocoatouch/src/main/bro-gen/dispatch.yaml | 3 + .../src/main/bro-gen/foundation.yaml | 14 ++ .../cocoatouch/src/main/bro-gen/gamekit.yaml | 2 + .../cocoatouch/src/main/bro-gen/intents.yaml | 30 ++++ .../main/bro-gen/metalperformanceshaders.yaml | 2 + .../bro-gen/metalperformanceshadersgraph.yaml | 48 ++++++ .../src/main/bro-gen/sensorkit.yaml | 1 + .../cocoatouch/src/main/bro-gen/storekit.yaml | 10 ++ .../cocoatouch/src/main/bro-gen/uikit.yaml | 2 + .../cocoatouch/src/main/bro-gen/webkit.yaml | 3 + .../org/robovm/apple/audiotoolbox/AUType.java | 4 + .../apple/businesschat/BCChatAction.java | 5 +- .../apple/businesschat/BCChatButton.java | 17 +- .../apple/businesschat/BCChatButtonStyle.java | 3 +- .../apple/businesschat/BCParameterName.java | 6 + .../apple/coreaudiokit/AUViewController.java | 3 +- .../apple/corelocation/CLBeaconRegion.java | 6 - .../robovm/apple/corelocation/CLRegion.java | 12 -- .../coremedia/CMSampleAttachmentKey.java | 11 +- .../coremotion/CMWaterSubmersionEvent.java | 66 ++++++++ .../coremotion/CMWaterSubmersionManager.java | 63 ++++++++ .../CMWaterSubmersionManagerDelegate.java | 60 +++++++ ...WaterSubmersionManagerDelegateAdapter.java | 60 +++++++ .../CMWaterSubmersionMeasurement.java | 72 +++++++++ .../apple/coremotion/CMWaterTemperature.java | 68 ++++++++ .../apple/foundation/NSMutableURLRequest.java | 20 +-- .../org/robovm/apple/foundation/NSString.java | 24 +++ .../robovm/apple/foundation/NSURLRequest.java | 5 + .../gamecontroller/GCDevicePhysicalInput.java | 8 +- .../GCDevicePhysicalInputAdapter.java | 8 +- .../GCPhysicalInputProfile.java | 14 -- .../apple/gamecontroller/GCRacingWheel.java | 105 ------------ .../gamecontroller/GCRacingWheelInput.java | 75 --------- .../robovm/apple/gamekit/GKMatchmaker.java | 10 ++ .../org/robovm/apple/homekit/HMAccessory.java | 5 + .../homekit/HMAccessorySetupManager.java | 12 -- .../homekit/HMAccessorySetupRequest.java | 8 +- .../java/org/robovm/apple/homekit/HMHome.java | 10 ++ .../robovm/apple/homekit/HMHomeManager.java | 8 + .../apple/intents/INAnswerCallIntent.java | 71 ++++++++ .../intents/INAnswerCallIntentHandling.java | 61 +++++++ .../INAnswerCallIntentHandlingAdapter.java | 59 +++++++ .../intents/INAnswerCallIntentResponse.java | 71 ++++++++ .../INAnswerCallIntentResponseCode.java | 71 ++++++++ .../apple/intents/INHangUpCallIntent.java | 71 ++++++++ .../intents/INHangUpCallIntentHandling.java | 61 +++++++ .../INHangUpCallIntentHandlingAdapter.java | 59 +++++++ .../intents/INHangUpCallIntentResponse.java | 67 ++++++++ .../INHangUpCallIntentResponseCode.java | 71 ++++++++ .../apple/intents/INIntentIdentifiers.java | 10 ++ .../org/robovm/apple/metalps/MPSDataType.java | 12 ++ .../apple/metalps/MPSDeviceCapsValues.java | 4 +- .../robovm/apple/metalpsgraph/MPSGraph.java | 152 ++++++++++++++++-- .../apple/sensorkit/SRApplicationUsage.java | 5 + .../apple/sensorkit/SRKeyboardMetrics.java | 10 ++ .../sensorkit/SRSupplementalCategory.java | 66 ++++++++ .../robovm/apple/storekit/SKAdImpression.java | 10 ++ .../robovm/apple/storekit/SKAdNetwork.java | 10 ++ .../SKAdNetworkCoarseConversionValue.java | 146 +++++++++++++++++ .../storekit/SKStoreProductParameters.java | 5 + .../org/robovm/apple/uikit/NSTextStorage.java | 14 ++ .../apple/uikit/UICalendarViewDelegate.java | 5 + .../uikit/UICalendarViewDelegateAdapter.java | 5 + .../apple/uikit/UIHoverGestureRecognizer.java | 6 +- .../java/org/robovm/apple/uikit/UILabel.java | 6 + .../org/robovm/apple/widgetkit/WGWidget.java | 2 + 68 files changed, 1758 insertions(+), 274 deletions(-) create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionEvent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManager.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegate.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegateAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionMeasurement.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterTemperature.java delete mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java delete mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInput.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandling.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandlingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponse.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponseCode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntent.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandling.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandlingAdapter.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponse.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponseCode.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRSupplementalCategory.java create mode 100644 compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetworkCoarseConversionValue.java diff --git a/compiler/cocoatouch/src/main/bro-gen/corelocation.yaml b/compiler/cocoatouch/src/main/bro-gen/corelocation.yaml index 39e86bd0f..9ed7871e6 100755 --- a/compiler/cocoatouch/src/main/bro-gen/corelocation.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/corelocation.yaml @@ -56,8 +56,6 @@ classes: methods: '-initWithCenter:radius:identifier:': name: init - '-initCircularRegionWithCenter:radius:identifier:': - exclude: true # as this method is deprecated and conflicts with initWithCenter:radius:identifier: '-containsCoordinate:': # Overrides a method in CLRegion exclude: true CLFloor: {} # DONE @@ -177,7 +175,7 @@ classes: name: notifiesOnExit methods: '-initCircularRegionWithCenter:radius:identifier:': - name: init + exclude: true # as this method is deprecated and conflicts with initWithCenter:radius:identifier: '-containsCoordinate:': trim_after_first_colon: true CLVisit: {} # DONE diff --git a/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml b/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml index 004c7b79e..87c7677c0 100755 --- a/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/coremotion.yaml @@ -149,9 +149,22 @@ classes: CMAbsoluteAltitudeData: {} #since 15.0 CMAmbientPressureData: {} #since 10.0 CMRecordedPressureData: {} #since 12.0 + CMWaterSubmersionEvent: {} + CMWaterSubmersionManager: {} + CMWaterSubmersionMeasurement: {} + CMWaterTemperature: {} protocols: CMHeadphoneMotionManagerDelegate: {} #since 14.0 - + CMWaterSubmersionManagerDelegate: + methods: + '-manager:didUpdateEvent:': + name: didUpdateEvent + '-manager:didUpdateMeasurement:': + name: didUpdateMeasurement + '-manager:didUpdateTemperature:': + name: didUpdateTemperature + '-manager:errorOccurred:': + name: errorOccurred functions: # Make sure we don't miss any functions if new ones are introduced in a later version (k?CM.*): diff --git a/compiler/cocoatouch/src/main/bro-gen/dispatch.yaml b/compiler/cocoatouch/src/main/bro-gen/dispatch.yaml index 08772e73e..eced82da9 100755 --- a/compiler/cocoatouch/src/main/bro-gen/dispatch.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/dispatch.yaml @@ -4,6 +4,9 @@ default_class: Dispatch header: /usr/include/dispatch/dispatch.h path_match: ^.*/usr/include/dispatch/.*$ force_types: [timespec] +clang_args: ['-x', 'objective-c', '-DOS_OBJECT_USE_OBJC=0'] +private_typedefs: + qos_class_t: int typedefs: _NSZone: void 'Protocol *': ObjCProtocol diff --git a/compiler/cocoatouch/src/main/bro-gen/foundation.yaml b/compiler/cocoatouch/src/main/bro-gen/foundation.yaml index 087be17f3..9c02a40d8 100755 --- a/compiler/cocoatouch/src/main/bro-gen/foundation.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/foundation.yaml @@ -1009,6 +1009,12 @@ classes: parameters: locale: type: NSLocale + '-initWithMantissa:exponent:isNegative:': + name: init + '-initWithDecimal:': + name: init + '-initWithString:': + name: init NSDecimalNumberHandler: # DONE skip_def_constructor: true methods: @@ -3339,6 +3345,14 @@ classes: parameters: characters: type: '@Pointer long' + '-initWithData:encoding:': + name: init + '-initWithContentsOfURL:encoding:error:': + name: init + throws: NSErrorException + '-initWithContentsOfFile:encoding:error:': + name: init + throws: NSErrorException '-init': {} '-init.*': { exclude: true } '-characterAtIndex:': diff --git a/compiler/cocoatouch/src/main/bro-gen/gamekit.yaml b/compiler/cocoatouch/src/main/bro-gen/gamekit.yaml index 0d3ceaa46..8feb6120e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/gamekit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/gamekit.yaml @@ -389,6 +389,8 @@ classes: name: startNearbyPlayersBrowsing '+sharedMatchmaker': property: true + '-startGroupActivityWithPlayerHandler:': + name: startGroupActivity GKMatchmakerViewController: # DONE methods: '-addPlayersToMatch:': diff --git a/compiler/cocoatouch/src/main/bro-gen/intents.yaml b/compiler/cocoatouch/src/main/bro-gen/intents.yaml index e394b6bed..db6706cf1 100755 --- a/compiler/cocoatouch/src/main/bro-gen/intents.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/intents.yaml @@ -154,6 +154,8 @@ enums: INStartCallCallRecordToCallBackUnsupportedReason: {} #since 14.0 INShareFocusStatusIntentResponseCode: {} #since 15.0 INFocusStatusAuthorizationStatus: {} #since 15.0 + INAnswerCallIntentResponseCode: { } #since 16.2 + INHangUpCallIntentResponseCode: { } #since 16.2 typed_enums: INCarChargingConnectorType: enum: INCarChargingConnectorType @@ -1725,6 +1727,22 @@ classes: methods: '-initWithCode:userActivity:': name: init + INAnswerCallIntent: #since 16.2 + methods: + '-initWithAudioRoute:callIdentifier:': + name: init + INAnswerCallIntentResponse: #since 16.2 + methods: + '-initWithCode:userActivity:': + name: init + INHangUpCallIntent: #since 16.2 + methods: + '-initWithCallIdentifier:': + name: init + INHangUpCallIntentResponse: #since 16.2 + methods: + '-initWithCode:userActivity:': + name: init protocols: INActivateCarSignalIntentHandling: #since 10.3 methods: @@ -2443,6 +2461,18 @@ protocols: name: handleShareFocusStatus '-confirmShareFocusStatus:completion:': name: confirmShareFocusStatus + INAnswerCallIntentHandling: #since 16.2 + methods: + '-handleAnswerCall:completion:': + name: handleAnswerCall + '-confirmAnswerCall:completion:': + name: confirmAnswerCall + INHangUpCallIntentHandling: #since 16.2 + methods: + '-handleHangUpCall:completion:': + name: handleHangUpCall + '-confirmHangUpCall:completion:': + name: confirmHangUpCall functions: # Make sure we don't miss any functions if new ones are introduced in a later version (IN.*): diff --git a/compiler/cocoatouch/src/main/bro-gen/metalperformanceshaders.yaml b/compiler/cocoatouch/src/main/bro-gen/metalperformanceshaders.yaml index 8b9e08721..7501abe1e 100755 --- a/compiler/cocoatouch/src/main/bro-gen/metalperformanceshaders.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/metalperformanceshaders.yaml @@ -1085,6 +1085,8 @@ classes: methods: '-initForReadingWithData:device:': name: init + '-initWithDevice:': + name: init '+unarchiveObjectWithData:device:': name: unarchiveObject '+unarchiveTopLevelObjectWithData:device:error:': diff --git a/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml b/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml index 5a27d056a..73fca0183 100755 --- a/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/metalperformanceshadersgraph.yaml @@ -645,6 +645,54 @@ classes: name: sort '-transposeTensor:permutation:name:': name: transposeTensor + '-bitwiseNOTWithTensor:name:': + name: bitwiseNOT + '-bitwisePopulationCountWithTensor:name:': + name: bitwisePopulationCount + '-bitwiseANDWithPrimaryTensor:secondaryTensor:name:': + name: bitwiseAND + '-bitwiseORWithPrimaryTensor:secondaryTensor:name:': + name: bitwiseOR + '-bitwiseXORWithPrimaryTensor:secondaryTensor:name:': + name: bitwiseXOR + '-bitwiseLeftShiftWithPrimaryTensor:secondaryTensor:name:': + name: bitwiseLeftShift + '-bitwiseRightShiftWithPrimaryTensor:secondaryTensor:name:': + name: bitwiseRightShift + '-inverseOfTensor:name:': + name: inverseOfTensor + '-quantizeTensor:scale:zeroPoint:dataType:name:': + name: quantizeTensor + '-dequantizeTensor:scale:zeroPoint:dataType:name:': + name: dequantizeTensor + '-quantizeTensor:scaleTensor:zeroPoint:dataType:axis:name:': + name: quantizeTensor + '-dequantizeTensor:scaleTensor:zeroPoint:dataType:axis:name:': + name: dequantizeTensor + '-quantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name:': + name: quantizeTensor + '-dequantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name:': + name: dequantizeTensor + '-sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name:': + name: sampleGrid + '-sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name:': + name: sampleGrid + '-argSortWithTensor:axis:descending:name:': + name: argSort + '-argSortWithTensor:axisTensor:descending:name:': + name: argSort + '-argSortWithTensor:axis:name:': + name: argSort + '-argSortWithTensor:axisTensor:name:': + name: argSort + '-spaceToBatchTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:': + name: spaceToBatch + '-spaceToBatchTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:': + name: spaceToBatch + '-batchToSpaceTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:': + name: batchToSpace + '-batchToSpaceTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:': + name: batchToSpace MPSGraphConvolution2DOpDescriptor: methods: '-setExplicitPaddingWithPaddingLeft:paddingRight:paddingTop:paddingBottom:': diff --git a/compiler/cocoatouch/src/main/bro-gen/sensorkit.yaml b/compiler/cocoatouch/src/main/bro-gen/sensorkit.yaml index 26d9ded83..c65331990 100755 --- a/compiler/cocoatouch/src/main/bro-gen/sensorkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/sensorkit.yaml @@ -57,6 +57,7 @@ classes: SRWebUsage: {} #since 14.0 SRWristDetection: {} #since 14.0 SRTextInputSession: {} #since 15.0 + SRSupplementalCategory: {} #since 16.0 protocols: SRSensorReaderDelegate: #since 14.0 methods: diff --git a/compiler/cocoatouch/src/main/bro-gen/storekit.yaml b/compiler/cocoatouch/src/main/bro-gen/storekit.yaml index a0f7d2597..22e068ceb 100755 --- a/compiler/cocoatouch/src/main/bro-gen/storekit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/storekit.yaml @@ -19,6 +19,12 @@ enums: SKProductDiscountType: {} #since 12.2 SKOverlayPosition: {} #since 14.0 SKANError: { nserror: true } #since 15.4 +typed_enums: + SKAdNetworkCoarseConversionValue: + enum: SKAdNetworkCoarseConversionValue + prefix: SKAdNetworkCoarseConversionValue + type: NSString + classes: SKCloudServiceController: #since 9.3 methods: @@ -149,6 +155,10 @@ classes: name: endImpression '+updatePostbackConversionValue:completionHandler:': name: updatePostbackConversionValue + '+updatePostbackConversionValue:coarseValue:completionHandler:': + name: updatePostbackConversionValue + '+updatePostbackConversionValue:coarseValue:lockWindow:completionHandler:': + name: updatePostbackConversionValue SKProductDiscount: {} #since 11.2 SKProductSubscriptionPeriod: {} #since 11.2 SKPaymentDiscount: #since 12.2 diff --git a/compiler/cocoatouch/src/main/bro-gen/uikit.yaml b/compiler/cocoatouch/src/main/bro-gen/uikit.yaml index 1d8e7128f..270493a74 100644 --- a/compiler/cocoatouch/src/main/bro-gen/uikit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/uikit.yaml @@ -6746,6 +6746,8 @@ protocols: methods: '-calendarView:decorationForDateComponents:': name: getDecoration + '-calendarView:didChangeVisibleDateComponentsFrom:': + name: didChangeVisibleDateComponents UIEditMenuInteractionAnimating: {} #since 16.0 UIEditMenuInteractionDelegate: #since 16.0 methods: diff --git a/compiler/cocoatouch/src/main/bro-gen/webkit.yaml b/compiler/cocoatouch/src/main/bro-gen/webkit.yaml index a8e8aa162..f94b33df2 100755 --- a/compiler/cocoatouch/src/main/bro-gen/webkit.yaml +++ b/compiler/cocoatouch/src/main/bro-gen/webkit.yaml @@ -359,6 +359,9 @@ values: class: WKPreviewActionItemIdentifiers name: '#{g[0]}' + NSReadAccessURLDocumentOption: + exclude: true # FIXME: it extends NSAttributedStringDocumentReadingOptionKey that is defined in different framework + # Make sure we don't miss any values if new ones are introduced in a later version (k?WK.*): class: WebKit diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUType.java index 2247876b1..6b3fab39f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/audiotoolbox/AUType.java @@ -51,6 +51,10 @@ public enum /**/AUType/**/ implements ValuedEnum { Generator(1635084142L), OfflineEffect(1635086188L), MIDIProcessor(1635085673L), + /** + * @since Available in iOS 16.0 and later. + */ + SpeechSynthesizer(1635087216L), RemoteEffect(1635086968L), RemoteGenerator(1635086951L), RemoteInstrument(1635086953L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatAction.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatAction.java index ab680ea92..6069f68a7 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatAction.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatAction.java @@ -36,9 +36,10 @@ /**/ /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ /**/ -/**/@Library("BusinessChat") @NativeClass/**/ +/**/@Library("BusinessChat") @NativeClass @Deprecated/**/ /**/public/**/ class /**/BCChatAction/**/ extends /**/NSObject/**/ /**//**/ { @@ -58,7 +59,9 @@ public BCChatAction() {} /**/ /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ + @Deprecated @Method(selector = "openTranscript:intentParameters:") public static native void openTranscript(String businessIdentifier, NSDictionary intentParameters); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButton.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButton.java index 72d77c06e..62d62d4fa 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButton.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButton.java @@ -36,9 +36,10 @@ /**/ /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ /**/ -/**/@Library("BusinessChat") @NativeClass/**/ +/**/@Library("BusinessChat") @NativeClass @Deprecated/**/ /**/public/**/ class /**/BCChatButton/**/ extends /**/UIControl/**/ /**//**/ { @@ -52,9 +53,16 @@ public BCChatButton() {} protected BCChatButton(SkipInit skipInit) { super(skipInit); } /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ + @Deprecated @Method(selector = "initWithStyle:") public BCChatButton(BCChatButtonStyle style) { super((SkipInit) null); initObject(init(style)); } + /** + * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. + */ + @Deprecated @Method(selector = "initWithCoder:") public BCChatButton(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } @Method(selector = "initWithFrame:") @@ -74,9 +82,16 @@ public BCChatButton() {} /**/ /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ + @Deprecated @Method(selector = "initWithStyle:") protected native @Pointer long init(BCChatButtonStyle style); + /** + * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. + */ + @Deprecated @Method(selector = "initWithCoder:") protected native @Pointer long init(NSCoder coder); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButtonStyle.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButtonStyle.java index fb7822b1f..19bb7aefd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButtonStyle.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCChatButtonStyle.java @@ -36,9 +36,10 @@ /**/ /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ /**/ -/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class) @Deprecated/**/ public enum /**/BCChatButtonStyle/**/ implements ValuedEnum { /**/ Light(0L), diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCParameterName.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCParameterName.java index d661d4830..b361cdd4c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCParameterName.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/businesschat/BCParameterName.java @@ -50,17 +50,23 @@ /**/ /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ + @Deprecated @GlobalValue(symbol="BCParameterNameIntent", optional=true) public static native NSString Intent(); /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ + @Deprecated @GlobalValue(symbol="BCParameterNameGroup", optional=true) public static native NSString Group(); /** * @since Available in iOS 11.3 and later. + * @deprecated Deprecated in iOS 16.1. */ + @Deprecated @GlobalValue(symbol="BCParameterNameBody", optional=true) public static native NSString Body(); /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUViewController.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUViewController.java index 9a85e5491..3ac6e815f 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUViewController.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coreaudiokit/AUViewController.java @@ -61,7 +61,6 @@ public AUViewController() {} /**/ /**//**/ /**/ - @Method(selector = "beginRequestWithExtensionContext:") - public native void beginRequest(NSExtensionContext context); + /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLBeaconRegion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLBeaconRegion.java index a07f6d6d1..6300d672b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLBeaconRegion.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLBeaconRegion.java @@ -98,12 +98,6 @@ public static CLBeaconRegion createUsingUUID(NSUUID uuid, short major, short mi */ @Method(selector = "initWithBeaconIdentityConstraint:identifier:") public CLBeaconRegion(CLBeaconIdentityConstraint beaconIdentityConstraint, String identifier) { super((SkipInit) null); initObject(init(beaconIdentityConstraint, identifier)); } - /** - * @deprecated Deprecated in iOS 7.0. Please see CLCircularRegion - */ - @Deprecated - @Method(selector = "initCircularRegionWithCenter:radius:identifier:") - public CLBeaconRegion(@ByVal CLLocationCoordinate2D center, double radius, String identifier) { super(center, radius, identifier); } /**/ /**/ /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLRegion.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLRegion.java index a9fd07b89..42ae14589 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLRegion.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/corelocation/CLRegion.java @@ -48,12 +48,6 @@ public CLRegion() {} protected CLRegion(Handle h, long handle) { super(h, handle); } protected CLRegion(SkipInit skipInit) { super(skipInit); } - /** - * @deprecated Deprecated in iOS 7.0. Please see CLCircularRegion - */ - @Deprecated - @Method(selector = "initCircularRegionWithCenter:radius:identifier:") - public CLRegion(@ByVal CLLocationCoordinate2D center, double radius, String identifier) { super((SkipInit) null); initObject(init(center, radius, identifier)); } @Method(selector = "initWithCoder:") public CLRegion(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } /**/ @@ -89,12 +83,6 @@ public CLRegion() {} * @deprecated Deprecated in iOS 7.0. Please see CLCircularRegion */ @Deprecated - @Method(selector = "initCircularRegionWithCenter:radius:identifier:") - protected native @Pointer long init(@ByVal CLLocationCoordinate2D center, double radius, String identifier); - /** - * @deprecated Deprecated in iOS 7.0. Please see CLCircularRegion - */ - @Deprecated @Method(selector = "containsCoordinate:") public native boolean containsCoordinate(@ByVal CLLocationCoordinate2D coordinate); @Method(selector = "encodeWithCoder:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMSampleAttachmentKey.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMSampleAttachmentKey.java index 092e3b3c3..37c0d2de7 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMSampleAttachmentKey.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremedia/CMSampleAttachmentKey.java @@ -122,9 +122,13 @@ public static long toNative(List l, long flags) { * @since Available in iOS 15.0 and later. */ public static final CMSampleAttachmentKey CryptorSubsampleAuxiliaryData = new CMSampleAttachmentKey("CryptorSubsampleAuxiliaryData"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final CMSampleAttachmentKey HDR10PlusPerFrameData = new CMSampleAttachmentKey("HDR10PlusPerFrameData"); /**/ - private static /**/CMSampleAttachmentKey/**/[] values = new /**/CMSampleAttachmentKey/**/[] {/**/NotSync, PartialSync, HasRedundantCoding, IsDependedOnByOthers, DependsOnOthers, EarlierDisplayTimesAllowed, DisplayImmediately, DoNotDisplay, HEVCTemporalLevelInfo, HEVCTemporalSubLayerAccess, HEVCStepwiseTemporalSubLayerAccess, HEVCSyncSampleNALUnitType, AudioIndependentSampleDecoderRefreshCount, CryptorSubsampleAuxiliaryData/**/}; + private static /**/CMSampleAttachmentKey/**/[] values = new /**/CMSampleAttachmentKey/**/[] {/**/NotSync, PartialSync, HasRedundantCoding, IsDependedOnByOthers, DependsOnOthers, EarlierDisplayTimesAllowed, DisplayImmediately, DoNotDisplay, HEVCTemporalLevelInfo, HEVCTemporalSubLayerAccess, HEVCStepwiseTemporalSubLayerAccess, HEVCSyncSampleNALUnitType, AudioIndependentSampleDecoderRefreshCount, CryptorSubsampleAuxiliaryData, HDR10PlusPerFrameData/**/}; /**/CMSampleAttachmentKey/**/ (String getterName) { super(Values.class, getterName); @@ -193,6 +197,11 @@ public static class Values { */ @GlobalValue(symbol="kCMSampleAttachmentKey_CryptorSubsampleAuxiliaryData", optional=true) public static native CFString CryptorSubsampleAuxiliaryData(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="kCMSampleAttachmentKey_HDR10PlusPerFrameData", optional=true) + public static native CFString HDR10PlusPerFrameData(); /**/ } } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionEvent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionEvent.java new file mode 100644 index 000000000..25d6cc8b6 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionEvent.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.*; +/**/ + +/**/ + +/**/ +/**/@Library("CoreMotion") @NativeClass/**/ +/**/public/**/ class /**/CMWaterSubmersionEvent/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class CMWaterSubmersionEventPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CMWaterSubmersionEvent.class); }/**/ + /**//**/ + /**/ + public CMWaterSubmersionEvent() {} + protected CMWaterSubmersionEvent(Handle h, long handle) { super(h, handle); } + protected CMWaterSubmersionEvent(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public CMWaterSubmersionEvent(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "date") + public native NSDate getDate(); + @Property(selector = "state") + public native CMWaterSubmersionState getState(); + @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/coremotion/CMWaterSubmersionManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManager.java new file mode 100644 index 000000000..5fb2390fe --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManager.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.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.*; +/**/ + +/**/ + +/**/ +/**/@Library("CoreMotion") @NativeClass/**/ +/**/public/**/ class /**/CMWaterSubmersionManager/**/ + extends /**/NSObject/**/ + /**//**/ { + + /**/public static class CMWaterSubmersionManagerPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CMWaterSubmersionManager.class); }/**/ + /**//**/ + /**/ + public CMWaterSubmersionManager() {} + protected CMWaterSubmersionManager(Handle h, long handle) { super(h, handle); } + protected CMWaterSubmersionManager(SkipInit skipInit) { super(skipInit); } + /**/ + /**/ + @Property(selector = "delegate") + public native CMWaterSubmersionManagerDelegate getDelegate(); + @Property(selector = "setDelegate:", strongRef = true) + public native void setDelegate(CMWaterSubmersionManagerDelegate v); + @Property(selector = "waterSubmersionAvailable") + public static native boolean isWaterSubmersionAvailable(); + @Property(selector = "authorizationStatus") + public static native CMAuthorizationStatus getAuthorizationStatus(); + /**/ + /**//**/ + /**/ + + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegate.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegate.java new file mode 100644 index 000000000..540239592 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegate.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.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.*; +/**/ + +/**/ + +/**/ +/**//**/ +/**/public/**/ interface /**/CMWaterSubmersionManagerDelegate/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "manager:didUpdateEvent:") + void didUpdateEvent(CMWaterSubmersionManager manager, CMWaterSubmersionEvent event); + @Method(selector = "manager:didUpdateMeasurement:") + void didUpdateMeasurement(CMWaterSubmersionManager manager, CMWaterSubmersionMeasurement measurement); + @Method(selector = "manager:didUpdateTemperature:") + void didUpdateTemperature(CMWaterSubmersionManager manager, CMWaterTemperature measurement); + @Method(selector = "manager:errorOccurred:") + void errorOccurred(CMWaterSubmersionManager manager, NSError error); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegateAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegateAdapter.java new file mode 100644 index 000000000..d0604eb35 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionManagerDelegateAdapter.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.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.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/CMWaterSubmersionManagerDelegateAdapter/**/ + extends /**/NSObject/**/ + /**/implements CMWaterSubmersionManagerDelegate/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("manager:didUpdateEvent:") + public void didUpdateEvent(CMWaterSubmersionManager manager, CMWaterSubmersionEvent event) {} + @NotImplemented("manager:didUpdateMeasurement:") + public void didUpdateMeasurement(CMWaterSubmersionManager manager, CMWaterSubmersionMeasurement measurement) {} + @NotImplemented("manager:didUpdateTemperature:") + public void didUpdateTemperature(CMWaterSubmersionManager manager, CMWaterTemperature measurement) {} + @NotImplemented("manager:errorOccurred:") + public void errorOccurred(CMWaterSubmersionManager manager, NSError error) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionMeasurement.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionMeasurement.java new file mode 100644 index 000000000..012548a55 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterSubmersionMeasurement.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.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.*; +/**/ + +/**/ + +/**/ +/**/@Library("CoreMotion") @NativeClass/**/ +/**/public/**/ class /**/CMWaterSubmersionMeasurement/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class CMWaterSubmersionMeasurementPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CMWaterSubmersionMeasurement.class); }/**/ + /**//**/ + /**/ + public CMWaterSubmersionMeasurement() {} + protected CMWaterSubmersionMeasurement(Handle h, long handle) { super(h, handle); } + protected CMWaterSubmersionMeasurement(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public CMWaterSubmersionMeasurement(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "date") + public native NSDate getDate(); + @Property(selector = "depth") + public native NSMeasurement getDepth(); + @Property(selector = "pressure") + public native NSMeasurement getPressure(); + @Property(selector = "surfacePressure") + public native NSMeasurement getSurfacePressure(); + @Property(selector = "submersionState") + public native CMWaterSubmersionDepthState getSubmersionState(); + @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/coremotion/CMWaterTemperature.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterTemperature.java new file mode 100644 index 000000000..70c13e94b --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/coremotion/CMWaterTemperature.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.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.*; +/**/ + +/**/ + +/**/ +/**/@Library("CoreMotion") @NativeClass/**/ +/**/public/**/ class /**/CMWaterTemperature/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class CMWaterTemperaturePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(CMWaterTemperature.class); }/**/ + /**//**/ + /**/ + public CMWaterTemperature() {} + protected CMWaterTemperature(Handle h, long handle) { super(h, handle); } + protected CMWaterTemperature(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public CMWaterTemperature(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "date") + public native NSDate getDate(); + @Property(selector = "temperature") + public native NSMeasurement getTemperature(); + @Property(selector = "temperatureUncertainty") + public native NSMeasurement getTemperatureUncertainty(); + @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/foundation/NSMutableURLRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSMutableURLRequest.java index 16ae25e87..35960d73a 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,16 +113,6 @@ 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. */ @@ -133,6 +123,16 @@ public NSMutableURLRequest() {} */ @Property(selector = "setAttribution:") public native void setAttribution(NSURLRequestAttribution v); + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "requiresDNSSECValidation") + public native boolean requiresDNSSECValidation(); + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "setRequiresDNSSECValidation:") + public native void setRequiresDNSSECValidation(boolean v); @Property(selector = "supportsSecureCoding") public static native boolean supportsSecureCoding(); @Property(selector = "HTTPMethod") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSString.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSString.java index 2467d9c77..a7d2de2be 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSString.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSString.java @@ -113,6 +113,24 @@ public NSString(String s) { public NSString() {} protected NSString(Handle h, long handle) { super(h, handle); } protected NSString(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithData:encoding:") + public NSString(NSData data, NSStringEncoding encoding) { super((SkipInit) null); initObject(init(data, encoding)); } + @Method(selector = "initWithContentsOfURL:encoding:error:") + public NSString(NSURL url, NSStringEncoding enc) throws NSErrorException { + super((SkipInit) null); + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + long handle = init(url, enc, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + initObject(handle); + } + @Method(selector = "initWithContentsOfFile:encoding:error:") + public NSString(String path, NSStringEncoding enc) throws NSErrorException { + super((SkipInit) null); + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + long handle = init(path, enc, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + initObject(handle); + } /**/ /**/ @Property(selector = "length") @@ -696,6 +714,12 @@ public boolean writeFile(String path, boolean atomically, NSStringEncoding enc) private native boolean writeFile(String path, boolean atomically, NSStringEncoding enc, NSError.NSErrorPtr error); @Method(selector = "initWithCharacters:length:") protected native @Pointer long init(@Pointer long characters, @MachineSizedUInt long length); + @Method(selector = "initWithData:encoding:") + protected native @Pointer long init(NSData data, NSStringEncoding encoding); + @Method(selector = "initWithContentsOfURL:encoding:error:") + private native @Pointer long init(NSURL url, NSStringEncoding enc, NSError.NSErrorPtr error); + @Method(selector = "initWithContentsOfFile:encoding:error:") + private native @Pointer long init(String path, NSStringEncoding enc, NSError.NSErrorPtr error); @Method(selector = "stringWithCharacters:length:") protected static native @Pointer long create(@Pointer long characters, @MachineSizedUInt long length); public static String readURL(NSURL url, NSStringEncoding enc) throws NSErrorException { diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLRequest.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLRequest.java index 0be91c3ac..3348c0485 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLRequest.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSURLRequest.java @@ -95,6 +95,11 @@ public NSURLRequest() {} */ @Property(selector = "attribution") public native NSURLRequestAttribution getAttribution(); + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "requiresDNSSECValidation") + public native boolean requiresDNSSECValidation(); @Property(selector = "HTTPMethod") public native String getHTTPMethod(); @Property(selector = "allHTTPHeaderFields") 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 index 5e2afc495..0b7410318 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInput.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInput.java @@ -51,13 +51,13 @@ @Property(selector = "device") GCDevice getDevice(); @Property(selector = "elementValueDidChangeHandler") - @Block VoidBlock1 getElementValueDidChangeHandler(); + @Block VoidBlock2 getElementValueDidChangeHandler(); @Property(selector = "setElementValueDidChangeHandler:") - void setElementValueDidChangeHandler(@Block VoidBlock1 v); + void setElementValueDidChangeHandler(@Block VoidBlock2 v); @Property(selector = "inputStateAvailableHandler") - @Block Runnable getInputStateAvailableHandler(); + @Block VoidBlock1 getInputStateAvailableHandler(); @Property(selector = "setInputStateAvailableHandler:") - void setInputStateAvailableHandler(@Block Runnable v); + void setInputStateAvailableHandler(@Block VoidBlock1 v); @Property(selector = "inputStateQueueDepth") @MachineSizedSInt long getInputStateQueueDepth(); @Property(selector = "setInputStateQueueDepth:") 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 index 8b34086cb..d77ea6bcb 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCDevicePhysicalInputAdapter.java @@ -50,13 +50,13 @@ @NotImplemented("device") public GCDevice getDevice() { return null; } @NotImplemented("elementValueDidChangeHandler") - public @Block VoidBlock1 getElementValueDidChangeHandler() { return null; } + public @Block VoidBlock2 getElementValueDidChangeHandler() { return null; } @NotImplemented("setElementValueDidChangeHandler:") - public void setElementValueDidChangeHandler(@Block VoidBlock1 v) {} + public void setElementValueDidChangeHandler(@Block VoidBlock2 v) {} @NotImplemented("inputStateAvailableHandler") - public @Block Runnable getInputStateAvailableHandler() { return null; } + public @Block VoidBlock1 getInputStateAvailableHandler() { return null; } @NotImplemented("setInputStateAvailableHandler:") - public void setInputStateAvailableHandler(@Block Runnable v) {} + public void setInputStateAvailableHandler(@Block VoidBlock1 v) {} @NotImplemented("inputStateQueueDepth") public @MachineSizedSInt long getInputStateQueueDepth() { return 0; } @NotImplemented("setInputStateQueueDepth:") 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 b91bf331b..fcdb7e0e1 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 @@ -219,20 +219,6 @@ 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/GCRacingWheel.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java deleted file mode 100644 index ee3010a07..000000000 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheel.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (C) 2013-2015 RoboVM AB - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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 deleted file mode 100644 index 110387874..000000000 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamecontroller/GCRacingWheelInput.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2013-2015 RoboVM AB - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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/gamekit/GKMatchmaker.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKMatchmaker.java index f17afdf12..6fd9369d4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKMatchmaker.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKMatchmaker.java @@ -86,6 +86,16 @@ public GKMatchmaker() {} public native void startNearbyPlayersBrowsing(@Block VoidBlock2 reachableHandler); @Method(selector = "stopBrowsingForNearbyPlayers") public native void stopBrowsingForNearbyPlayers(); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "startGroupActivityWithPlayerHandler:") + public native void startGroupActivity(@Block VoidBlock1 handler); + /** + * @since Available in iOS 16.0 and later. + */ + @Method(selector = "stopGroupActivity") + public native void stopGroupActivity(); @Method(selector = "sharedMatchmaker") public static native GKMatchmaker getSharedMatchmaker(); /** diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessory.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessory.java index 6aaed73ff..4f97b2172 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessory.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessory.java @@ -116,6 +116,11 @@ public HMAccessory() {} */ @Property(selector = "supportsIdentify") public native boolean supportsIdentify(); + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "matterNodeID") + public native NSNumber getMatterNodeID(); /** * @since Available in iOS 10.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupManager.java index a823075dc..428247b9e 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMAccessorySetupManager.java @@ -59,17 +59,5 @@ public HMAccessorySetupManager() {} */ @Method(selector = "performAccessorySetupUsingRequest:completionHandler:") public native void performAccessorySetupUsingRequest(HMAccessorySetupRequest request, @Block VoidBlock2 completion); - /** - * @since Available in iOS 15.4 and later. - */ - @Method(selector = "performMatterEcosystemAccessorySetupUsingRequest:topology:completionHandler:") - public native void performMatterEcosystemAccessorySetupUsingRequest(HMAccessorySetupRequest request, HMMatterTopology topology, @Block VoidBlock1 completion); - /** - * @since Available in iOS 15.0 and later. - * @deprecated Deprecated in iOS 15.4. Use -[HMAccessorySetupManager performAccessorySetupUsingRequest:topology:completionHandler:] instead - */ - @Deprecated - @Method(selector = "addAndSetUpAccessoriesForTopology:completionHandler:") - public native void addAndSetUpAccessories(HMMatterTopology topology, @Block VoidBlock1 completion); /**/ } 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 82d323d47..437f9ccf7 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,10 +54,6 @@ 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:") @@ -70,6 +66,10 @@ public HMAccessorySetupRequest() {} public native String getSuggestedAccessoryName(); @Property(selector = "setSuggestedAccessoryName:") public native void setSuggestedAccessoryName(String v); + @Property(selector = "matterPayload") + public native NSObject getMatterPayload(); + @Property(selector = "setMatterPayload:") + public native void setMatterPayload(NSObject v); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHome.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHome.java index 9574da9ff..49dfb6200 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHome.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHome.java @@ -93,6 +93,16 @@ public native NSArray getActionSets(); @Property(selector = "triggers") public native NSArray getTriggers(); + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "matterControllerID") + public native String getMatterControllerID(); + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "matterControllerXPCConnectBlock") + public native @Block Block0 getMatterControllerXPCConnectBlock(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHomeManager.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHomeManager.java index e045ffa02..0e1d9a38f 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHomeManager.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/homekit/HMHomeManager.java @@ -57,6 +57,10 @@ public HMHomeManager() {} */ @Property(selector = "authorizationStatus") public native HMHomeManagerAuthorizationStatus getAuthorizationStatus(); + /** + * @deprecated Deprecated in iOS 16.1. No longer supported. + */ + @Deprecated @Property(selector = "primaryHome") public native HMHome getPrimaryHome(); @Property(selector = "homes") @@ -64,6 +68,10 @@ public HMHomeManager() {} /**/ /**//**/ /**/ + /** + * @deprecated Deprecated in iOS 16.1. No longer supported. + */ + @Deprecated @Method(selector = "updatePrimaryHome:completionHandler:") public native void updatePrimaryHome(HMHome home, @Block VoidBlock1 completion); @Method(selector = "addHomeWithName:completionHandler:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntent.java new file mode 100644 index 000000000..fb41c5e49 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntent.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**/@Library("Intents") @NativeClass/**/ +/**/public/**/ class /**/INAnswerCallIntent/**/ + extends /**/INIntent/**/ + /**//**/ { + + /**/public static class INAnswerCallIntentPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(INAnswerCallIntent.class); }/**/ + /**//**/ + /**/ + public INAnswerCallIntent() {} + protected INAnswerCallIntent(Handle h, long handle) { super(h, handle); } + protected INAnswerCallIntent(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "initWithAudioRoute:callIdentifier:") + public INAnswerCallIntent(INCallAudioRoute audioRoute, String callIdentifier) { super((SkipInit) null); initObject(init(audioRoute, callIdentifier)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "initWithAudioRoute:callIdentifier:") + protected native @Pointer long init(INCallAudioRoute audioRoute, String callIdentifier); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandling.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandling.java new file mode 100644 index 000000000..8515ca185 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandling.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/INAnswerCallIntentHandling/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "handleAnswerCall:completion:") + void handleAnswerCall(INAnswerCallIntent intent, @Block VoidBlock1 completion); + @Method(selector = "confirmAnswerCall:completion:") + void confirmAnswerCall(INAnswerCallIntent intent, @Block VoidBlock1 completion); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandlingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandlingAdapter.java new file mode 100644 index 000000000..d3e94c464 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentHandlingAdapter.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/INAnswerCallIntentHandlingAdapter/**/ + extends /**/NSObject/**/ + /**/implements INAnswerCallIntentHandling/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("handleAnswerCall:completion:") + public void handleAnswerCall(INAnswerCallIntent intent, @Block VoidBlock1 completion) {} + @NotImplemented("confirmAnswerCall:completion:") + public void confirmAnswerCall(INAnswerCallIntent intent, @Block VoidBlock1 completion) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponse.java new file mode 100644 index 000000000..bc8ba345f --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponse.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**/@Library("Intents") @NativeClass/**/ +/**/public/**/ class /**/INAnswerCallIntentResponse/**/ + extends /**/INIntentResponse/**/ + /**//**/ { + + /**/public static class INAnswerCallIntentResponsePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(INAnswerCallIntentResponse.class); }/**/ + /**//**/ + /**/ + protected INAnswerCallIntentResponse() {} + protected INAnswerCallIntentResponse(Handle h, long handle) { super(h, handle); } + protected INAnswerCallIntentResponse(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCode:userActivity:") + public INAnswerCallIntentResponse(INAnswerCallIntentResponseCode code, NSUserActivity userActivity) { super((SkipInit) null); initObject(init(code, userActivity)); } + /**/ + /**/ + @Property(selector = "code") + public native INAnswerCallIntentResponseCode getCode(); + @Property(selector = "callRecords") + public native NSArray getCallRecords(); + @Property(selector = "setCallRecords:") + public native void setCallRecords(NSArray v); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithCode:userActivity:") + protected native @Pointer long init(INAnswerCallIntentResponseCode code, NSUserActivity userActivity); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponseCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponseCode.java new file mode 100644 index 000000000..b0a37d883 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INAnswerCallIntentResponseCode.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/INAnswerCallIntentResponseCode/**/ implements ValuedEnum { + /**/ + Unspecified(0L), + Ready(1L), + ContinueInApp(2L), + InProgress(3L), + Success(4L), + Failure(5L), + FailureRequiringAppLaunch(6L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/INAnswerCallIntentResponseCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/INAnswerCallIntentResponseCode/**/ valueOf(long n) { + for (/**/INAnswerCallIntentResponseCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/INAnswerCallIntentResponseCode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntent.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntent.java new file mode 100644 index 000000000..7fbed0a0a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntent.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**/@Library("Intents") @NativeClass/**/ +/**/public/**/ class /**/INHangUpCallIntent/**/ + extends /**/INIntent/**/ + /**//**/ { + + /**/public static class INHangUpCallIntentPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(INHangUpCallIntent.class); }/**/ + /**//**/ + /**/ + public INHangUpCallIntent() {} + protected INHangUpCallIntent(Handle h, long handle) { super(h, handle); } + protected INHangUpCallIntent(SkipInit skipInit) { super(skipInit); } + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "initWithCallIdentifier:") + public INHangUpCallIntent(String callIdentifier) { super((SkipInit) null); initObject(init(callIdentifier)); } + /**/ + /**/ + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "initWithCallIdentifier:") + protected native @Pointer long init(String callIdentifier); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandling.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandling.java new file mode 100644 index 000000000..b45201f9a --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandling.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**//**/ +/**/public/**/ interface /**/INHangUpCallIntentHandling/**/ + /**/extends NSObjectProtocol/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**/ + + /**/ + /**/ + @Method(selector = "handleHangUpCall:completion:") + void handleHangUpCall(INHangUpCallIntent intent, @Block VoidBlock1 completion); + @Method(selector = "confirmHangUpCall:completion:") + void confirmHangUpCall(INHangUpCallIntent intent, @Block VoidBlock1 completion); + /**/ + /**/ + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandlingAdapter.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandlingAdapter.java new file mode 100644 index 000000000..b82beaf76 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentHandlingAdapter.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/**/ +/**//**/ +/**/public/**/ class /**/INHangUpCallIntentHandlingAdapter/**/ + extends /**/NSObject/**/ + /**/implements INHangUpCallIntentHandling/**/ { + + /**/ + /**/ + /**/ + /**/ + /**//**/ + /**//**/ + /**/ + + /**/ + /**//**/ + /**/ + @NotImplemented("handleHangUpCall:completion:") + public void handleHangUpCall(INHangUpCallIntent intent, @Block VoidBlock1 completion) {} + @NotImplemented("confirmHangUpCall:completion:") + public void confirmHangUpCall(INHangUpCallIntent intent, @Block VoidBlock1 completion) {} + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponse.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponse.java new file mode 100644 index 000000000..6f7d05e94 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponse.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**/@Library("Intents") @NativeClass/**/ +/**/public/**/ class /**/INHangUpCallIntentResponse/**/ + extends /**/INIntentResponse/**/ + /**//**/ { + + /**/public static class INHangUpCallIntentResponsePtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(INHangUpCallIntentResponse.class); }/**/ + /**//**/ + /**/ + protected INHangUpCallIntentResponse() {} + protected INHangUpCallIntentResponse(Handle h, long handle) { super(h, handle); } + protected INHangUpCallIntentResponse(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCode:userActivity:") + public INHangUpCallIntentResponse(INHangUpCallIntentResponseCode code, NSUserActivity userActivity) { super((SkipInit) null); initObject(init(code, userActivity)); } + /**/ + /**/ + @Property(selector = "code") + public native INHangUpCallIntentResponseCode getCode(); + @Property(selector = "supportsSecureCoding") + public static native boolean supportsSecureCoding(); + /**/ + /**//**/ + /**/ + @Method(selector = "initWithCode:userActivity:") + protected native @Pointer long init(INHangUpCallIntentResponseCode code, NSUserActivity userActivity); + /**/ +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponseCode.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponseCode.java new file mode 100644 index 000000000..e8435d3f5 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INHangUpCallIntentResponseCode.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.intents; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.robovm.rt.bro.*; +import org.robovm.rt.bro.annotation.*; +import org.robovm.rt.bro.ptr.*; +import org.robovm.apple.foundation.*; +import org.robovm.apple.eventkit.*; +import org.robovm.apple.corelocation.*; +import org.robovm.apple.coregraphics.*; +/**/ + +/**/ +/** + * @since Available in iOS 16.2 and later. + */ +/**/ +/**/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/**/ +public enum /**/INHangUpCallIntentResponseCode/**/ implements ValuedEnum { + /**/ + Unspecified(0L), + Ready(1L), + InProgress(2L), + Success(3L), + Failure(4L), + FailureRequiringAppLaunch(5L), + FailureNoCallToHangUp(6L); + /**/ + + /**/ + /**/ + /**//**/ + /**//**/ + + private final long n; + + private /**/INHangUpCallIntentResponseCode/**/(long n) { this.n = n; } + public long value() { return n; } + public static /**/INHangUpCallIntentResponseCode/**/ valueOf(long n) { + for (/**/INHangUpCallIntentResponseCode/**/ v : values()) { + if (v.n == n) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + n + " found in " + + /**/INHangUpCallIntentResponseCode/**/.class.getName()); + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INIntentIdentifiers.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INIntentIdentifiers.java index ad68e5d76..98f937ec4 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INIntentIdentifiers.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/intents/INIntentIdentifiers.java @@ -72,6 +72,16 @@ */ @GlobalValue(symbol="INStartCallIntentIdentifier", optional=true) public static native String StartCall(); + /** + * @since Available in iOS 16.2 and later. + */ + @GlobalValue(symbol="INAnswerCallIntentIdentifier", optional=true) + public static native String AnswerCall(); + /** + * @since Available in iOS 16.2 and later. + */ + @GlobalValue(symbol="INHangUpCallIntentIdentifier", optional=true) + public static native String HangUpCall(); /** * @since Available in iOS 10.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDataType.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDataType.java index b2e6bf953..7d06dfad5 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDataType.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDataType.java @@ -54,6 +54,18 @@ public enum /**/MPSDataType/**/ implements ValuedEnum { * @since Available in iOS 11.0 and later. */ Float16(268435472L), + /** + * @since Available in iOS 16.2 and later. + */ + ComplexBit(16777216L), + /** + * @since Available in iOS 16.2 and later. + */ + ComplexFloat32(285212736L), + /** + * @since Available in iOS 16.2 and later. + */ + ComplexFloat16(285212704L), /** * @since Available in iOS 10.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDeviceCapsValues.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDeviceCapsValues.java index bb5d795d8..fb3b03689 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDeviceCapsValues.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/metalps/MPSDeviceCapsValues.java @@ -49,7 +49,9 @@ public enum /**/MPSDeviceCapsValues/**/ implements ValuedEnum { DeviceSupportsFloat32Filtering(128L), DeviceSupportsNorm16BicubicFiltering(256L), DeviceSupportsFloat16BicubicFiltering(512L), - DeviceIsAppleDevice(1024L); + DeviceIsAppleDevice(1024L), + DeviceSupportsSimdShuffleAndFill(2048L), + DeviceCapsLast(4096L); /**/ /**/ 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 d71104b8a..72b0705f9 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 @@ -187,6 +187,16 @@ public MPSGraph() {} */ @Method(selector = "truncateWithTensor:name:") public native MPSGraphTensor truncate(MPSGraphTensor tensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwiseNOTWithTensor:name:") + public native MPSGraphTensor bitwiseNOT(MPSGraphTensor tensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwisePopulationCountWithTensor:name:") + public native MPSGraphTensor bitwisePopulationCount(MPSGraphTensor tensor, String name); @Method(selector = "additionWithPrimaryTensor:secondaryTensor:name:") public native MPSGraphTensor addition(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); @Method(selector = "subtractionWithPrimaryTensor:secondaryTensor:name:") @@ -239,6 +249,31 @@ public MPSGraph() {} public native MPSGraphTensor logicalXNOR(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); @Method(selector = "atan2WithPrimaryTensor:secondaryTensor:name:") public native MPSGraphTensor atan2(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwiseANDWithPrimaryTensor:secondaryTensor:name:") + public native MPSGraphTensor bitwiseAND(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwiseORWithPrimaryTensor:secondaryTensor:name:") + public native MPSGraphTensor bitwiseOR(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwiseXORWithPrimaryTensor:secondaryTensor:name:") + public native MPSGraphTensor bitwiseXOR(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwiseLeftShiftWithPrimaryTensor:secondaryTensor:name:") + public native MPSGraphTensor bitwiseLeftShift(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "bitwiseRightShiftWithPrimaryTensor:secondaryTensor:name:") + public native MPSGraphTensor bitwiseRightShift(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); @Method(selector = "selectWithPredicateTensor:truePredicateTensor:falsePredicateTensor:name:") public native MPSGraphTensor select(MPSGraphTensor predicateTensor, MPSGraphTensor truePredicateTensor, MPSGraphTensor falseSelectTensor, String name); @Method(selector = "clampWithTensor:minValueTensor:maxValueTensor:name:") @@ -414,6 +449,11 @@ public MPSGraph() {} public native MPSGraphTensor softMaxCrossEntropy(MPSGraphTensor sourceTensor, MPSGraphTensor labelsTensor, @MachineSizedSInt long axis, MPSGraphLossReductionType reductionType, String name); @Method(selector = "softMaxCrossEntropyGradientWithIncomingGradientTensor:sourceTensor:labelsTensor:axis:reductionType:name:") public native MPSGraphTensor softMaxCrossEntropyGradient(MPSGraphTensor gradientTensor, MPSGraphTensor sourceTensor, MPSGraphTensor labelsTensor, @MachineSizedSInt long axis, MPSGraphLossReductionType reductionType, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "inverseOfTensor:name:") + public native MPSGraphTensor inverseOfTensor(MPSGraphTensor inputTensor, String name); @Method(selector = "matrixMultiplicationWithPrimaryTensor:secondaryTensor:name:") public native MPSGraphTensor matrixMultiplication(MPSGraphTensor primaryTensor, MPSGraphTensor secondaryTensor, String name); /** @@ -421,16 +461,6 @@ public MPSGraph() {} */ @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. - */ - @Method(selector = "sparseTensorWithType:tensors:shape:dataType:name:") - public native MPSGraphTensor sparseTensor(MPSGraphSparseStorageType sparseStorageType, NSArray inputTensorArray, NSArray shape, MPSDataType dataType, String name); - /** - * @since Available in iOS 15.0 and later. - */ - @Method(selector = "sparseTensorWithDescriptor:tensors:shape:name:") - public native MPSGraphTensor sparseTensor(MPSGraphCreateSparseOpDescriptor sparseDescriptor, NSArray inputTensorArray, NSArray shape, String name); @Method(selector = "placeholderWithShape:dataType:name:") public native MPSGraphTensor placeholder(NSArray shape, MPSDataType dataType, String name); @Method(selector = "placeholderWithShape:name:") @@ -537,6 +567,36 @@ public MPSGraph() {} */ @Method(selector = "L2NormPooling4DGradientWithGradientTensor:sourceTensor:descriptor:name:") public native MPSGraphTensor L2NormPooling4DGradient(MPSGraphTensor gradient, MPSGraphTensor source, MPSGraphPooling4DOpDescriptor descriptor, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "quantizeTensor:scale:zeroPoint:dataType:name:") + public native MPSGraphTensor quantizeTensor(MPSGraphTensor tensor, double scale, double zeroPoint, MPSDataType dataType, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "dequantizeTensor:scale:zeroPoint:dataType:name:") + public native MPSGraphTensor dequantizeTensor(MPSGraphTensor tensor, double scale, double zeroPoint, MPSDataType dataType, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "quantizeTensor:scaleTensor:zeroPoint:dataType:axis:name:") + public native MPSGraphTensor quantizeTensor(MPSGraphTensor tensor, MPSGraphTensor scaleTensor, double zeroPoint, MPSDataType dataType, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "dequantizeTensor:scaleTensor:zeroPoint:dataType:axis:name:") + public native MPSGraphTensor dequantizeTensor(MPSGraphTensor tensor, MPSGraphTensor scaleTensor, double zeroPoint, MPSDataType dataType, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "quantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name:") + public native MPSGraphTensor quantizeTensor(MPSGraphTensor tensor, MPSGraphTensor scaleTensor, MPSGraphTensor zeroPointTensor, MPSDataType dataType, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "dequantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name:") + public native MPSGraphTensor dequantizeTensor(MPSGraphTensor tensor, MPSGraphTensor scaleTensor, MPSGraphTensor zeroPointTensor, MPSDataType dataType, @MachineSizedSInt long axis, String name); @Method(selector = "randomPhiloxStateTensorWithSeed:name:") public native MPSGraphTensor randomPhiloxStateTensor(@MachineSizedUInt long seed, String name); @Method(selector = "randomPhiloxStateTensorWithCounterLow:counterHigh:key:name:") @@ -782,6 +842,16 @@ public MPSGraph() {} */ @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); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name:") + public native MPSGraphTensor sampleGrid(MPSGraphTensor source, MPSGraphTensor coordinates, MPSGraphTensorNamedDataLayout layout, boolean normalizeCoordinates, boolean relativeCoordinates, boolean alignCorners, MPSGraphPaddingMode paddingMode, MPSGraphResizeMode samplingMode, double constantValue, String name); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name:") + public native MPSGraphTensor sampleGrid(MPSGraphTensor source, MPSGraphTensor coordinates, MPSGraphTensorNamedDataLayout layout, boolean normalizeCoordinates, boolean relativeCoordinates, boolean alignCorners, MPSGraphPaddingMode paddingMode, MPSGraphResizeNearestRoundingMode nearestRoundingMode, double constantValue, 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:") @@ -841,6 +911,36 @@ public MPSGraph() {} */ @Method(selector = "sortWithTensor:axisTensor:name:") public native MPSGraphTensor sort(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "argSortWithTensor:axis:descending:name:") + public native MPSGraphTensor argSort(MPSGraphTensor tensor, @MachineSizedSInt long axis, boolean descending, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "argSortWithTensor:axisTensor:descending:name:") + public native MPSGraphTensor argSort(MPSGraphTensor tensor, MPSGraphTensor axisTensor, boolean descending, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "argSortWithTensor:axis:name:") + public native MPSGraphTensor argSort(MPSGraphTensor tensor, @MachineSizedSInt long axis, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "argSortWithTensor:axisTensor:name:") + public native MPSGraphTensor argSort(MPSGraphTensor tensor, MPSGraphTensor axisTensor, String name); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "sparseTensorWithType:tensors:shape:dataType:name:") + public native MPSGraphTensor sparseTensor(MPSGraphSparseStorageType sparseStorageType, NSArray inputTensorArray, NSArray shape, MPSDataType dataType, String name); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "sparseTensorWithDescriptor:tensors:shape:name:") + public native MPSGraphTensor sparseTensor(MPSGraphCreateSparseOpDescriptor sparseDescriptor, NSArray inputTensorArray, NSArray shape, 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:") @@ -881,26 +981,46 @@ public MPSGraph() {} public native MPSGraphTensor padTensor(MPSGraphTensor tensor, MPSGraphPaddingMode paddingMode, NSArray leftPadding, NSArray rightPadding, double constantValue, String name); @Method(selector = "padGradientWithIncomingGradientTensor:sourceTensor:paddingMode:leftPadding:rightPadding:name:") public native MPSGraphTensor padGradient(MPSGraphTensor incomingGradientTensor, MPSGraphTensor sourceTensor, MPSGraphPaddingMode paddingMode, NSArray leftPadding, NSArray rightPadding, String name); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:") + public native MPSGraphTensor spaceToDepth2DTensor(MPSGraphTensor tensor, @MachineSizedUInt long widthAxis, @MachineSizedUInt long heightAxis, @MachineSizedUInt long depthAxis, @MachineSizedUInt long blockSize, boolean usePixelShuffleOrder, String name); /** * @since Available in iOS 15.0 and later. */ @Method(selector = "spaceToDepth2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:") public native MPSGraphTensor spaceToDepth2DTensor(MPSGraphTensor tensor, MPSGraphTensor widthAxisTensor, MPSGraphTensor heightAxisTensor, MPSGraphTensor depthAxisTensor, @MachineSizedUInt long blockSize, boolean usePixelShuffleOrder, String name); + /** + * @since Available in iOS 15.0 and later. + */ + @Method(selector = "depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:") + public native MPSGraphTensor depthToSpace2DTensor(MPSGraphTensor tensor, @MachineSizedUInt long widthAxis, @MachineSizedUInt long heightAxis, @MachineSizedUInt long depthAxis, @MachineSizedUInt long blockSize, boolean usePixelShuffleOrder, String name); /** * @since Available in iOS 15.0 and later. */ @Method(selector = "depthToSpace2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:") public native MPSGraphTensor depthToSpace2DTensor(MPSGraphTensor tensor, MPSGraphTensor widthAxisTensor, MPSGraphTensor heightAxisTensor, MPSGraphTensor depthAxisTensor, @MachineSizedUInt long blockSize, boolean usePixelShuffleOrder, String name); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 16.1 and later. */ - @Method(selector = "spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:") - public native MPSGraphTensor spaceToDepth2DTensor(MPSGraphTensor tensor, @MachineSizedUInt long widthAxis, @MachineSizedUInt long heightAxis, @MachineSizedUInt long depthAxis, @MachineSizedUInt long blockSize, boolean usePixelShuffleOrder, String name); + @Method(selector = "spaceToBatchTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:") + public native MPSGraphTensor spaceToBatch(MPSGraphTensor tensor, NSArray spatialAxes, @MachineSizedSInt long batchAxis, NSArray blockDimensions, boolean usePixelShuffleOrder, String name); /** - * @since Available in iOS 15.0 and later. + * @since Available in iOS 16.1 and later. */ - @Method(selector = "depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:") - public native MPSGraphTensor depthToSpace2DTensor(MPSGraphTensor tensor, @MachineSizedUInt long widthAxis, @MachineSizedUInt long heightAxis, @MachineSizedUInt long depthAxis, @MachineSizedUInt long blockSize, boolean usePixelShuffleOrder, String name); + @Method(selector = "spaceToBatchTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:") + public native MPSGraphTensor spaceToBatch(MPSGraphTensor tensor, MPSGraphTensor spatialAxesTensor, MPSGraphTensor batchAxisTensor, MPSGraphTensor blockDimensionsTensor, boolean usePixelShuffleOrder, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "batchToSpaceTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:") + public native MPSGraphTensor batchToSpace(MPSGraphTensor tensor, NSArray spatialAxes, @MachineSizedSInt long batchAxis, NSArray blockDimensions, boolean usePixelShuffleOrder, String name); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "batchToSpaceTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:") + public native MPSGraphTensor batchToSpace(MPSGraphTensor tensor, MPSGraphTensor spatialAxesTensor, MPSGraphTensor batchAxisTensor, MPSGraphTensor blockDimensionsTensor, boolean usePixelShuffleOrder, String name); /** * @since Available in iOS 15.0 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRApplicationUsage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRApplicationUsage.java index cb535119d..d5387242d 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRApplicationUsage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRApplicationUsage.java @@ -63,6 +63,11 @@ public SRApplicationUsage() {} */ @Property(selector = "textInputSessions") public native NSArray getTextInputSessions(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "supplementalCategories") + public native NSArray getSupplementalCategories(); /**/ /**//**/ /**/ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRKeyboardMetrics.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRKeyboardMetrics.java index 90be36d01..664e99dac 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRKeyboardMetrics.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRKeyboardMetrics.java @@ -128,6 +128,11 @@ public SRKeyboardMetrics() {} public native SRKeyboardProbabilityMetric getShortWordCharKeyTouchDownUp(); @Property(selector = "touchDownDown") public native SRKeyboardProbabilityMetric getTouchDownDown(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "touchUpDown") + public native SRKeyboardProbabilityMetric getTouchUpDown(); @Property(selector = "charKeyToPrediction") public native SRKeyboardProbabilityMetric getCharKeyToPrediction(); @Property(selector = "shortWordCharKeyToCharKey") @@ -190,6 +195,11 @@ public SRKeyboardMetrics() {} public native NSArray getLongWordTouchDownUp(); @Property(selector = "longWordTouchDownDown") public native NSArray getLongWordTouchDownDown(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "longWordTouchUpDown") + public native NSArray getLongWordTouchUpDown(); @Property(selector = "deleteToDeletes") public native NSArray getDeleteToDeletes(); @Property(selector = "totalPauses") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRSupplementalCategory.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRSupplementalCategory.java new file mode 100644 index 000000000..f15e664c3 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/sensorkit/SRSupplementalCategory.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.sensorkit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.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("SensorKit") @NativeClass/**/ +/**/public/**/ class /**/SRSupplementalCategory/**/ + extends /**/NSObject/**/ + /**/implements NSSecureCoding/**/ { + + /**/public static class SRSupplementalCategoryPtr extends Ptr {}/**/ + /**/static { ObjCRuntime.bind(SRSupplementalCategory.class); }/**/ + /**//**/ + /**/ + protected SRSupplementalCategory() {} + protected SRSupplementalCategory(Handle h, long handle) { super(h, handle); } + protected SRSupplementalCategory(SkipInit skipInit) { super(skipInit); } + @Method(selector = "initWithCoder:") + public SRSupplementalCategory(NSCoder coder) { super((SkipInit) null); initObject(init(coder)); } + /**/ + /**/ + @Property(selector = "identifier") + public native String getIdentifier(); + @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/storekit/SKAdImpression.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdImpression.java index 38a8b90a6..fb4cbd853 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 @@ -72,6 +72,16 @@ public SKAdImpression() {} public native NSNumber getAdCampaignIdentifier(); @Property(selector = "setAdCampaignIdentifier:") public native void setAdCampaignIdentifier(NSNumber v); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "sourceIdentifier") + public native NSNumber getSourceIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @Property(selector = "setSourceIdentifier:") + public native void setSourceIdentifier(NSNumber v); @Property(selector = "adImpressionIdentifier") public native String getAdImpressionIdentifier(); @Property(selector = "setAdImpressionIdentifier:") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetwork.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetwork.java index 9b8fbea88..4bf81b668 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetwork.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetwork.java @@ -84,5 +84,15 @@ public SKAdNetwork() {} */ @Method(selector = "updatePostbackConversionValue:completionHandler:") public static native void updatePostbackConversionValue(@MachineSizedSInt long conversionValue, @Block VoidBlock1 completion); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "updatePostbackConversionValue:coarseValue:completionHandler:") + public static native void updatePostbackConversionValue(@MachineSizedSInt long fineValue, SKAdNetworkCoarseConversionValue coarseValue, @Block VoidBlock1 completion); + /** + * @since Available in iOS 16.1 and later. + */ + @Method(selector = "updatePostbackConversionValue:coarseValue:lockWindow:completionHandler:") + public static native void updatePostbackConversionValue(@MachineSizedSInt long fineValue, SKAdNetworkCoarseConversionValue coarseValue, boolean lockWindow, @Block VoidBlock1 completion); /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetworkCoarseConversionValue.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetworkCoarseConversionValue.java new file mode 100644 index 000000000..6f6e386d7 --- /dev/null +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKAdNetworkCoarseConversionValue.java @@ -0,0 +1,146 @@ +/* + * Copyright (C) 2013-2015 RoboVM AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.robovm.apple.storekit; + +/**/ +import java.io.*; +import java.nio.*; +import java.util.*; +import org.robovm.objc.*; +import org.robovm.objc.annotation.*; +import org.robovm.objc.block.*; +import org.robovm.rt.*; +import org.robovm.rt.annotation.*; +import org.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.*; +/**/ + +/**/ +/**/ +/**/@Library("StoreKit") @StronglyLinked/**/ +@Marshaler(/**/SKAdNetworkCoarseConversionValue/**/.Marshaler.class) +/**/public/**/ class /**/SKAdNetworkCoarseConversionValue/**/ + extends /**/GlobalValueEnumeration/**/ + /**//**/ { + + static { Bro.bind(/**/SKAdNetworkCoarseConversionValue/**/.class); } + + /**/ + public static class Marshaler { + @MarshalsPointer + public static SKAdNetworkCoarseConversionValue toObject(Class cls, long handle, long flags) { + NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); + if (o == null) { + return null; + } + return SKAdNetworkCoarseConversionValue.valueOf(o); + } + @MarshalsPointer + public static long toNative(SKAdNetworkCoarseConversionValue 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(SKAdNetworkCoarseConversionValue.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 (SKAdNetworkCoarseConversionValue o : l) { + array.add(o.value()); + } + return NSObject.Marshaler.toNative(array, flags); + } + } + /**/ + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + public static final SKAdNetworkCoarseConversionValue High = new SKAdNetworkCoarseConversionValue("High"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final SKAdNetworkCoarseConversionValue Medium = new SKAdNetworkCoarseConversionValue("Medium"); + /** + * @since Available in iOS 16.0 and later. + */ + public static final SKAdNetworkCoarseConversionValue Low = new SKAdNetworkCoarseConversionValue("Low"); + /**/ + + private static /**/SKAdNetworkCoarseConversionValue/**/[] values = new /**/SKAdNetworkCoarseConversionValue/**/[] {/**/High, Medium, Low/**/}; + + /**/SKAdNetworkCoarseConversionValue/**/ (String getterName) { + super(Values.class, getterName); + } + + public static /**/SKAdNetworkCoarseConversionValue/**/ valueOf(/**/NSString/**/ value) { + for (/**/SKAdNetworkCoarseConversionValue/**/ v : values) { + if (v.value().equals(value)) { + return v; + } + } + throw new IllegalArgumentException("No constant with value " + value + " found in " + + /**/SKAdNetworkCoarseConversionValue/**/.class.getName()); + } + + /**//**/ + + /**/@Library("StoreKit") @StronglyLinked/**/ + public static class Values { + static { Bro.bind(Values.class); } + + /**/ + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SKAdNetworkCoarseConversionValueHigh", optional=true) + public static native NSString High(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SKAdNetworkCoarseConversionValueMedium", optional=true) + public static native NSString Medium(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SKAdNetworkCoarseConversionValueLow", optional=true) + public static native NSString Low(); + /**/ + } +} diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductParameters.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductParameters.java index 5c60cdcaa..9aca2252b 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductParameters.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/storekit/SKStoreProductParameters.java @@ -174,6 +174,11 @@ public static class Keys { */ @GlobalValue(symbol="SKStoreProductParameterAdNetworkCampaignIdentifier", optional=true) public static native NSString AdNetworkCampaignIdentifier(); + /** + * @since Available in iOS 16.0 and later. + */ + @GlobalValue(symbol="SKStoreProductParameterAdNetworkSourceIdentifier", optional=true) + public static native NSString AdNetworkSourceIdentifier(); /** * @since Available in iOS 11.3 and later. */ diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextStorage.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextStorage.java index 857567a41..1b3249cfa 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextStorage.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/NSTextStorage.java @@ -108,6 +108,10 @@ public NSTextStorage() {} public native void setTextStorageObserver(NSTextStorageObserving 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(); /**/ /**//**/ /**/ @@ -128,5 +132,15 @@ public NSTextStorage() {} public native void invalidateAttributes(@ByVal NSRange range); @Method(selector = "ensureAttributesAreFixedInRange:") public native void ensureAttributesAreFixed(@ByVal NSRange range); + public static NSTextStorage createProviderDataObject(NSData data, String typeIdentifier) throws NSErrorException { + NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); + NSTextStorage result = createProviderDataObject(data, typeIdentifier, ptr); + if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } + return result; + } + @Method(selector = "objectWithItemProviderData:typeIdentifier:error:") + private static native NSTextStorage createProviderDataObject(NSData data, String typeIdentifier, NSError.NSErrorPtr outError); + @Method(selector = "itemProviderVisibilityForRepresentationWithTypeIdentifier:") + public static native NSItemProviderRepresentationVisibility getItemProviderVisibility0(String typeIdentifier); /**/ } 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 index 264062065..74886dcd8 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegate.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegate.java @@ -61,6 +61,11 @@ /**/ @Method(selector = "calendarView:decorationForDateComponents:") UICalendarViewDecoration getDecoration(UICalendarView calendarView, NSDateComponents dateComponents); + /** + * @since Available in iOS 16.2 and later. + */ + @Method(selector = "calendarView:didChangeVisibleDateComponentsFrom:") + void didChangeVisibleDateComponents(UICalendarView calendarView, NSDateComponents previousDateComponents); /**/ /**/ /**/ 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 index 29f91a082..35fb47c7c 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegateAdapter.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UICalendarViewDelegateAdapter.java @@ -61,5 +61,10 @@ /**/ @NotImplemented("calendarView:decorationForDateComponents:") public UICalendarViewDecoration getDecoration(UICalendarView calendarView, NSDateComponents dateComponents) { return null; } + /** + * @since Available in iOS 16.2 and later. + */ + @NotImplemented("calendarView:didChangeVisibleDateComponentsFrom:") + public void didChangeVisibleDateComponents(UICalendarView calendarView, NSDateComponents previousDateComponents) {} /**/ } diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIHoverGestureRecognizer.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIHoverGestureRecognizer.java index 3d2a184c9..0356a1ddd 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIHoverGestureRecognizer.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/uikit/UIHoverGestureRecognizer.java @@ -64,7 +64,11 @@ public UIHoverGestureRecognizer() {} public UIHoverGestureRecognizer(NSCoder coder) { super(coder); } /**/ /**/ - + /** + * @since Available in iOS 16.1 and later. + */ + @Property(selector = "zOffset") + public native @MachineSizedFloat double getZOffset(); /**/ /**//**/ /**/ 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..07f0a1c65 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 @@ -136,8 +136,14 @@ public UILabel() {} */ @Property(selector = "setAllowsDefaultTighteningForTruncation:") public native void setAllowsDefaultTighteningForTruncation(boolean v); + /** + * @since Available in iOS 14.0 and later. + */ @Property(selector = "lineBreakStrategy") public native NSLineBreakStrategy getLineBreakStrategy(); + /** + * @since Available in iOS 14.0 and later. + */ @Property(selector = "setLineBreakStrategy:") public native void setLineBreakStrategy(NSLineBreakStrategy v); @Property(selector = "preferredMaxLayoutWidth") diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/widgetkit/WGWidget.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/widgetkit/WGWidget.java index 29645f1b6..b8e4bd752 100644 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/widgetkit/WGWidget.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/widgetkit/WGWidget.java @@ -53,6 +53,8 @@ public static class UserInfoKeys { public static native NSString Kind(); @GlobalValue(symbol="WGWidgetUserInfoKeyFamily", optional=true) public static native NSString Family(); + @GlobalValue(symbol="WGWidgetUserInfoKeyActivityID", optional=true) + public static native NSString ActivityID(); } /**/ }