SLLivePreview Class Reference

Inherits from NSObject
Declared in SLLivePreview.h
SLLivePreview.mm

Overview

Allows you to preview animations from AE in your production app.

//previewLayer is the layer incoming animation will be added to.
//SLLivePreview should be an instance variable, property or otherwise retained.
//This code would release the preview right away.
SLLivePreview* preview = [[SLLivePreview alloc] initWithPreviewLayer:previewLayer];
SWIFT
//previewLayer is the layer incoming animation will be added to.
//SLLivePreview should be an instance variable, property or otherwise retained.
//This code would release the preview right away.
let preview = SLLivePreview(previewLayer: previewLayer)

  resizingBehavior

Determines how incoming animations are resized to fit the preview layer.

@property (nonatomic, readwrite) SLSizing resizingBehavior

See Also

Declared In

SLLivePreview.h

  runningAnimation

The animation currently running. Use the delegate to be notified when an animation has come in.

@property (nonatomic, readonly) SLAnimation *runningAnimation

Declared In

SLLivePreview.h

  bonjourName

Device name that can be used in the Squall AE extension. Use the delegate to be notified when the bonjour name has become available.

@property (nonatomic, readonly) NSString *bonjourName

Discussion

Warning: Only valid on Mac OS X.

Declared In

SLLivePreview.h

  ipAddress

Device address to use in the Squall AE extension. Use the delegate to be notified when the ip address has become available.

@property (nonatomic, readonly) NSString *ipAddress

Discussion

Warning: Only valid when the SLLivePreview has made a connection with AE

Declared In

SLLivePreview.h

  delegate

Delegate notified when specific events occur.

@property (nonatomic, weak) id<SLLivePreviewDelegate> delegate

Declared In

SLLivePreview.h

– initWithPreviewLayer:

Initializer to pass in the layer any incoming animation will be added to.

- (instancetype)initWithPreviewLayer:(CALayer *)previewLayer

Parameters

previewLayer

Layer any incoming animations will be added to.

Return Value

SLLivePreview instance

Declared In

SLLivePreview.h