[DeviceCheck] Disable default ctor for DCDevice. (#2642)
It doesn't seem to be useful according to the documentation, since it appears that the only way to get an instance is to use the static CurrentDevice property.
This commit is contained in:
Родитель
fdf67c6645
Коммит
a70c708a34
|
@ -26,6 +26,7 @@ namespace XamCore.DeviceCheck {
|
|||
delegate void DCDeviceGenerateTokenCompletionHandler ([NullAllowed] NSData token, [NullAllowed] NSError error);
|
||||
|
||||
[TV (11,0), NoWatch, NoMac, iOS (11,0)]
|
||||
[DisableDefaultCtor] // From the documentation it seems the only way to create a usable instance is to use the static CurrentDevice property.
|
||||
[BaseType (typeof (NSObject))]
|
||||
interface DCDevice {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче