Home Reference Source
import Custom from 'timber/src/events/custom.js'
public class | source

Custom

Extends:

Event → Custom

The Custom event allows you to past arbitrary events to timber.

Constructor Summary

Public Constructor
public

constructor(type: String, data: Array)

Member Summary

Public Members
public

custom: {"type": *}

Public Constructors

public constructor(type: String, data: Array) source

Params:

NameTypeAttributeDescription
type String
  • optional

This is the type of your event. It should be something unique and unchanging. It will be used to identify this event.

data Array
  • optional

An object containing the event data

Public Members

public custom: {"type": *} source