Added field:
public static const string SafetyKitLibrary = "/System/Library/Frameworks/SafetyKit.framework/SafetyKit";
public interface ISACrashDetectionDelegate : ObjCRuntime.INativeObject, System.IDisposable {
}
public interface ISAEmergencyResponseDelegate : ObjCRuntime.INativeObject, System.IDisposable {
}
[Serializable]
public enum SAAuthorizationStatus {
Authorized = 2,
Denied = 1,
NotDetermined = 0,
}
public class SACrashDetectionDelegate : Foundation.NSObject, ObjCRuntime.INativeObject, ISACrashDetectionDelegate, System.IDisposable {
// constructors
public SACrashDetectionDelegate ();
protected SACrashDetectionDelegate (Foundation.NSObjectFlag t);
protected SACrashDetectionDelegate (ObjCRuntime.NativeHandle handle);
// methods
public virtual void DidDetectEvent (SACrashDetectionManager crashDetectionManager, SACrashDetectionEvent event);
}
public static class SACrashDetectionDelegate_Extensions {
// methods
public static void DidDetectEvent (this ISACrashDetectionDelegate This, SACrashDetectionManager crashDetectionManager, SACrashDetectionEvent event);
}
public class SACrashDetectionEvent : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
// constructors
public SACrashDetectionEvent (Foundation.NSCoder coder);
protected SACrashDetectionEvent (Foundation.NSObjectFlag t);
protected SACrashDetectionEvent (ObjCRuntime.NativeHandle handle);
// properties
public override ObjCRuntime.NativeHandle ClassHandle { get; }
public virtual Foundation.NSDate Date { get; }
public virtual CoreLocation.CLLocation Location { get; }
public virtual SACrashDetectionEventResponse Response { get; }
// methods
public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
public virtual void EncodeTo (Foundation.NSCoder encoder);
}
[Serializable]
public enum SACrashDetectionEventResponse {
Attempted = 0,
Disabled = 1,
}
public class SACrashDetectionManager : Foundation.NSObject {
// constructors
public SACrashDetectionManager ();
protected SACrashDetectionManager (Foundation.NSObjectFlag t);
protected SACrashDetectionManager (ObjCRuntime.NativeHandle handle);
// properties
public virtual SAAuthorizationStatus AuthorizationStatus { get; }
public static bool Available { get; }
public override ObjCRuntime.NativeHandle ClassHandle { get; }
public ISACrashDetectionDelegate Delegate { get; set; }
public virtual Foundation.NSObject WeakDelegate { get; set; }
// methods
protected override void Dispose (bool disposing);
public virtual void RequestAuthorization (SACrashDetectionManagerRequestAuthorizationCompletionHandler handler);
public virtual System.Threading.Tasks.Task<SAAuthorizationStatus> RequestAuthorizationAsync ();
}
public sealed delegate SACrashDetectionManagerRequestAuthorizationCompletionHandler : System.MulticastDelegate {
// constructors
public SACrashDetectionManagerRequestAuthorizationCompletionHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (SAAuthorizationStatus status, Foundation.NSError error, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (SAAuthorizationStatus status, Foundation.NSError error);
}
public class SAEmergencyResponseDelegate : Foundation.NSObject, ObjCRuntime.INativeObject, ISAEmergencyResponseDelegate, System.IDisposable {
// constructors
public SAEmergencyResponseDelegate ();
protected SAEmergencyResponseDelegate (Foundation.NSObjectFlag t);
protected SAEmergencyResponseDelegate (ObjCRuntime.NativeHandle handle);
// methods
public virtual void DidUpdateVoiceCallStatus (SAEmergencyResponseManager emergencyResponseManager, SAEmergencyResponseManagerVoiceCallStatus voiceCallStatus);
}
public static class SAEmergencyResponseDelegate_Extensions {
// methods
public static void DidUpdateVoiceCallStatus (this ISAEmergencyResponseDelegate This, SAEmergencyResponseManager emergencyResponseManager, SAEmergencyResponseManagerVoiceCallStatus voiceCallStatus);
}
public class SAEmergencyResponseManager : Foundation.NSObject {
// constructors
public SAEmergencyResponseManager ();
protected SAEmergencyResponseManager (Foundation.NSObjectFlag t);
protected SAEmergencyResponseManager (ObjCRuntime.NativeHandle handle);
// properties
public override ObjCRuntime.NativeHandle ClassHandle { get; }
public ISAEmergencyResponseDelegate Delegate { get; set; }
public virtual Foundation.NSObject WeakDelegate { get; set; }
// methods
public virtual void DialVoiceCall (string phoneNumber, SAEmergencyResponseManagerDialVoiceCallCompletionHandler handler);
public virtual System.Threading.Tasks.Task<System.Tuple<System.Boolean,Foundation.NSError>> DialVoiceCallAsync (string phoneNumber);
protected override void Dispose (bool disposing);
}
public sealed delegate SAEmergencyResponseManagerDialVoiceCallCompletionHandler : System.MulticastDelegate {
// constructors
public SAEmergencyResponseManagerDialVoiceCallCompletionHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (bool requestAccepted, Foundation.NSError error, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (bool requestAccepted, Foundation.NSError error);
}
[Serializable]
public enum SAEmergencyResponseManagerVoiceCallStatus {
Active = 1,
Dialing = 0,
Disconnected = 2,
Failed = 3,
}
[Serializable]
public enum SAErrorCode {
InvalidArgument = 3,
NotAllowed = 2,
NotAuthorized = 1,
OperationFailed = 4,
}
public static class SAErrorCodeExtensions {
// methods
public static Foundation.NSString GetDomain (this SAErrorCode self);
}