Contents

init(insertionHandler:)

Initializes a token watcher with the specified insertion handler.

Declaration

init(insertionHandler: @escaping (String) -> Void)

Parameters

  • insertionHandler:

    A block to be called each time a token is added. This block takes a single argument:

    tokenID

    The identifier of the added token.

Return Value

A new token watcher object.

Discussion

This is the designated initializer.

See Also

Creating Token Watchers