bluetooth.init()


Type Function Return value none

See also bluetooth.*


Overview

Initializes the plugin and calls the specified listener function to notify when the process is complete, or to provide error information.

This call is required and must be executed before making other calls such as bluetooth.startScan().

Syntax

bluetooth.init( [listener] )

listener optional

Listener. Listener function which receives an init event.