Namespaces
Trace
Summary β
Namespaces
Classes
Functions β
addCategories β
defined in @nativescript/core/trace/index.d.ts:68:1
Adds categories to existing categories the module will trace.
Parameter Default Description
categories
string
The comma-separated list of categories. If not specified all messages from all categories will be traced.
Returns void
addEventListener β
addEventListener(listener: TraceEventListener): void
defined in @nativescript/core/trace/index.d.ts:92:1
Parameter Default Description
listener
Returns void
addWriter β
addWriter(writer: TraceWriter): void
defined in @nativescript/core/trace/index.d.ts:45:1
Adds a TraceWriter instance to the trace module.
Parameter Default Description
Returns void
clearWriters β
defined in @nativescript/core/trace/index.d.ts:56:1
Clears all the writers from the trace module.
Returns void
disable β
enable β
error β
defined in @nativescript/core/trace/index.d.ts:145:1
Passes an error to the registered ErrorHandler
Parameter Default Description
error
string | Error
The error to be handled.
Returns void
getErrorHandler β
getErrorHandler(): TraceErrorHandler
defined in @nativescript/core/trace/index.d.ts:137:1
Returns TraceErrorHandler
isCategorySet β
defined in @nativescript/core/trace/index.d.ts:74:1
Check if category is already set in trace module.
Parameter Default Description
category
string
The category to check.
Returns boolean
isEnabled β
defined in @nativescript/core/trace/index.d.ts:39:1
A function that returns whether the tracer is enabled and there is a point in writing messages.
Check this to avoid writing complex string templates.
Send error messages even if tracing is disabled.
Returns boolean
notifyEvent β
defined in @nativescript/core/trace/index.d.ts:90:1
Notifies all the attached listeners for an event that has occurred in the sender object.
Parameter Default Description
object
Object
The Object instance that raised the event.
name
string
The name of the raised event.
data
any
An optional parameter that passes the data associated with the event.
Returns void
removeEventListener β
removeEventListener(listener: TraceEventListener): void
defined in @nativescript/core/trace/index.d.ts:94:1
Parameter Default Description
listener
Returns void
removeWriter β
removeWriter(writer: TraceWriter): void
defined in @nativescript/core/trace/index.d.ts:51:1
Removes a TraceWriter instance from the trace module.
Parameter Default Description
Returns void
setCategories β
defined in @nativescript/core/trace/index.d.ts:62:1
Sets the categories the module will trace.
Parameter Default Description
categories
string
The comma-separated list of categories. If not specified all messages from all categories will be traced.
Returns void
setErrorHandler β
setErrorHandler(handler: TraceErrorHandler): void
defined in @nativescript/core/trace/index.d.ts:139:1
Parameter Default Description
handler
Returns void
write β
defined in @nativescript/core/trace/index.d.ts:82:1
Writes a message using the available writers.
Parameter Default Description
message
any
The message to be written.
category
string
The category of the message.
type
number
Optional, the type of the message - info, warning, error.
Returns void
- Previous
- TouchAction
- Next
- Utils