EOSManager Class Reference
Inherits from | NSObject |
Declared in | EOSManager.h EOSManager.m |
Tasks
Initialization
Managing the SDK
-
isLoaded
property -
– load:
-
– terminate:
Managing the delegate
Getting Cameras
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.
See Also
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
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