SCKConcreteEventRequest
public final class SCKConcreteEventRequest<T>: SCKEventRequest
The SCKConcreteEventRequest
is a convenience generic (thus, Swift-only)
SCKEventRequest
subclass that replaces the base class when the owning
SCKViewController
is working with a type-specific delegate, which allows
you work in a more type-safe way.
-
If not canceled or already completed, fulfills the request passing back the suitable
SCKEvent
objects to the owningSCKViewController
. In addition, the request will be released by its owningSCKViewController
object, 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.Declaration
Swift
public func complete<T:SCKEvent>(with events: [T])
Parameters
events
The asynchronously loaded events.