SplytWidget
@objc
public class SplytWidget : NSObject
The SplytWidget class contains public static methods which can be called from your application.
-
Call this method to present the widget in your application.
Declaration
Swift
@objc public static func initWidget(configuration: SWConfiguration, delegate: SplytWidgetDelegate, completion: (_ widget: UIViewController?, _ error: SWError?) -> Void)Parameters
configurationA
SWConfigurationused to uniquely configure your Splydget instance.delegatePass a delegate which has subscribed to
SplytWidgetDelegate.completionA completion handler which will receive a tuple containing either a
UIViewControlleror aSWErrorif any of your configuration parameters are invalid.
SplytWidget Class Reference