Scenes Documentation Beta

Protocol Canvas​Resize​Handler

public protocol CanvasResizeHandler : EventHandler 

A type conforming to CanvasResizeHandler is capable of receiving canvas resize events through the onCanvasResize method.

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

%9 CanvasResizeHandler CanvasResizeHandler EventHandler EventHandler CanvasResizeHandler->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​Canvas​Resize(size:​)

func onCanvasResize(size:Size)