xvsdk  3.2.0
Functions
Functions for Android

Functions

std::shared_ptr< Devicexv::getDevice (int fd)
 Retrieve #Device by given descriptor. Only for Android. More...
 
std::shared_ptr< Devicexv::getDevice (int fd, std::string const &desc, xv::SlamStartMode slamStartMode=xv::SlamStartMode::Normal)
 Retrieve #Device by given descriptor. Only for Android. More...
 
bool xv::detachDevice (int fd)
 Tell sdk device has disconnected. Only for Android.
 
std::string xv::getDefaultDescription ()
 Retrieve default device description.
 
void xv::getUTCTIme (DateTime *utc)
 Get UTC time.
 

Detailed Description

Function Documentation

◆ getDevice() [1/2]

std::shared_ptr<Device> xv::getDevice ( int  fd)

Retrieve #Device by given descriptor. Only for Android.

Parameters
fd: file descriptor opened by android USBManager.
Returns
A #Device.

◆ getDevice() [2/2]

std::shared_ptr<Device> xv::getDevice ( int  fd,
std::string const &  desc,
xv::SlamStartMode  slamStartMode = xv::SlamStartMode::Normal 
)

Retrieve #Device by given descriptor. Only for Android.

Parameters
fd: file descriptor opened by android USBManager.
desc: load device according to feature in desc. SDK can choose device feature from desc accoring SN or version.
Returns
A #Device.