GitHub
npm
Preparing search index...
The search index is not available
@microsoft/applicationinsights-offlinechannel-js - v0.3.10
@microsoft/applicationinsights-offlinechannel-js
IOfflineBatchHandler
Interface IOfflineBatchHandler
interface
IOfflineBatchHandler
{
cleanStorage
(
cb
?:
(
(
res
:
IOfflineBatchCleanResponse
)
=>
void
)
)
:
IOfflineBatchCleanResponse
|
IPromise
<
IOfflineBatchCleanResponse
>
;
hasStoredBatch
(
callback
?:
(
(
hasBatches
:
boolean
)
=>
void
)
)
:
boolean
|
IPromise
<
boolean
>
;
sendNextBatch
(
cb
?:
OfflineBatchCallback
,
sync
?:
boolean
,
xhrOverride
?:
IXHROverride
,
cnt
?:
number
)
:
IOfflineBatchResponse
|
IPromise
<
IOfflineBatchResponse
>
;
storeBatch
(
batch
:
IPayloadData
,
cb
?:
OfflineBatchStoreCallback
,
sync
?:
boolean
)
:
IOfflineBatchStoreResponse
|
IPromise
<
IOfflineBatchStoreResponse
>
;
teardown
(
unloadCtx
?:
IProcessTelemetryUnloadContext
,
unloadState
?:
ITelemetryUnloadState
)
:
void
;
}
Implemented by
OfflineBatchHandler
Index
Methods
clean
Storage
has
Stored
Batch
send
Next
Batch
store
Batch
teardown
Methods
clean
Storage
clean
Storage
(
cb
?
)
:
IOfflineBatchCleanResponse
|
IPromise
<
IOfflineBatchCleanResponse
>
Parameters
Optional
cb
:
(
(
res
:
IOfflineBatchCleanResponse
)
=>
void
)
(
res
)
:
void
Parameters
res
:
IOfflineBatchCleanResponse
Returns
void
Returns
IOfflineBatchCleanResponse
|
IPromise
<
IOfflineBatchCleanResponse
>
has
Stored
Batch
has
Stored
Batch
(
callback
?
)
:
boolean
|
IPromise
<
boolean
>
Parameters
Optional
callback
:
(
(
hasBatches
:
boolean
)
=>
void
)
(
hasBatches
)
:
void
Parameters
hasBatches
:
boolean
Returns
void
Returns
boolean
|
IPromise
<
boolean
>
send
Next
Batch
send
Next
Batch
(
cb
?
,
sync
?
,
xhrOverride
?
,
cnt
?
)
:
IOfflineBatchResponse
|
IPromise
<
IOfflineBatchResponse
>
Parameters
Optional
cb
:
OfflineBatchCallback
Optional
sync
:
boolean
Optional
xhrOverride
:
IXHROverride
Optional
cnt
:
number
Returns
IOfflineBatchResponse
|
IPromise
<
IOfflineBatchResponse
>
store
Batch
store
Batch
(
batch
,
cb
?
,
sync
?
)
:
IOfflineBatchStoreResponse
|
IPromise
<
IOfflineBatchStoreResponse
>
Parameters
batch
:
IPayloadData
Optional
cb
:
OfflineBatchStoreCallback
Optional
sync
:
boolean
Returns
IOfflineBatchStoreResponse
|
IPromise
<
IOfflineBatchStoreResponse
>
teardown
teardown
(
unloadCtx
?
,
unloadState
?
)
:
void
Parameters
Optional
unloadCtx
:
IProcessTelemetryUnloadContext
Optional
unloadState
:
ITelemetryUnloadState
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
clean
Storage
has
Stored
Batch
send
Next
Batch
store
Batch
teardown
Changelog
Readme
GitHub
npm
@microsoft/applicationinsights-offlinechannel-js - v0.3.10
Loading...