this.setListener(nativeParam.downloadId, args.downloadCallback);
}
- var result = native_.callSync('DownloadManager_start', nativeParam);
+ var result = native_.callSync('DownloadManagerStart', nativeParam);
if (native_.isFailure(result)) {
if ('NetworkError' === result.error.name) {
'the identifier does not match any download operation in progress'
);
- var result = native_.callSync('DownloadManager_cancel', nativeParam);
+ var result = native_.callSync('DownloadManagerCancel', nativeParam);
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
'the identifier does not match any download operation in progress'
);
- var result = native_.callSync('DownloadManager_pause', nativeParam);
+ var result = native_.callSync('DownloadManagerPause', nativeParam);
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
'the identifier does not match any download operation in progress'
);
- var result = native_.callSync('DownloadManager_abandon', nativeParam);
+ var result = native_.callSync('DownloadManagerAbandon', nativeParam);
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
'the identifier does not match any download operation in progress'
);
- var result = native_.callSync('DownloadManager_resume', nativeParam);
+ var result = native_.callSync('DownloadManagerResume', nativeParam);
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
'the identifier does not match any download operation in progress'
);
- var result = native_.callSync('DownloadManager_getState', nativeParam);
+ var result = native_.callSync('DownloadManagerGetState', nativeParam);
if (native_.isSuccess(result)) {
return native_.getResultObject(result);
'the identifier does not match any download operation in progress'
);
- var result = native_.callSync('DownloadManager_getMIMEType', nativeParam);
+ var result = native_.callSync('DownloadManagerGetMimeType', nativeParam);
if (native_.isSuccess(result)) {
return native_.getResultObject(result);