SCKEventRequest
@objc public class SCKEventRequest: NSObjectThe SCKEventRequest class represents a wrapper type used by an
SCKViewController object to encapsulate relevant info and to handle
new events when reloading events asynchronously.
Asynchronous event loading is disabled by default. You may enable it by
setting SCKViewController’s loadsEventsAsynchronously to true. When
this option is enabled, the events(from:to:for:) method won’t be called
on the event manager. Instead, scheduleController(_:didMakeEventRequest:)
will get called with this object as a parameter. The event manager is
responsible of keeping a (weak) reference to this request, loading the
appropiate events asynchronously and, eventually, passing them back to
the request on the main queue via the complete(with:) method.
- 
                  
                  Returns whether the request has been canceled. DeclarationSwift @objc public private(set) var isCanceled: Bool = false
- 
                  
                  The SCKViewControllerobject that issued the request.DeclarationSwift @objc public private(set) weak var controller: SCKViewController?
- 
                  
                  The requested starting date parameter for the event fetch criteria. DeclarationSwift @objc public private(set) var startDate: Date
- 
                  
                  The requested ending date parameter for the event fetch criteria. DeclarationSwift @objc public private(set) var endDate: Date
- 
                  
                  The request date interval. DeclarationSwift @objc public private(set) var dateInterval: DateInterval
- 
                  
                  Cancels the request if not canceled yet. This will make it ignore any subsequent calls to complete(with:). In addition, the request will be released by its owningSCKViewControllerobject, so if you don’t own any other strong references to it, it will be also deallocated.DeclarationSwift @objc public func cancel()
- 
                  
                  If not canceled or already completed, fulfills the request passing back the suitable SCKEventobjects to the owningSCKViewController. In addition, the request will be released by its owningSCKViewControllerobject, so if you don’t own any other strong references to it, it will be also deallocated.Parameter Parameter events: The asynchronously loaded events.Warning This method must be called from the main thread.DeclarationSwift @objc public func complete(with events: [SCKEvent])ParameterseventsThe asynchronously loaded events. 
- 
                  
                  Undocumented DeclarationSwift @objc public class SCKEventRequest: NSObject
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           SCKEventRequest Class Reference
      SCKEventRequest Class Reference