Inherits from NSObject
Declared in PXFileWatcher.h

Overview

PXFileWatcher can be used to monitor changes to a file in the file system.

Tasks

Class Methods

sharedInstance

The singleton instance of PXFileWatcher

+ (PXFileWatcher *)sharedInstance

Discussion

The singleton instance of PXFileWatcher

Declared In

PXFileWatcher.h

Instance Methods

watchFile:handler:

Turn on file monitoring and report changes to the specified handler

- (void)watchFile:(NSString *)filePath handler:(dispatch_block_t)handler

Parameters

filePath

The local file to monitor

handler

The callback to invoke when changes are detected

Discussion

Turn on file monitoring and report changes to the specified handler

Declared In

PXFileWatcher.h