Bluetooth
From Pointui
This is a Global object. You must not create an instance of it as one is always available for your use.
Provides access to some basic Bluetooth functionality. NOTE: this is a global object so an instance is always available to use – you do not need to ever create additional instances.
Contents |
Methods
void SetMode(String mode)
Sets the Bluetooth mode for the device.
PARAMETERS
- mode – a String indicating which mode to switch to, must be one of the following:
- “On”
- “Off”
- “Discoverable” – Bluetooth is on and the device is discoverable
EXAMPLE
//switch Bluetooth on Bluetooth.SetMode(“On”);
String GetMode()
Returns the current Bluetooth mode.
RETURN VALUE
Returns a String containing one of the following values:
- “On”
- “Off”
- “Discoverable”
int GetConnectionCount()
Returns the number of connected Bluetooth devices.
RETURN VALUE
Returns an int containing the number of connected devices.
