YI Open API SDK  0.5
Public Member Functions | List of all members
com.xiaoyi.action.ActionCameraListener Class Referenceabstract

Define the callback to receive camera notifications. More...

Public Member Functions

void onConnected ()
 When ActionCamera.connect() success, this callback will be invoked.
 
void onClosed (Error error)
 When the connection to camera is closed, this callback will be invoked. More...
 
void onRecordStarted ()
 When recording is started on camera, this callback will be invoked.
 
void onRecordStopped ()
 When recording is stopped on camera, this callback will be invoked.
 
void onCaptureStarted ()
 When capture is started on camera, this callback will be invoked.
 
void onCaptureStopped ()
 When capture is stopped on camera, this callback will be invoked.
 
void onViewFinderStarted ()
 
void onViewFinderStopped ()
 When view finder stopped, this callback will be invoked.
 
void onBatteryLifeChanged (int restBattery)
 When battery life is changed, this callback will be invoked.
 
void onSDCardFormatted ()
 When formatting sd card finished, this callback will be invoked.
 

Detailed Description

Define the callback to receive camera notifications.

Member Function Documentation

void com.xiaoyi.action.ActionCameraListener.onClosed ( Error  error)

When the connection to camera is closed, this callback will be invoked.

Parameters
errorIf the connection is closed due to any error, this parameter will be set. If it is null, means the connection is closed by app.
void com.xiaoyi.action.ActionCameraListener.onViewFinderStarted ( )

When view finder started, this callback will be invoked. After received this event, you can start play video stream vi rtsp protocol.


The documentation for this class was generated from the following file:

www.yitechnology.com © 2016