diff --git a/src/plugins/bluetoothserial.ts b/src/plugins/bluetoothserial.ts index 20726b987..bfef832ee 100644 --- a/src/plugins/bluetoothserial.ts +++ b/src/plugins/bluetoothserial.ts @@ -1,5 +1,5 @@ -import {Plugin, Cordova} from './plugin'; -import {Observable} from 'rxjs/Observable'; +import { Cordova, Plugin } from './plugin'; +import { Observable } from 'rxjs/Observable'; /** * @name Bluetooth Serial @@ -42,7 +42,7 @@ export class BluetoothSerial { observable: true, clearFunction: 'disconnect' }) - static connect (macAddress_or_uuid: string): Observable {return; } + static connect(macAddress_or_uuid: string): Observable { return; } /** * Connect insecurely to a Bluetooth device @@ -54,7 +54,7 @@ export class BluetoothSerial { observable: true, clearFunction: 'disconnect' }) - static connectInsecure (macAddress: string): Observable {return; } + static connectInsecure(macAddress: string): Observable { return; } /** * Writes data to the serial port @@ -64,7 +64,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static write (data: any): Promise {return; } + static write(data: any): Promise { return; } /** * Gets the number of bytes of data available @@ -72,7 +72,7 @@ export class BluetoothSerial { */ @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] - }) static available (): Promise {return; } + }) static available(): Promise { return; } /** * Reads data from the buffer @@ -81,7 +81,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static read (): Promise {return; } + static read(): Promise { return; } /** * Reads data from the buffer until it reaches a delimiter @@ -91,7 +91,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static readUntil (delimiter: string): Promise {return; } + static readUntil(delimiter: string): Promise { return; } /** * Subscribe to be notified when data is received @@ -103,7 +103,7 @@ export class BluetoothSerial { observable: true, clearFunction: 'unsubscribe' }) - static subscribe (delimiter: string): Observable {return; } + static subscribe(delimiter: string): Observable { return; } /** * Subscribe to be notified when data is received @@ -114,7 +114,7 @@ export class BluetoothSerial { observable: true, clearFunction: 'unsubscribeRawData' }) - static subscribeRawData (): Observable {return; } + static subscribeRawData(): Observable { return; } /** * Clears data in buffer @@ -123,7 +123,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static clear (): Promise {return; } + static clear(): Promise { return; } /** * Lists bonded devices @@ -132,7 +132,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static list (): Promise {return; } + static list(): Promise { return; } /** * Reports if bluetooth is enabled @@ -141,7 +141,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static isEnabled (): Promise {return; } + static isEnabled(): Promise { return; } /** * Reports the connection status @@ -150,7 +150,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static isConnected (): Promise {return; } + static isConnected(): Promise { return; } /** * Reads the RSSI from the connected peripheral @@ -159,7 +159,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static readRSSI (): Promise {return; } + static readRSSI(): Promise { return; } /** * Show the Bluetooth settings on the device @@ -168,7 +168,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static showBluetoothSettings (): Promise {return; } + static showBluetoothSettings(): Promise { return; } /** * Enable Bluetooth on the device @@ -177,7 +177,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static enable (): Promise {return; } + static enable(): Promise { return; } /** * Discover unpaired devices @@ -186,7 +186,7 @@ export class BluetoothSerial { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - static discoverUnpaired (): Promise {return; } + static discoverUnpaired(): Promise { return; } /** * Subscribe to be notified on Bluetooth device discovery. Discovery process must be initiated with the `discoverUnpaired` function. @@ -197,7 +197,7 @@ export class BluetoothSerial { observable: true, clearFunction: 'clearDeviceDiscoveredListener' }) - static setDeviceDiscoveredListener (): Observable {return; } + static setDeviceDiscoveredListener(): Observable { return; } /** * Sets the human readable device name that is broadcasted to other devices @@ -207,7 +207,7 @@ export class BluetoothSerial { platforms: ['Android'], sync: true }) - static setName (newName: string): void {} + static setName(newName: string): void { } /** * Makes the device discoverable by other devices @@ -217,5 +217,5 @@ export class BluetoothSerial { platforms: ['Android'], sync: true }) - static setDiscoverable (discoverableDuration: number): void {} + static setDiscoverable(discoverableDuration: number): void { } }