Namespaces
Trace
Summary 
Namespaces
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 |  | stringThe 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 | 
writer |  | The TraceWriter instance to add.  | 
 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 | ErrorThe 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 |  | stringThe 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 |  | ObjectThe Object instance that raised the event.  | 
name |  | stringThe name of the raised event.  | 
data |  | anyAn 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 | 
writer |  | The TraceWriter instance to remove.  | 
 Returns void
setCategories 
 defined in @nativescript/core/trace/index.d.ts:62:1
Sets the categories the module will trace.
| Parameter | Default | Description | 
categories |  | stringThe 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 |  | anyThe message to be written.  | 
category |  | stringThe category of the message.  | 
type |  | numberOptional, the type of the message - info, warning, error.  | 
 Returns void
- Previous
 - TouchAction
 - Next
 - Utils