SlyceViewController Class Reference

Inherits from UIViewController
Declared in SlyceViewController.h

– initWithSlyce:mode:options:delegate:

Initializes a SlyceViewController.

- (instancetype)initWithSlyce:(Slyce *)slyce mode:(SlyceViewControllerMode)mode options:(nullable NSDictionary<id,id> *)options delegate:(nullable id<SlyceViewControllerDelegate>)delegate

Parameters

slyce

An open Slyce instance.

mode

The mode, either Universal Lens or Lens Picker. See SlyceViewControllerMode.

options

A dictionary of additional options. See SlyceOptions.h header.

delegate

Optional delegate. This may be set later as well.

Return Value

An instance of a SlyceViewController.

Declared In

SlyceViewController.h

– initWithSlyce:mode:

Initializes a SlyceViewController.

- (instancetype)initWithSlyce:(Slyce *)slyce mode:(SlyceViewControllerMode)mode

Parameters

slyce

An open Slyce instance.

mode

The mode, either Universal Lens or Lens Picker. See SlyceViewControllerMode.

Return Value

An instance of a SlyceViewController.

Declared In

SlyceViewController.h

  delegate

Sets the delegate, which can be used to override the SlyceViewController’s layer behavior.

@property (nonatomic, readwrite, weak, nullable) id<SlyceViewControllerDelegate> delegate

Declared In

SlyceViewController.h

  camera

Access the camera interface.

@property (nonatomic, readonly) id<SlyceCameraControls> camera

Declared In

SlyceViewController.h

  session

Access the attached session.

@property (nonatomic, readonly, nullable) SlyceSession *session

Declared In

SlyceViewController.h