@objc public class PyAlert: NSObject
A class representing an alert to be used from the Python API.
@objc public var title: String?
The alert's title.
@objc public var message: String?
The alert's message.
@objc public static func alertWithTitle(_ title: String?, message: String?) -> PyAlert
Initialize a new alert.
@objc public func show() -> String
Show an alert with set parameters.
@objc public func addAction(title: String)
Add an action with given tilte and handler.
@objc public func addDestructiveAction(title: String)
Add a destructive action with given tilte and handler.
@objc public func addCancelAction(title: String)
Add a cancel action with given tilte and handler.