Skip to content

Commit

Permalink
* ios16 bindings: picked MacCatalyst apis
Browse files Browse the repository at this point in the history
  • Loading branch information
dkimitsa committed Sep 25, 2022
1 parent 6c5c3d4 commit 205b7ef
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/cocoatouch/src/main/bro-gen/corespotlight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enums:
CSIndexErrorCode: { nserror: true} #since 9.0
CSSearchQueryErrorCode: { nserror: true } #since 10.0
CSSuggestionKind: {}

CSSearchQuerySourceOptions: {}
classes:
CSCustomAttributeKey: #since 9.0
methods:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ protected ARSCNFaceGeometry() {}
protected static native @Pointer long create(MTLDevice device);
@Method(selector = "faceGeometryWithDevice:fillMesh:")
protected static native @Pointer long create(MTLDevice device, boolean fillMesh);
@Method(selector = "geometry")
public static native ARSCNFaceGeometry createGeometry();
@Method(selector = "geometryWithSources:elements:")
public static native ARSCNFaceGeometry createGeometry(NSArray<SCNGeometrySource> sources, NSArray<SCNGeometryElement> elements);
/*</methods>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public ARSCNPlaneGeometry() {}
public native void updateFromPlaneGeometry(ARPlaneGeometry planeGeometry);
@Method(selector = "planeGeometryWithDevice:")
protected static native @Pointer long create(MTLDevice device);
@Method(selector = "geometry")
public static native ARSCNPlaneGeometry createGeometry();
@Method(selector = "geometryWithSources:elements:")
public static native ARSCNPlaneGeometry createGeometry(NSArray<SCNGeometrySource> sources, NSArray<SCNGeometryElement> elements);
/*</methods>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,27 @@
/*<bind>*/
/*</bind>*/
/*<constants>*//*</constants>*/
/*<properties>*//*</properties>*/
/*<methods>*//*</methods>*/
/*<properties>*/

/*</properties>*/
/*<methods>*/
@Method(selector = "audioPlayerDidFinishPlaying:successfully:")
void didFinishPlaying(AVAudioPlayer player, boolean flag);
@Method(selector = "audioPlayerDecodeErrorDidOccur:error:")
void decodeErrorDidOccur(AVAudioPlayer player, NSError error);
/**
* @deprecated Deprecated in iOS 8.0.
*/
@Deprecated
@Method(selector = "audioPlayerBeginInterruption:")
void beginInterruption(AVAudioPlayer player);
/**
* @deprecated Deprecated in iOS 8.0.
*/
@Deprecated
@Method(selector = "audioPlayerEndInterruption:withOptions:")
void endInterruption(AVAudioPlayer player, @MachineSizedUInt long flags);
/*</methods>*/
/*<adapter>*/
/*</adapter>*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
import org.robovm.apple.corevideo.*;
import org.robovm.apple.mediatoolbox.*;
import org.robovm.apple.audiotoolbox.*;
import org.robovm.apple.coremidi.*;
import org.robovm.apple.uikit.*;
/*</imports>*/

/*<javadoc>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@
*/
@Property(selector = "isCameraCalibrationDataDeliverySupported")
public native boolean isCameraCalibrationDataDeliverySupported();
@Property(selector = "supportedFlashModes")
public native NSArray<NSNumber> getSupportedFlashModes();
/**
* @since Available in iOS 12.0 and later.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public AVCapturePhotoSettings() {}
*/
@Property(selector = "rawFileType")
public native String getRawFileType();
@Property(selector = "flashMode")
public native AVCaptureFlashMode getFlashMode();
@Property(selector = "setFlashMode:")
public native void setFlashMode(AVCaptureFlashMode v);
/**
* @since Available in iOS 12.0 and later.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ public CLLocationManager() {}
*/
@Method(selector = "requestTemporaryFullAccuracyAuthorizationWithPurposeKey:")
public native void requestTemporaryFullAccuracyAuthorization(String purposeKey);
@Method(selector = "startUpdatingLocation")
public native void startUpdatingLocation();
@Method(selector = "stopUpdatingLocation")
public native void stopUpdatingLocation();
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public CSSearchQueryContext() {}
public native String getKeyboardLanguage();
@Property(selector = "setKeyboardLanguage:")
public native void setKeyboardLanguage(String v);
@Property(selector = "sourceOptions")
public native CSSearchQuerySourceOptions getSourceOptions();
@Property(selector = "setSourceOptions:")
public native void setSourceOptions(CSSearchQuerySourceOptions v);
@Property(selector = "supportsSecureCoding")
public static native boolean supportsSecureCoding();
/*</properties>*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.corespotlight;

/*<imports>*/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.uniformtypeid.*;
/*</imports>*/

/*<javadoc>*/

/*</javadoc>*/
/*<annotations>*/@Marshaler(Bits.AsMachineSizedIntMarshaler.class)/*</annotations>*/
public final class /*<name>*/CSSearchQuerySourceOptions/*</name>*/ extends Bits</*<name>*/CSSearchQuerySourceOptions/*</name>*/> {
/*<values>*/
public static final CSSearchQuerySourceOptions None = new CSSearchQuerySourceOptions(0L);
public static final CSSearchQuerySourceOptions Default = new CSSearchQuerySourceOptions(0L);
public static final CSSearchQuerySourceOptions AllowMail = new CSSearchQuerySourceOptions(1L);
/*</values>*/

/*<bind>*/
/*</bind>*/
/*<constants>*//*</constants>*/
/*<methods>*//*</methods>*/

private static final /*<name>*/CSSearchQuerySourceOptions/*</name>*/[] values = _values(/*<name>*/CSSearchQuerySourceOptions/*</name>*/.class);

public /*<name>*/CSSearchQuerySourceOptions/*</name>*/(long value) { super(value); }
private /*<name>*/CSSearchQuerySourceOptions/*</name>*/(long value, long mask) { super(value, mask); }
protected /*<name>*/CSSearchQuerySourceOptions/*</name>*/ wrap(long value, long mask) {
return new /*<name>*/CSSearchQuerySourceOptions/*</name>*/(value, mask);
}
protected /*<name>*/CSSearchQuerySourceOptions/*</name>*/[] _values() {
return values;
}
public static /*<name>*/CSSearchQuerySourceOptions/*</name>*/[] values() {
return values.clone();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public final class /*<name>*/CTFontOptions/*</name>*/ extends Bits</*<name>*/CTF
public static final CTFontOptions None = new CTFontOptions(0L);
public static final CTFontOptions Default = new CTFontOptions(0L);
public static final CTFontOptions PreventAutoActivation = new CTFontOptions(1L);
public static final CTFontOptions PreventAutoDownload = new CTFontOptions(2L);
public static final CTFontOptions PreferSystemFont = new CTFontOptions(4L);
/*</values>*/

Expand Down

0 comments on commit 205b7ef

Please sign in to comment.