pyrokid_cxr_clientm.extend.controllers

com.rokid.cxr.client-m:1.0.4 - extend/controllers/ in Python

extend.controllers namespaces contains FileController and WifiController

class pyrokid_cxr_clientm.extend.controllers.FileController[source]

Bases: object

com.rokid.cxr.client.extend.controllers.FileController Java class in Python

class Callback[source]

Bases: ABC

com.rokid.cxr.client.extend.controllers.FileController.Callback Interface - Please extend this class and implement the methods!

abstractmethod onDownloadFailed() None[source]
abstractmethod onDownloadFinished() None[source]
abstractmethod onDownloadStart() None[source]
abstractmethod onSingleFileDownloaded(fileName: str) None[source]
a = None

mContext

autoDelete: bool = True
b: str

savePath?

c: list[str]

filePathStringList

d: str = None

fileToDownload

static deleteFile(fileController: FileController, filePath: str) None[source]
static downloadFile(fileController: FileController, fileList: list[FileData], fileIndex: int)[source]
downloadMedia()[source]
e: bool
f: Callback = None

mCallback

g: int
static generateMediaPaths(cxrMediaTypeArr: list[CxrMediaType]) list[str][source]
static getInstance() FileController[source]
h: bool = False
i = None

mFetchFileListCall

j: bool = False

FetchFileList is running

k = None

mDownloadFileCall

l: bool = False

DownloadFile is running

m = None

mReportDownloadCall

n: bool = False

ReportDownload is running

o = None

mDeleteFileCall

p: bool = False

DeleteFile is running

q: ApkStatusCallback = None
r = None

mUploadApkCall

reportDownload(filePath: str)[source]
s: bool = False

UploadApk is running

startDownload(context, savePath: str, types: list[CxrMediaType], fileToDownload: str, ipAddress: str, callback: Callback) None[source]
startUploadApk(file, ipAddress: str, apkStatusCallback: ApkStatusCallback) None[source]
stopDownload() None[source]
stopUploadApk() None[source]
t = ['/storage/emulated/0/Recordings', '/storage/emulated/0/DCIM/Camera', '/storage/emulated/0/Movies/Camera']
class pyrokid_cxr_clientm.extend.controllers.WifiController[source]

Bases: object

com.rokid.cxr.client.extend.controllers.WifiController Java class to Python

class Callback[source]

Bases: ABC

com.rokid.cxr.client.extend.controllers.WifiController.Callback Interface - Please extend this class and implement the methods

abstractmethod onAddress(address: str) None[source]
abstractmethod onStatusUpdate(cxrStatus: CxrStatus, cxrWifiErrorCode: CxrWifiErrorCode) None[source]
a = None

mContext

b: CxrStatus = None

mWifiStatus

c: Callback = None

mCallback

connectP2pService() None[source]
connectToDevice() None[source]
d: str = None

mDeviceName

deinit(cxrWifiErrorCode: CxrWifiErrorCode) CxrStatus[source]
static getInstance() WifiController[source]
handleWifiConnectionChanged(hostAddress: str) None[source]
init(context, deviceName: str, deviceAddress: str, callback: Callback)[source]
isConnected() bool[source]
n: int = 0

mRetryCount

o: bool = False

mIsConnected

updateStatus(cxrStatus: CxrStatus, cxrWifiErrorCode: CxrWifiErrorCode) None[source]