ppsService.close()

Close the PPS object file associated with a file descriptor

Signature

ppsService.close(fd, errorlistener);

Arguments

Argument Type Description
fd Integer A file descriptor returned by ppsService.open(). Required.
errorlistener Function The callback function that gets called if an error occurs. Required. See errorListener() for details.

Description

The ppsService.close() method closes the PPS object file associated with the specified file descriptor. It also releases associated resources created by the QNX Web Browser. Call this method when you no longer need to read, write, or watch on the specified file descriptor.

Returns

None.

Examples

var errorHandler = function(fd, errorID, errorMessage) {
   // handle the error
   console.log('FD: %d, Error ID: %d, Message: %s.', fd, errorID, errorMessage);
}

// close PPS object file.
ppsService.close(fd, errorHandler);