Reputation: 261
Currently I'm translating a class from Objective-C to apple Swift, but unfortunately I've no idea about Objective-C so any help in translating the signature of the following function from Objective-C to Swift?
- (void)playbackSession:(id<BCOVPlaybackSession>)session didReceiveLifecycleEvent:(BCOVPlaybackSessionLifecycleEvent *)lifecycleEvent
Upvotes: 2
Views: 2167
Reputation: 2559
Upping this question to provide a more generic answer:
See capture of the "Related items" menu:
Upvotes: 8
Reputation: 20274
The signature in Swift would look like:
func playbackSession(session: AnyObject<BCOVPlayBackSession>!, didReceiveLifecycleEvent event:BCOVPlaybackSessionLifecycleEvent!)
Upvotes: 2