-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CoreHaptics] Add support for Xcode13 beta1. #11963
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -349,6 +349,10 @@ partial interface CHHapticPatternDefinitionKeys { | |
|
||
[Field ("CHHapticPatternKeyParameterCurveControlPoints")] | ||
NSString ParameterCurveControlPointsKey { get; } | ||
|
||
[TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] | ||
[Field ("CHHapticPatternKeyEventWaveformUseVolumeEnvelope")] | ||
NSString EventWaveformUseVolumeEnvelopeKey { get; } | ||
} | ||
|
||
[Mac (10,15), iOS (13,0), TV (14, 0)] | ||
|
@@ -373,6 +377,9 @@ partial interface CHHapticPatternDefinition { | |
NSObject WeakParameterCurve { get; set; } | ||
[Export ("ParameterCurveControlPointsKey")] | ||
NSObject WeakParameterCurveControlPoints { get; set; } | ||
[Advice ("The default value is true.")] | ||
[TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] | ||
bool EventWaveformUseVolumeEnvelope { get; set; } | ||
} | ||
|
||
[Mac (10,15), iOS (13,0), TV (14, 0)] | ||
|
@@ -403,4 +410,20 @@ interface CHHapticPattern { | |
[return: NullAllowed] | ||
CHHapticPatternDefinition Export ([NullAllowed] out NSError outError); | ||
} | ||
} | ||
|
||
[Static] | ||
[Internal] | ||
[Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] | ||
partial interface CHHapticAudioResourceKeys { | ||
[Field ("CHHapticAudioResourceKeyUseVolumeEnvelope")] | ||
NSString UseVolumeEnvelopeKey { get; } | ||
} | ||
|
||
[Mac (12,0), iOS (15,0), TV (15,0), MacCatalyst (15,0), NoWatch] | ||
[StrongDictionary ("CHHapticAudioResourceKeys")] | ||
partial interface CHHapticAudioResourceDefinition { | ||
[Advice ("The default value is true.")] | ||
bool UseVolumeEnvelope { get; set; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above, better use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this is backed by a NSDictionary, AFAIK if they do nothing, the key should not be added. But We can do a bool? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. error BI1033: bgen: Limitation: can not automatically create strongly typed dictionary for (System.Nullable`1[System.Boolean]) the value type of the CoreHaptics.CHHapticPatternDefinition.EventWaveformUseVolumeEnvelope property There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm... is that not a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dalexsoto why are we not able to do nullable? Do we need to fix that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please leave your message after the tone. beep... Yeah docs says nothing about nullable types so probably are not supported. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already supported as per the API diff: public class CHHapticAudioResourceDefinition : Foundation.DictionaryContainer {
// constructors
public CHHapticAudioResourceDefinition ();
public CHHapticAudioResourceDefinition (Foundation.NSDictionary dictionary);
// properties
public bool? UseVolumeEnvelope { get; set; }
} |
||
} | ||
|
||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm... is this only used as an output ?
because if it's an output then, when created, the value will be
false
This can be bound as
bool?
if the default can (or should) be ignoreThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to copy the availability
[TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
since this is the public API developers will be using (they keys being
internal
)