[CoreHaptics] Add support for Xcode13 beta1. (#11963)
This commit is contained in:
Родитель
0ecf405464
Коммит
85ce924296
|
@ -112,6 +112,7 @@ namespace CoreHaptics {
|
||||||
InvalidPatternData = -4813,
|
InvalidPatternData = -4813,
|
||||||
InvalidPatternDictionary = -4814,
|
InvalidPatternDictionary = -4814,
|
||||||
InvalidAudioSession = -4815,
|
InvalidAudioSession = -4815,
|
||||||
|
InvalidEngineParameter = -4816,
|
||||||
InvalidParameterType = -4820,
|
InvalidParameterType = -4820,
|
||||||
InvalidEventType = -4821,
|
InvalidEventType = -4821,
|
||||||
InvalidEventTime = -4822,
|
InvalidEventTime = -4822,
|
||||||
|
@ -121,6 +122,8 @@ namespace CoreHaptics {
|
||||||
BadEventEntry = -4830,
|
BadEventEntry = -4830,
|
||||||
BadParameterEntry = -4831,
|
BadParameterEntry = -4831,
|
||||||
InvalidTime = -4840,
|
InvalidTime = -4840,
|
||||||
|
FileNotFound = -4851,
|
||||||
|
InsufficientPower = -4897,
|
||||||
UnknownError = -4898,
|
UnknownError = -4898,
|
||||||
MemoryError = -4899,
|
MemoryError = -4899,
|
||||||
}
|
}
|
||||||
|
@ -145,4 +148,4 @@ namespace CoreHaptics {
|
||||||
GameControllerDisconnect = 6,
|
GameControllerDisconnect = 6,
|
||||||
SystemError = -1,
|
SystemError = -1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,6 +349,10 @@ namespace CoreHaptics {
|
||||||
|
|
||||||
[Field ("CHHapticPatternKeyParameterCurveControlPoints")]
|
[Field ("CHHapticPatternKeyParameterCurveControlPoints")]
|
||||||
NSString ParameterCurveControlPointsKey { get; }
|
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)]
|
[Mac (10,15), iOS (13,0), TV (14, 0)]
|
||||||
|
@ -373,6 +377,9 @@ namespace CoreHaptics {
|
||||||
NSObject WeakParameterCurve { get; set; }
|
NSObject WeakParameterCurve { get; set; }
|
||||||
[Export ("ParameterCurveControlPointsKey")]
|
[Export ("ParameterCurveControlPointsKey")]
|
||||||
NSObject WeakParameterCurveControlPoints { get; set; }
|
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)]
|
[Mac (10,15), iOS (13,0), TV (14, 0)]
|
||||||
|
@ -403,4 +410,20 @@ namespace CoreHaptics {
|
||||||
[return: NullAllowed]
|
[return: NullAllowed]
|
||||||
CHHapticPatternDefinition Export ([NullAllowed] out NSError outError);
|
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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeFileNotFound = -4851 not bound
|
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInsufficientPower = -4897 not bound
|
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInvalidEngineParameter = -4816 not bound
|
|
||||||
!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound
|
|
||||||
!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound
|
|
|
@ -1,5 +0,0 @@
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeFileNotFound = -4851 not bound
|
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInsufficientPower = -4897 not bound
|
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInvalidEngineParameter = -4816 not bound
|
|
||||||
!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound
|
|
||||||
!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound
|
|
|
@ -113,3 +113,5 @@
|
||||||
!missing-type! CHHapticParameterCurve not bound
|
!missing-type! CHHapticParameterCurve not bound
|
||||||
!missing-type! CHHapticParameterCurveControlPoint not bound
|
!missing-type! CHHapticParameterCurveControlPoint not bound
|
||||||
!missing-type! CHHapticPattern not bound
|
!missing-type! CHHapticPattern not bound
|
||||||
|
!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound
|
||||||
|
!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound
|
|
||||||
!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound
|
|
|
@ -1,5 +0,0 @@
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeFileNotFound = -4851 not bound
|
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInsufficientPower = -4897 not bound
|
|
||||||
!missing-enum-value! CHHapticErrorCode native value CHHapticErrorCodeInvalidEngineParameter = -4816 not bound
|
|
||||||
!missing-field! CHHapticAudioResourceKeyUseVolumeEnvelope not bound
|
|
||||||
!missing-field! CHHapticPatternKeyEventWaveformUseVolumeEnvelope not bound
|
|
Загрузка…
Ссылка в новой задаче