Packages

object Watch extends Object with Watch

Watch Singleton

Annotations
@native() @JSImport( "watch" , JSImport.Namespace )
Linear Supertypes
Watch, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Watch
  2. Watch
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createMonitor(root: String, callback: Function): Unit

    This function creates an EventEmitter that gives notifications for different changes that happen to the file and directory tree under the given root argument.

    This function creates an EventEmitter that gives notifications for different changes that happen to the file and directory tree under the given root argument.

    root

    The directory root you want to monitor.

    callback

    The callback receives the monitor object.

    Definition Classes
    Watch
    Example:
    1. watch.createMonitor(root, [options,] callback)

  7. def createMonitor(root: String, options: WatchOptions, callback: Function): Unit

    This function creates an EventEmitter that gives notifications for different changes that happen to the file and directory tree under the given root argument.

    This function creates an EventEmitter that gives notifications for different changes that happen to the file and directory tree under the given root argument.

    root

    The directory root you want to monitor.

    options

    The options object is passed to watch.watchTree.

    callback

    The callback receives the monitor object.

    Definition Classes
    Watch
    Example:
    1. watch.createMonitor(root, [options,] callback)

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toLocaleString(): String
    Definition Classes
    Object
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def unwatchTree(root: String): Unit

    Unwatch a previously watched directory root using watch.watchTree.

    Unwatch a previously watched directory root using watch.watchTree.

    root

    the directory root you want to stop watching

    Definition Classes
    Watch
    Example:
    1. watch.unwatchTree(root)

  24. def valueOf(): Any
    Definition Classes
    Object
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def walk(root: String, callback: Function): Unit

    Walks a directory tree?

    Walks a directory tree?

    root

    The directory root you want to walk.

    callback

    The callback receives the monitor object.

    Definition Classes
    Watch
    Example:
    1. watch.walk(dir, options, callback)

  29. def walk(root: String, options: WatchOptions, callback: Function): Unit

    Walks a directory tree?

    Walks a directory tree?

    root

    The directory root you want to walk.

    options

    The options object is passed to watch.watchTree.

    callback

    The callback receives the monitor object.

    Definition Classes
    Watch
    Example:
    1. watch.walk(dir, options, callback)

  30. def watchTree(root: String, callback: Function): Unit

    The first argument is the directory root you want to watch.

    The first argument is the directory root you want to watch.

    root

    the directory root you want to watch

    callback

    the result callback

    Definition Classes
    Watch
    Example:
    1. watch.watchTree(root, [options,] callback)

  31. def watchTree(root: String, options: WatchOptions, callback: Function): Unit

    The first argument is the directory root you want to watch.

    The first argument is the directory root you want to watch.

    root

    the directory root you want to watch

    options

    the file watching options

    callback

    the result callback

    Definition Classes
    Watch
    Example:
    1. watch.watchTree(root, [options,] callback)

Inherited from Watch

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped