Classes

The following classes are available globally.

  • Define the callback to receive camera notifications.

    See more

    Declaration

    Swift

    @objc public class ActionCameraListener: NSObject
  • Present an YI action camera.

    This class presents an YI action camera. App can invoke its functions to control the camera. Like start recording, stop recording, take picture, read settings, set settings, etc. Before operating an camera, App need invoke ActionCamera.connect(connectionString:) to connect to the camera. After connect success (ActionCameraListener.onConnected() will be invoked), app can invoke other functions. Whenever app wants to disconnect from the camera, app can invoke ActionCamera.disconnect().

    Any success or fail callback in commands are optional parameter. If you don’t care command execution result, you can pass nil.

    See more

    Declaration

    Swift

    @objc public class ActionCamera: NSObject, AsyncSocketListener, NSURLSessionDownloadDelegate
  • This class will be used to initialize/uninitialize the whole SDK platform.

    See more

    Declaration

    Swift

    @objc public class Platform: NSObject
  • Define the error code of an error object.

    See more

    Declaration

    Swift

    @objc public class ErrorCode: NSObject
  • Define the log interface.

    App can write a subclass inherited from this class to supply log functionality.

    See more

    Declaration

    Swift

    @objc public class Logger: NSObject
  • Represent the error.

    See more

    Declaration

    Swift

    @objc public class Error: NSObject, ErrorType
  • File on the camera.

    See more

    Declaration

    Swift

    public class File