Scenes Documentation Beta

Protocol Frame​Update​Handler

public protocol FrameUpdateHandler : EventHandler 

A type conforming to FrameUpdateHandler is capable of receiving frame update events through the onFrameUpdate method.

Before receiving events, it must be registered with the dispatcher via the registerFrameUpdateHandler method. Similarly, it should be unregistered before deinitialization via the unregisterFrameUpdateHandler method available through the dispatcher.

%137 FrameUpdateHandler FrameUpdateHandler EventHandler EventHandler FrameUpdateHandler->EventHandler

Conforms To

EventHandler

An Eventhandler is a type capable of being registered with the Dispatcher to receive events of a certain type.

Requirements

on​Frame​Update(frames​Per​Second:​)

func onFrameUpdate(framesPerSecond:Int)