Inherits from NSObject
Declared in EOSManager.h
EOSManager.m

Overview

The EOSManager class defines a singleton object used to manage the EOS framework.

Tasks

Initialization

Managing the SDK

Managing the delegate

Getting Cameras

Properties

isLoaded

Indicates whether the EOS SDK is loaded (read only).

@property (readonly) BOOL isLoaded

Declared In

EOSManager.h

Class Methods

sharedManager

Returns the singleton instance of EOSManager.

+ (EOSManager *)sharedManager

Return Value

The singleton instance of EOSManager.

Declared In

EOSManager.h

Instance Methods

delegate

Returns the manager’s delegate.

- (id<EOSManagerDelegate>)delegate

Return Value

The manager’s delegate, or nil if it doesn’t have a delegate.

Declared In

EOSManager.h

getCameras

Returns a list of the connected cameras.

- (NSArray *)getCameras

Return Value

An array containing instances of EOSCamera.

Discussion

EOSManager ensures that there is never more than one instance of EOSCamera reprenting each device. Therefore this method will return the same EOSCamera instance for any camera that has already been retrieved.

Declared In

EOSManager.h

load:

Initializes the EOS SDK.

- (BOOL)load:(NSError *__autoreleasing *)error

Parameters

error

If unsuccessful, an instance of NSError describes the problem.

Return Value

YES if successful, otherwise NO.

Discussion

This method must be called before performing any other EOS related functions, such as retrieving cameras or images. If successful, the isLoaded property will be changed to YES.

Declared In

EOSManager.h

setDelegate:

Sets the manager’s delegate to a given object or removes an existing delegate.

- (void)setDelegate:(id<EOSManagerDelegate>)delegate

Parameters

delegate

The delegate for the manager. Pass nil to remove an existing delegate.

Declared In

EOSManager.h

terminate:

Terminates the EOS SDK.

- (BOOL)terminate:(NSError *__autoreleasing *)error

Parameters

error

If unsuccessful, an instance of NSError describes the problem.

Return Value

YES if successful, otherwise NO.

Discussion

This method will deallocate all EOS related objects, and should be called once for each time the SDK is loaded. If successful, the isLoaded property will be changed to NO.

Declared In

EOSManager.h