[coremotion] Update for Xcode 12 beta 2 (#9056)

This commit is contained in:
Sebastien Pouliot 2020-07-10 13:56:09 -04:00 коммит произвёл GitHub
Родитель 802bd4e069
Коммит 41e204f81f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 63 добавлений и 26 удалений

Просмотреть файл

@ -203,6 +203,10 @@ namespace CoreMotion {
[Watch (4,0), iOS (11,0)]
[Export ("heading")]
double Heading { get; }
[iOS (14,0)][Watch (7,0)][Mac (10,16)]
[Export ("sensorLocation")]
CMDeviceMotionSensorLocation SensorLocation { get; }
}
[Mac (10,15)]
@ -621,6 +625,8 @@ namespace CoreMotion {
NotAvailable,
NotEntitled,
NotAuthorized,
NilData,
Size,
}
[NoMac]
@ -643,4 +649,61 @@ namespace CoreMotion {
Medium,
High,
}
[iOS (14,0)][Watch (7,0)][Mac (10,16)]
[Native]
public enum CMDeviceMotionSensorLocation : long {
Default,
HeadphoneLeft,
HeadphoneRight,
}
[iOS (14,0)][Watch (7,0)]
[NoMac]
delegate void CMHeadphoneDeviceMotionHandler ([NullAllowed] CMDeviceMotion motion, [NullAllowed] NSError error);
[iOS (14,0)][Watch (7,0)]
[NoMac]
[BaseType (typeof(NSObject))]
interface CMHeadphoneMotionManager {
[Wrap ("WeakDelegate")]
[NullAllowed]
ICMHeadphoneMotionManagerDelegate Delegate { get; set; }
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
NSObject WeakDelegate { get; set; }
[Export ("deviceMotionAvailable")]
bool DeviceMotionAvailable { [Bind ("isDeviceMotionAvailable")] get; }
[Export ("deviceMotionActive")]
bool DeviceMotionActive { [Bind ("isDeviceMotionActive")] get; }
[NullAllowed, Export ("deviceMotion")]
CMDeviceMotion DeviceMotion { get; }
[Export ("startDeviceMotionUpdates")]
void StartDeviceMotionUpdates ();
[Export ("startDeviceMotionUpdatesToQueue:withHandler:")]
void StartDeviceMotionUpdates (NSOperationQueue queue, CMHeadphoneDeviceMotionHandler handler);
[Export ("stopDeviceMotionUpdates")]
void StopDeviceMotionUpdates ();
}
interface ICMHeadphoneMotionManagerDelegate {}
[iOS (14,0)][Watch (7,0)]
[NoMac]
[Protocol, Model (AutoGeneratedName = true)]
[BaseType (typeof (NSObject))]
interface CMHeadphoneMotionManagerDelegate {
[Export ("headphoneMotionManagerDidConnect:")]
void DidConnect (CMHeadphoneMotionManager manager);
[Export ("headphoneMotionManagerDidDisconnect:")]
void DidDisconnect (CMHeadphoneMotionManager manager);
}
}

Просмотреть файл

@ -1,12 +0,0 @@
!missing-enum! CMDeviceMotionSensorLocation not bound
!missing-protocol! CMHeadphoneMotionManagerDelegate not bound
!missing-selector! CMDeviceMotion::sensorLocation not bound
!missing-selector! CMHeadphoneMotionManager::delegate not bound
!missing-selector! CMHeadphoneMotionManager::deviceMotion not bound
!missing-selector! CMHeadphoneMotionManager::isDeviceMotionActive not bound
!missing-selector! CMHeadphoneMotionManager::isDeviceMotionAvailable not bound
!missing-selector! CMHeadphoneMotionManager::setDelegate: not bound
!missing-selector! CMHeadphoneMotionManager::startDeviceMotionUpdates not bound
!missing-selector! CMHeadphoneMotionManager::startDeviceMotionUpdatesToQueue:withHandler: not bound
!missing-selector! CMHeadphoneMotionManager::stopDeviceMotionUpdates not bound
!missing-type! CMHeadphoneMotionManager not bound

Просмотреть файл

@ -1,2 +0,0 @@
!missing-enum! CMDeviceMotionSensorLocation not bound
!missing-selector! CMDeviceMotion::sensorLocation not bound

Просмотреть файл

@ -1,12 +0,0 @@
!missing-enum! CMDeviceMotionSensorLocation not bound
!missing-protocol! CMHeadphoneMotionManagerDelegate not bound
!missing-selector! CMDeviceMotion::sensorLocation not bound
!missing-selector! CMHeadphoneMotionManager::delegate not bound
!missing-selector! CMHeadphoneMotionManager::deviceMotion not bound
!missing-selector! CMHeadphoneMotionManager::isDeviceMotionActive not bound
!missing-selector! CMHeadphoneMotionManager::isDeviceMotionAvailable not bound
!missing-selector! CMHeadphoneMotionManager::setDelegate: not bound
!missing-selector! CMHeadphoneMotionManager::startDeviceMotionUpdates not bound
!missing-selector! CMHeadphoneMotionManager::startDeviceMotionUpdatesToQueue:withHandler: not bound
!missing-selector! CMHeadphoneMotionManager::stopDeviceMotionUpdates not bound
!missing-type! CMHeadphoneMotionManager not bound